Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Gui Instances
- wait(0.3)
- sg = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- sg.Name = ("main")
- tab = Instance.new("Frame",sg)
- tab.Name = ("tab")
- credits = Instance.new("TextLabel",tab)
- credits.Name = ("credits")
- xout = Instance.new("TextButton",tab)
- xout.Name = ("xout")
- frame = Instance.new("Frame",tab)
- frame.Name = ("frame")
- jump = Instance.new("TextButton",frame)
- jump.Name = ("jump")
- value = Instance.new("TextBox",frame)
- value.Name = ("value")
- help = Instance.new("TextLabel",frame)
- help.Name = ("help")
- speed = Instance.new("TextButton",frame)
- speed.Name = ("speedbutton")
- reset = Instance.new("TextButton",frame)
- reset.Name = ("reset")
- nofog = Instance.new("TextButton",frame )
- nofog.Name = ("nofog")
- bright = Instance.new("TextButton",frame)
- bright.Name = ("bright")
- noclip = Instance.new("TextButton",frame)
- noclip.Name = ("noclip")
- fly = Instance.new("TextButton",frame)
- fly.Name = ("fly")
- flyr = Instance.new("TextButton",frame)
- flyr.Name = ("flyr")
- --Gui Appearance
- tab.Size = UDim2.new(0,465,0,30)
- tab.Position = UDim2.new(0.3,0,0.3,0)
- tab.Active = true
- tab.Draggable = true
- tab.BorderSizePixel = 0
- tab.BackgroundColor3 = Color3.new(0.25,0.25,0.25)
- tab.BackgroundTransparency = 0
- credits.Size = UDim2.new(0,265,0,30)
- credits.Position = UDim2.new(0,0,0.1,0)
- credits.BorderSizePixel = 0
- credits.Text = ("Local Gui by imgoodatroblock")
- credits.BackgroundTransparency = 1
- credits.TextColor3 = Color3.new(1,1,1)
- credits.TextSize = 14
- xout.Size = UDim2.new(0,75,0,25)
- xout.Position = UDim2.new(0.83,0,0.1,0)
- xout.BorderSizePixel = 0
- xout.Text = ("Destroy Gui")
- xout.BackgroundColor3 = Color3.new(1,0,0)
- xout.TextColor3 = Color3.new(0,0,0)
- xout.Font = ("SciFi")
- xout.TextSize = ("14")
- frame.Size = UDim2.new(0,465,0,300)
- frame.Position = UDim2.new(0,0,1,0)
- frame.BorderSizePixel = 0
- frame.BackgroundColor3 = Color3.new(0.15,0.15,0.15)
- value.Size = UDim2.new(0,100,0,30)
- value.Position = UDim2.new(0,10,0,10)
- value.BackgroundColor3 = Color3.new(0.50,0.50,0.50)
- value.BorderSizePixel = 0
- value.Text = ("Value")
- value.TextColor3 = Color3.new(0,0,0)
- value.TextScaled = true
- value.Font = ("Arial")
- value.BackgroundTransparency = 0
- help.Position = UDim2.new(0,250,0,285)
- help.Text = ("Press p to open and close the gui")
- help.TextColor3 = Color3.new(1,1,1)
- help.TextSize = 15
- help.Font = ("Arial")
- speed.Size = UDim2.new(0,95,0,50)
- speed.Position = UDim2.new(0,10,0,50)
- speed.BackgroundColor3 = Color3.new(127,0,0)
- speed.Style = Enum.ButtonStyle.RobloxRoundButton
- speed.BorderSizePixel = 0
- speed.Text = ("Set Walkspeed")
- speed.TextColor3 = Color3.new(0,0,0)
- speed.TextScaled = true
- speed.Font = ("Arial")
- speed.BackgroundTransparency = 0.5
- jump.Size = UDim2.new(0,95,0,50)
- jump.Position = UDim2.new(0,10,0,100)
- jump.BackgroundColor3 = Color3.new(127,0,0)
- jump.Style = Enum.ButtonStyle.RobloxRoundButton
- jump.BorderSizePixel = 0
- jump.Text = ("Set Jump Power")
- jump.TextColor3 = Color3.new(0,0,0)
- jump.TextScaled = true
- jump.Font = ("Arial")
- reset.Size = UDim2.new(0,95,0,50)
- reset.Position = UDim2.new(0,10,0,150)
- reset.BackgroundColor3 = Color3.new(127,0,0)
- reset.Style = Enum.ButtonStyle.RobloxRoundButton
- reset.BorderSizePixel = 0
- reset.Text = ("Reset Jump and Speed")
- reset.TextColor3 = Color3.new(0,0,0)
- reset.TextScaled = true
- reset.Font = ("Arial")
- nofog.Size = UDim2.new(0,95,0,50)
- nofog.Position = UDim2.new(0,10,0,200)
- nofog.BackgroundColor3 = Color3.new(127,0,0)
- nofog.Style = Enum.ButtonStyle.RobloxRoundButton
- nofog.BorderSizePixel = 0
- nofog.Text = ("Remove Fog")
- nofog.TextColor3 = Color3.new(0,0,0)
- nofog.TextScaled = true
- nofog.Font = ("Arial")
- bright.Size = UDim2.new(0,95,0,50)
- bright.Position = UDim2.new(0,110,0,50)
- bright.BackgroundColor3 = Color3.new(127,0,0)
- bright.Style = Enum.ButtonStyle.RobloxRoundButton
- bright.BorderSizePixel = 0
- bright.Text = ("FullBright")
- bright.TextColor3 = Color3.new(0,0,0)
- bright.TextScaled = true
- bright.Font = ("Arial")
- bright.BackgroundTransparency = 0.5
- noclip.Size = UDim2.new(0,95,0,50)
- noclip.Position = UDim2.new(0,110,0,100)
- noclip.BackgroundColor3 = Color3.new(127,0,0)
- noclip.Style = Enum.ButtonStyle.RobloxRoundButton
- noclip.BorderSizePixel = 0
- noclip.Text = ("Noclip")
- noclip.TextColor3 = Color3.new(0,0,0)
- noclip.TextScaled = true
- noclip.Font = ("Arial")
- noclip.BackgroundTransparency = 0.5
- fly.Size = UDim2.new(0,95,0,50)
- fly.Position = UDim2.new(0,110,0,150)
- fly.BackgroundColor3 = Color3.new(127,0,0)
- fly.Style = Enum.ButtonStyle.RobloxRoundButton
- fly.BorderSizePixel = 0
- fly.Text = ("Get Fly Tool")
- fly.TextColor3 = Color3.new(0,0,0)
- fly.TextScaled = true
- fly.Font = ("Arial")
- fly.BackgroundTransparency = 0.5
- flyr.Size = UDim2.new(0,95,0,50)
- flyr.Position = UDim2.new(0,110,0,200)
- flyr.BackgroundColor3 = Color3.new(127,0,0)
- flyr.Style = Enum.ButtonStyle.RobloxRoundButton
- flyr.BorderSizePixel = 0
- flyr.Text = ("Remove Fly Tool")
- flyr.TextColor3 = Color3.new(0,0,0)
- flyr.TextScaled = true
- flyr.Font = ("Arial")
- flyr.BackgroundTransparency = 0.5
- --Button Actions
- sg.ResetOnSpawn = false
- xout.MouseButton1Click:connect(function()
- sg:Remove()
- end)
- speed.MouseButton1Click:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value.Text
- end)
- jump.MouseButton1Click:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = value.Text
- end)
- reset.MouseButton1Click:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
- end)
- nofog.MouseButton1Click:connect(function()
- game.Lighting.FogEnd = 100000
- game.Lighting.FogStart = 100000
- end)
- bright.MouseButton1Click:connect(function()
- game.Lighting.Brightness = 10
- end)
- noclip.MouseButton1Click:connect(function()
- local noclip = true char = game.Players.LocalPlayer.Character while true do if noclip == true then for _,v in pairs(char:children()) do pcall(function() if v.className == "Part" then v.CanCollide = false elseif v.ClassName == "Model" then v.Head.CanCollide = false end end) end end game:service("RunService").Stepped:wait() end
- end)
- fly.MouseButton1Click:connect(function()
- wait();
- local MaxFlySpeed = 2
- local UIS = game:GetService("UserInputService")
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local Torso = (LocalPlayer.Character and LocalPlayer.Character:WaitForChild("Torso"))
- local Mouse = LocalPlayer:GetMouse()
- local Tool = Instance.new("Tool")
- Tool.RequiresHandle = false
- Tool.Name = "Fly_tool"
- assert(Torso.ClassName == "Part", "Yikes! Torso is not a part.")
- local ToolUtils do
- ToolUtils = {
- --// Setup Vars
- Enabled = false,
- WindowFocused = true,
- Keys = {},
- InternalVars = {
- FlyForward = 0,
- FlyBackward = 0
- }
- }
- end
- local ToolEvents do
- Tool.Equipped:connect(function(Mouse)
- ToolUtils.Enabled = true
- Torso.Anchored = true
- end)
- Tool.Unequipped:connect(function(...)
- ToolUtils.Enabled = false
- Torso.Anchored = false
- end)
- UIS.InputBegan:connect(function(input, processedEvent)
- ToolUtils.Keys[input.KeyCode] = true
- end)
- UIS.InputEnded:connect(function(input, processedEvent)
- ToolUtils.Keys[input.KeyCode] = nil
- end)
- UIS.WindowFocusReleased:connect(function()
- ToolUtils.WindowFocused = false
- end)
- UIS.WindowFocused:connect(function()
- ToolUtils.WindowFocused = true
- end)
- end
- --// Main Event
- game:GetService("RunService").RenderStepped:connect(function(...)
- if ToolUtils.WindowFocused and ToolUtils.Enabled then
- if ToolUtils.Keys[Enum.KeyCode.W] then
- if ToolUtils.InternalVars.FlyForward < MaxFlySpeed then
- ToolUtils.InternalVars.FlyForward = ToolUtils.InternalVars.FlyForward + 0.1
- end
- else
- ToolUtils.InternalVars.FlyForward = ToolUtils.InternalVars.FlyForward * 0.9
- end
- if ToolUtils.Keys[Enum.KeyCode.S] then
- if ToolUtils.InternalVars.FlyBackward < MaxFlySpeed then
- ToolUtils.InternalVars.FlyBackward = ToolUtils.InternalVars.FlyBackward + 0.1
- end
- else
- ToolUtils.InternalVars.FlyBackward = ToolUtils.InternalVars.FlyBackward * 0.9
- end
- local Camera = workspace.CurrentCamera
- Torso.CFrame = Torso.CFrame:lerp(
- CFrame.new(Torso.Position, Camera.CFrame.p)
- * CFrame.Angles(0, math.rad(180), 0)
- * CFrame.new(0, 0, -(ToolUtils.InternalVars.FlyForward - ToolUtils.InternalVars.FlyBackward))
- * CFrame.Angles(-(math.rad(10 * (ToolUtils.InternalVars.FlyForward / MaxFlySpeed)) - math.rad(10 * (ToolUtils.InternalVars.FlyBackward / MaxFlySpeed))), 0, 0)
- , 0.9)
- end
- end)
- Tool.Parent = LocalPlayer:findFirstChild("Backpack") or Instance.new("Backpack", LocalPlayer)
- end)
- flyr.MouseButton1Click:connect(function()
- game.Players.LocalPlayer.Backpack.Fly_tool:Remove()
- end)
- --P
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Open = true
- function PressP(key)
- if (key == "p") then
- if (Open == true) then
- tab:TweenPosition(UDim2.new(2,0,2,0), 'Out', 'Bounce', 1, true)
- Open = false
- elseif (Open == false) then
- tab:TweenPosition(UDim2.new(0.3,0,0.3,0), 'Out', 'Bounce', 1, true)
- Open = true
- end
- end
- end
- Mouse.KeyDown:connect(PressP)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement