Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local template = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local button7 = Instance.new("TextButton")
- local button8 = Instance.new("TextButton")
- local textbox1 = Instance.new("TextBox")
- local button6 = Instance.new("TextButton")
- local button5 = Instance.new("TextButton")
- local button2 = Instance.new("TextButton")
- local button1 = Instance.new("TextButton")
- local button4 = Instance.new("TextButton")
- local button3 = Instance.new("TextButton")
- local textlabel1 = Instance.new("TextLabel")
- local close = Instance.new("TextButton")
- --//
- --//SETTINGS//--
- local nameofgui = "ha please's GUI" --name here
- --// BUTTON NAMES //--
- button1.Text = "ESP (K)" --name of script
- button2.Text = "Fly (E)"
- button3.Text = "Noclip (E)"
- button4.Text = ""
- button5.Text = ""
- button6.Text = ""
- button7.Text = ""
- button8.Text = ""
- --//
- template.Name = "template"
- template.Parent = game.StarterGui
- --//
- main.Name = "main"
- main.Parent = template
- main.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- main.BorderSizePixel = 0
- main.Position = UDim2.new(0.050512448, 0, 0.324546933, 0)
- main.Size = UDim2.new(0, 218, 0, 293)
- --//
- button7.Name = "button7"
- button7.Parent = main
- button7.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button7.BorderSizePixel = 0
- button7.Position = UDim2.new(0.0412844047, 0, 0.69624573, 0)
- button7.Size = UDim2.new(0, 98, 0, 50)
- button7.Font = Enum.Font.SourceSansLight
- button7.TextColor3 = Color3.new(1, 1, 1)
- button7.TextSize = 17
- --//
- button8.Name = "button8"
- button8.Parent = main
- button8.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button8.BorderSizePixel = 0
- button8.Position = UDim2.new(0.527522922, 0, 0.69624573, 0)
- button8.Size = UDim2.new(0, 94, 0, 50)
- button8.Font = Enum.Font.SourceSansLight
- button8.TextColor3 = Color3.new(1, 1, 1)
- button8.TextSize = 17
- --//
- textbox1.Name = "textbox1"
- textbox1.Parent = main
- textbox1.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- textbox1.Position = UDim2.new(0.0412844047, 0, 0.887372017, 0)
- textbox1.Size = UDim2.new(0, 200, 0, 26)
- textbox1.Font = Enum.Font.SourceSansLight
- textbox1.Text = "name of player"
- textbox1.TextColor3 = Color3.new(1, 1, 1)
- textbox1.TextSize = 14
- --//
- button6.Name = "button6"
- button6.Parent = main
- button6.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button6.BorderSizePixel = 0
- button6.Position = UDim2.new(0.527522922, 0, 0.501706481, 0)
- button6.Size = UDim2.new(0, 94, 0, 50)
- button6.Font = Enum.Font.SourceSansLight
- button6.TextColor3 = Color3.new(1, 1, 1)
- button6.TextSize = 17
- --//
- button5.Name = "button5"
- button5.Parent = main
- button5.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button5.BorderSizePixel = 0
- button5.Position = UDim2.new(0.0412844047, 0, 0.501706481, 0)
- button5.Size = UDim2.new(0, 98, 0, 50)
- button5.Font = Enum.Font.SourceSansLight
- button5.TextColor3 = Color3.new(1, 1, 1)
- button5.TextSize = 17
- --//
- button2.Name = "button2"
- button2.Parent = main
- button2.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button2.BorderSizePixel = 0
- button2.Position = UDim2.new(0.527522922, 0, 0.116040945, 0)
- button2.Size = UDim2.new(0, 94, 0, 50)
- button2.Font = Enum.Font.SourceSansLight
- button2.TextColor3 = Color3.new(1, 1, 1)
- button2.TextSize = 17
- --//
- button1.Name = "button1"
- button1.Parent = main
- button1.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button1.BorderSizePixel = 0
- button1.Position = UDim2.new(0.0412844047, 0, 0.116040945, 0)
- button1.Size = UDim2.new(0, 98, 0, 50)
- button1.Font = Enum.Font.SourceSansLight
- button1.TextColor3 = Color3.new(1, 1, 1)
- button1.TextSize = 17
- --//
- button4.Name = "button4"
- button4.Parent = main
- button4.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button4.BorderSizePixel = 0
- button4.Position = UDim2.new(0.527522922, 0, 0.310580194, 0)
- button4.Size = UDim2.new(0, 94, 0, 50)
- button4.Font = Enum.Font.SourceSansLight
- button4.TextColor3 = Color3.new(1, 1, 1)
- button4.TextSize = 17
- --//
- button3.Name = "button3"
- button3.Parent = main
- button3.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- button3.BorderSizePixel = 0
- button3.Position = UDim2.new(0.0412844047, 0, 0.310580194, 0)
- button3.Size = UDim2.new(0, 98, 0, 50)
- button3.Font = Enum.Font.SourceSansLight
- button3.TextColor3 = Color3.new(1, 1, 1)
- button3.TextSize = 17
- --//
- textlabel1.Name = "textlabel1"
- textlabel1.Parent = main
- textlabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- textlabel1.BackgroundTransparency = 1
- textlabel1.Position = UDim2.new(0.0412844047, 0, 0, 0)
- textlabel1.Size = UDim2.new(0, 154, 0, 28)
- textlabel1.Font = Enum.Font.SourceSansSemibold
- textlabel1.Text = nameofgui
- textlabel1.TextColor3 = Color3.new(1, 1, 1)
- textlabel1.TextScaled = true
- textlabel1.TextSize = 14
- textlabel1.TextWrapped = true
- textlabel1.TextXAlignment = Enum.TextXAlignment.Left
- --//
- close.Name = "close"
- close.Parent = main
- close.BackgroundColor3 = Color3.new(0.494118, 0, 0)
- close.BorderSizePixel = 0
- close.Position = UDim2.new(0.830275238, 0, 0.0238907859, 0)
- close.Size = UDim2.new(0, 28, 0, 21)
- close.Font = Enum.Font.SourceSans
- close.Text = ""
- close.TextColor3 = Color3.new(0, 0, 0)
- close.TextSize = 14
- --==// SCRIPTS GO BELOW //==--
- --// MAKE SURE THE BUTTONS CORRESPOND TO THEIR CORRECT COMMAND. TO CHECK, LOOK AT LINE 19-26 TO SEE WHAT BUTTON IS WHAT COMMAND
- close.MouseButton1Down:connect(function()
- template:Destroy() --CLOSE BUTTON
- end)
- button1.MouseButton1Down:connect(function()
- local player = game.Players.LocalPlayer
- local players = {} -- Table to get the players
- local core = game:GetService("CoreGui")
- function CreateBillboard(adornee)
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "E"
- local frame = Instance.new("Frame")
- billboard.AlwaysOnTop = true
- billboard.Size = UDim2.new(4, 0, 5.5, 0)
- billboard.StudsOffset = Vector3.new(0, 0, 0)
- billboard.Adornee = adornee
- frame.BackgroundColor = BrickColor.new("Maroon")
- frame.BackgroundTransparency = .35
- frame.BorderSizePixel = 0
- frame.Size = UDim2.new(1, 0, 1, 0)
- billboard.Parent = core
- frame.Parent = billboard
- end
- function GetEnemyPlayers()
- players = {}
- if #game:GetService("Teams"):GetTeams() > 0 then
- local friendly = player.Team.Name
- for i,v in pairs(game:GetService("Teams"):GetTeams()) do
- if v.Name ~= friendly and v.Name ~= (game.Teams:FindFirstChild("Spectators") and game.Teams.Spectators.Name) then
- print("Enemy team: "..v.Name)
- local enemyPlayers = v:GetPlayers()
- for i,v in pairs(enemyPlayers) do
- table.insert(players, v)
- end
- end
- end
- return players
- end
- end
- function InsertBillboardToPlayers()
- for i,v in pairs(game:GetService("CoreGui"):GetChildren()) do if v.Name == "E" then v:Destroy() end end
- if #game:GetService("Teams"):GetTeams() > 0 then
- local enemies = GetEnemyPlayers()
- for i,v in pairs(enemies) do
- CreateBillboard(v.Character.Head)
- end
- else
- warn("No enemy players.")
- end
- end
- InsertBillboardToPlayers()
- player:GetMouse().KeyDown:Connect(function(key)
- if key:lower() == "k" then
- InsertBillboardToPlayers()
- end
- end)
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Wait()
- players = GetEnemyPlayers()
- InsertBillboardToPlayers()
- end)
- --code here
- end)
- button2.MouseButton1Down:connect(function()
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.Torso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- --code here
- end)
- button3.MouseButton1Down:connect(function()
- --Made by !!!RelentlessRaptor#5709 on discord.
- --Press E to enable / disable
- enabled = false
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- if enabled == true then
- enabled = false
- else
- enabled = true
- end
- end
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.E)
- game:GetService('Players').LocalPlayer.Character.Torso.Touched:connect(function(t)
- if enabled == true then
- if t.CanCollide == true then
- t.CanCollide = false
- end
- end
- end)
- game:GetService('Players').LocalPlayer.Character.Torso.TouchEnded:connect(function(t)
- if enabled == true then
- if t.CanCollide == false then
- t.CanCollide = true
- end
- end
- end)
- --code here
- end)
- button4.MouseButton1Down:connect(function()
- --code here
- end)
- button5.MouseButton1Down:connect(function()
- --code here
- end)
- button6.MouseButton1Down:connect(function()
- --code here
- end)
- button7.MouseButton1Down:connect(function()
- --code here
- end)
- button8.MouseButton1Down:connect(function()
- --code here
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement