The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Undetectable Phantom Forces ESP script pastebin roblox
By Undetectable Phantom Forces ESP on 2024-11-25 08:00 am | Syntax: LUA | Views: 23



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local Camera = game:GetService("Workspace").CurrentCamera
  2. local RunService = game:GetService("RunService")
  3. local UserInputService = game:GetService("UserInputService")
  4. local FontValue = 3
  5. local Visibility = true
  6. local player = game:GetService("Players").LocalPlayer
  7.  
  8. enemy = ""
  9. if tostring(player.TeamColor) == "Bright orange" then
  10.     enemy = "Bright blue"
  11. else
  12.     enemy = "Bright orange"
  13. end
  14. game:GetService("Workspace").ChildRemoved:Connect(
  15.     function()
  16.         if tostring(player.TeamColor) == "Bright orange" then
  17.             enemy = "Bright blue"
  18.         else
  19.             enemy = "Bright orange"
  20.         end
  21.     end
  22. )
  23.  
  24.  
  25. local function CycleFont()
  26.     if FontValue + 1 > 3 then
  27.        FontValue = 1
  28.     else
  29.         FontValue = FontValue + 1
  30.     end
  31. end
  32.  
  33. local function ModelTemplate()
  34.    local Objects = {
  35.        Box = Drawing.new("Quad"),
  36.        Name = Drawing.new("Text"),
  37.    }
  38.    
  39.    return Objects
  40. end
  41.  
  42. local function GetPartCorners(Part)
  43.     local Size = Part.Size * Vector3.new(1, 1.5)
  44.     return {
  45.         TR = (Part.CFrame * CFrame.new(-Size.X, -Size.Y, 0)).Position,
  46.         BR = (Part.CFrame * CFrame.new(-Size.X, Size.Y, 0)).Position,
  47.         TL = (Part.CFrame * CFrame.new(Size.X, -Size.Y, 0)).Position,
  48.         BL = (Part.CFrame * CFrame.new(Size.X, Size.Y, 0)).Position,
  49.     }
  50. end
  51.  
  52. local function ApplyModel(Model)
  53.     local Objects = ModelTemplate()
  54.     local CurrentParent = Model.Parent
  55.    
  56.     spawn(function()
  57.         Objects.Name.Center = true
  58.         Objects.Name.Visible = true
  59.         Objects.Name.Outline = true
  60.         Objects.Name.Transparency = 1
  61.         Objects.Box.Visible = true
  62.         Objects.Box.Transparency = 1
  63.        
  64.         while Model.Parent == CurrentParent do
  65.             local Vector, OnScreen = Camera:WorldToScreenPoint(Model.Head.Position)
  66.             local Distance = (Camera.CFrame.Position - Model.Torso.Position).Magnitude
  67.            
  68.             if OnScreen and Model.Parent.Name ~= game:GetService("Players").LocalPlayer.Team.Name and Visibility then
  69.                 Objects.Name.Position = Vector2.new(Vector.X, Vector.Y + math.clamp(Distance / 10, 10, 30) - 10)
  70.                 Objects.Name.Size = math.clamp(30 - Distance / 10, 10, 30)
  71.                 Objects.Name.Color = Color3.fromHSV(math.clamp(Distance / 5, 0, 125) / 255, 0.75, 1)
  72.                 Objects.Name.Visible = true
  73.                 Objects.Name.Font = FontValue
  74.                 Objects.Name.Transparency = math.clamp((500 - Distance) / 200, 0.2, 1)
  75.             else
  76.                 Objects.Name.Visible = false
  77.             end
  78.            
  79.             Objects.Name.Text = string.format("[%s sd] [%s] Enemy", tostring(math.floor(Distance)), Model:FindFirstChildOfClass("Model") and Model:FindFirstChildOfClass("Model").Name or "NONE")
  80.            
  81.             local PartCorners = GetPartCorners(Model.Torso)
  82.             local VectorTR, OnScreenTR = Camera:WorldToScreenPoint(PartCorners.TR)
  83.             local VectorBR, OnScreenBR = Camera:WorldToScreenPoint(PartCorners.BR)
  84.             local VectorTL, OnScreenTL = Camera:WorldToScreenPoint(PartCorners.TL)
  85.             local VectorBL, OnScreenBL = Camera:WorldToScreenPoint(PartCorners.BL)
  86.            
  87.             if (OnScreenBL or OnScreenTL or OnScreenBR or OnScreenTR) and Model.Parent.Name ~= game:GetService("Players").LocalPlayer.Team.Name and Visibility then
  88.                 Objects.Box.PointA = Vector2.new(VectorTR.X, VectorTR.Y + 36)
  89.                 Objects.Box.PointB = Vector2.new(VectorTL.X, VectorTL.Y + 36)
  90.                 Objects.Box.PointC = Vector2.new(VectorBL.X, VectorBL.Y + 36)
  91.                 Objects.Box.PointD = Vector2.new(VectorBR.X, VectorBR.Y + 36)
  92.                 Objects.Box.Color = Color3.fromHSV(math.clamp(Distance / 5, 0, 125) / 255, 0.75, 1)
  93.                 Objects.Box.Thickness = math.clamp(3 - (Distance / 100), 0, 3)
  94.                 Objects.Box.Transparency = math.clamp((500 - Distance) / 200, 0.2, 1)
  95.                 Objects.Box.Visible = true
  96.             else
  97.                 Objects.Box.Visible = false
  98.             end
  99.            
  100.             RunService.RenderStepped:Wait()
  101.         end
  102.        
  103.         Objects.Name:Remove()
  104.         Objects.Box:Remove()
  105.     end)
  106. end
  107.  
  108. for _, Player in next, game:GetService("Workspace").Players[enemy]:GetChildren() do
  109.     ApplyModel(Player)
  110. end
  111.  
  112. game:GetService("Workspace").Players[enemy].ChildAdded:Connect(function(Player)
  113.     delay(0.5, function()
  114.         ApplyModel(Player)
  115.     end)
  116. end)
  117.  
  118.  
  119. UserInputService.InputBegan:Connect(function(Input, GP)
  120.     if not GP and Input.KeyCode == Enum.KeyCode.Five then
  121.         Visibility = not Visibility
  122.     end
  123.    
  124.     if not GP and Input.KeyCode == Enum.KeyCode.Four then
  125.         CycleFont()
  126.     end
  127. end)



  • Recent Roblox Scripts