Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScreenGui = Instance.new("ScreenGui")
- Frame = Instance.new("Frame")
- click = Instance.new("TextButton")
- exit = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.780392, 0.780392, 0.780392)
- Frame.BorderColor3 = Color3.new(1, 0, 0)
- Frame.BorderSizePixel = 4
- Frame.Position = UDim2.new(0.391674548, 0, 0.267045468, 0)
- Frame.Size = UDim2.new(0, 288, 0, 136)
- click.Name = "click"
- click.Parent = Frame
- click.BackgroundColor3 = Color3.new(0.278431, 0.278431, 0.278431)
- click.BorderColor3 = Color3.new(1, 0, 0)
- click.BorderSizePixel = 2
- click.Position = UDim2.new(0.0416666679, 0, 0.110294119, 0)
- click.Size = UDim2.new(0, 264, 0, 50)
- click.Font = Enum.Font.SourceSans
- click.FontSize = Enum.FontSize.Size14
- click.Text = "Click for Aimbot"
- click.TextColor3 = Color3.new(1, 1, 1)
- click.TextScaled = true
- click.TextSize = 14
- click.TextWrapped = true
- exit.Name = "exit"
- exit.Parent = Frame
- exit.BackgroundColor3 = Color3.new(1, 1, 1)
- exit.BorderColor3 = Color3.new(1, 0, 0)
- exit.BorderSizePixel = 2
- exit.Position = UDim2.new(0.152777776, 0, 0.683823526, 0)
- exit.Size = UDim2.new(0, 200, 0, 38)
- exit.Font = Enum.Font.SourceSans
- exit.FontSize = Enum.FontSize.Size14
- exit.Text = "Exit"
- exit.TextColor3 = Color3.new(0, 0, 0)
- exit.TextScaled = true
- exit.TextSize = 14
- exit.TextWrapped = true
- click.MouseButton1Click:connect(function()
- local plrs = game:service("Players")
- local ms = plrs.LocalPlayer:GetMouse()
- local nearest = function()
- local plr,dist = nil,5000
- for k,l in pairs(plrs:GetPlayers()) do
- local pos = l.Character:GetPrimaryPartCFrame().p
- local len = (ms.Hit.p - pos).Magnitude
- if len <= dist then
- plr = l
- dist = len
- end
- end
- return plr.Character:GetPrimaryPartCFrame().p
- end
- workspace.CurrentCamera.trash.ChildAdded:connect(function(c)
- c.CFrame = CFrame.new(nearest())
- end)
- end)
- exit.MouseButton1Click:connect(function()
- ScreenGui:Destroy()
- end)
Add Comment
Please, Sign In to add comment