Advertisement
PythonBoting

Провидец: читерный скрипт для роблокса

Jul 5th, 2020
1,237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.83 KB | None | 0 0
  1. function MySeer()
  2.     --print("START!!!")
  3.    
  4.     if SeerWork == nil or SeerWork then SeerWork = false else SeerWork = true end
  5.    
  6.     function CreateInstance(cls,props)
  7.         local inst = Instance.new(cls)
  8.         for i,v in pairs(props) do
  9.             inst[i] = v
  10.         end
  11.         return inst
  12.     end
  13.    
  14.     function NewGui()
  15.         local Gui = CreateInstance("BillboardGui", {Name = "Seer", ExtentsOffset = Vector3.new(0, 2, 0), Size = UDim2.new(0, 120, 0, 60), Active = true, AlwaysOnTop = true, LightInfluence = 1, ClipsDescendants = true, ZIndexBehavior = 1})
  16.         local Gui2 = CreateInstance("Frame", {BackgroundColor3 = Color3.fromRGB(255, 255, 0), BackgroundTransparency = 0.5, BorderColor3 = Color3.fromRGB(0, 0, 255), BorderMode = 2, BorderSizePixel = 2, Size = UDim2.new(0, 120, 0, 60), Parent = Gui})
  17.         local Gui3 = CreateInstance("TextLabel", {Text = "?",             Name = "T",  Font = 3, TextScaled = true, BackgroundTransparency = 1, TextStrokeTransparency = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), Position = UDim2.new(0, 0, 0, -2), Size = UDim2.new(0, 120, 0, 20), TextColor3 = Color3.fromRGB(255, 255, 255), TextStrokeColor3 = Color3.fromRGB(255, 170, 0), Parent = Gui2})
  18.         local Gui3 = CreateInstance("TextLabel", {Text = "?/?   d: ?",    Name = "T2", Font = 3, TextScaled = true, BackgroundTransparency = 1, TextStrokeTransparency = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), Position = UDim2.new(0, 0, 0, 17), Size = UDim2.new(0, 120, 0, 20), TextColor3 = Color3.fromRGB(255, 255, 255), TextStrokeColor3 = Color3.fromRGB(255, 170, 0), Parent = Gui2})
  19.         local Gui3 = CreateInstance("TextLabel", {Text = "0,0,0   0,0,0", Name = "T3", Font = 3, TextScaled = true, BackgroundTransparency = 1, TextStrokeTransparency = 0, BackgroundColor3 = Color3.fromRGB(255, 255, 255), Position = UDim2.new(0, 0, 0, 36), Size = UDim2.new(0, 120, 0, 20), TextColor3 = Color3.fromRGB(255, 255, 255), TextStrokeColor3 = Color3.fromRGB(255, 170, 0), Parent = Gui2})
  20.         return Gui
  21.     end
  22.    
  23.     function NewPlayer(Player)
  24.         local Name = Player.Name
  25.         --print("New seer added: " .. Name)
  26.         local Model = game.Workspace:WaitForChild(Name)
  27.         local Head = Model:WaitForChild("Head")
  28.         local Gui = NewGui()
  29.         Gui.Parent = Head
  30.     end
  31.    
  32.     function Distance(PosA, PosB)
  33.         local X = PosA.X - PosB.X
  34.         local Y = PosA.Y - PosB.Y
  35.         local Z = PosA.Z - PosB.Z
  36.         return math.floor(math.sqrt(X * X + Y * Y + Z * Z))
  37.     end
  38.    
  39.     local Me = game.Players.LocalPlayer
  40.     local MeName = Me.Name
  41.     local Health, MHealth
  42.     local MeModel, MeHead, MePos
  43.     local Name, Model, Head, Gui, R, Pos, Vel
  44.     local SW2 = false
  45.    
  46.     while wait() do
  47.         if SeerWork then SW2 = true end
  48.         for _, Player in pairs(game.Players:children()) do
  49.             Name = Player.Name
  50.             Model = game.Workspace:FindFirstChild(Name)
  51.             if Model ~= nil then
  52.                 Head = Model:FindFirstChild("Head")
  53.                 if Head ~= nil then
  54.                     Gui = Head:FindFirstChild("Seer")
  55.                     if Gui == nil then
  56.                         if not SW2 then NewPlayer(Player) end
  57.                     elseif SW2 then
  58.                         Gui:Destroy()
  59.                     else
  60.                         Gui.Frame.T.Text = Name
  61.                         local Human = Model:FindFirstChild("Humanoid")
  62.                         if Human == nil then
  63.                             Health = "?"
  64.                             MHealth = "?"
  65.                         else
  66.                             Health = Human.Health
  67.                             MHealth = Human.MaxHealth
  68.                         end
  69.                         R = "?"
  70.                         Pos = Head.Position
  71.                         Vel = Head.Velocity
  72.                         MeModel = game.Workspace:FindFirstChild(MeName)
  73.                         if MeModel ~= nil then
  74.                             MeHead = MeModel:FindFirstChild("Head")
  75.                             if MeHead ~= nil then
  76.                                 MePos = MeHead.Position
  77.                                 R = Distance(Pos, MePos)
  78.                             end
  79.                         end
  80.                         Gui.Frame.T2.Text = Health .. "/" .. MHealth .. "  d: " .. R
  81.                         Gui.Frame.T3.Text = math.floor(Pos.X) .. "," .. math.floor(Pos.Y) .. "," .. math.floor(Pos.Z) .. "   " .. math.floor(Vel.X) .. "," .. math.floor(Vel.Y) .. "," .. math.floor(Vel.Z)
  82.                     end
  83.                 end
  84.             end
  85.         end
  86.         if SW2 then break end
  87.     end
  88.    
  89.     --print("MAY!!!")
  90.    
  91. end
  92. MySeer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement