Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local LumberTycoon = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local ReText = Instance.new("TextLabel")
- local Speed = Instance.new("TextButton")
- local FlyE = Instance.new("TextButton")
- local Gravity = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- local TextButton_3 = Instance.new("TextButton")
- local ReText_2 = Instance.new("TextLabel")
- -- Properties
- LumberTycoon.Name = "LumberTycoon"
- LumberTycoon.Parent = game.CoreGui
- LumberTycoon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Main.Name = "Main"
- Main.Parent = LumberTycoon
- Main.BackgroundColor3 = Color3.new(0, 0, 0)
- Main.BorderColor3 = Color3.new(0, 0, 0)
- Main.Position = UDim2.new(0.728538275, 0, 0.0776892453, 0)
- Main.Size = UDim2.new(0, 216, 0, 239)
- Main.Active = true
- Main.Visible = true
- Main.Draggble = true
- ReText.Name = "ReText"
- ReText.Parent = Main
- ReText.BackgroundColor3 = Color3.new(0, 0, 0)
- ReText.BorderColor3 = Color3.new(0, 0, 0)
- ReText.Size = UDim2.new(0, 216, 0, 22)
- ReText.Font = Enum.Font.SciFi
- ReText.Text = "LumberTycoonCheat"
- ReText.TextColor3 = Color3.new(1, 1, 1)
- ReText.TextSize = 14
- Speed.Name = "Speed"
- Speed.Parent = Main
- Speed.BackgroundColor3 = Color3.new(1, 1, 1)
- Speed.BorderColor3 = Color3.new(0, 0, 0)
- Speed.Position = UDim2.new(0.027777778, 0, 0.0920502022, 0)
- Speed.Size = UDim2.new(0, 73, 0, 26)
- Speed.Font = Enum.Font.SciFi
- Speed.Text = "Speed"
- Speed.TextColor3 = Color3.new(0, 0, 0)
- Speed.TextSize = 14
- Speed.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 150
- end)
- FlyE.Name = "FlyE"
- FlyE.Parent = Main
- FlyE.BackgroundColor3 = Color3.new(1, 1, 1)
- FlyE.BorderColor3 = Color3.new(0, 0, 0)
- FlyE.Position = UDim2.new(0.625, 0, 0.0920502022, 0)
- FlyE.Size = UDim2.new(0, 73, 0, 26)
- FlyE.Font = Enum.Font.SciFi
- FlyE.Text = "Fly [E]"
- FlyE.TextColor3 = Color3.new(0, 0, 0)
- FlyE.TextSize = 14
- FlyE.MouseButton1Down:connect(function()
- local humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid
- if humanoid.RigType == Enum.HumanoidRigType.R15 then
- game:GetService('Players').LocalPlayer.Character.Humanoid.Name = "Humanoida"
- repeat wait()
- until game:GetService"Players".LocalPlayer and game:GetService"Players".LocalPlayer.Character and game:GetService"Players".LocalPlayer.Character:findFirstChild("UpperTorso") and game:GetService"Players".LocalPlayer.Character:findFirstChild("Humanoida")
- local mouse = game:GetService"Players".LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game:GetService"Players".LocalPlayer
- local torso = plr.Character.UpperTorso
- 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 = 100
- 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.Humanoida.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:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game:GetService("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:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game:GetService("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.Humanoida.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()
- else
- 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()
- end
- end)
- Gravity.Name = "Gravity"
- Gravity.Parent = Main
- Gravity.BackgroundColor3 = Color3.new(1, 1, 1)
- Gravity.BorderColor3 = Color3.new(0, 0, 0)
- Gravity.Position = UDim2.new(0.027777791, 0, 0.242677808, 0)
- Gravity.Size = UDim2.new(0, 73, 0, 26)
- Gravity.Font = Enum.Font.SciFi
- Gravity.Text = "Gravity"
- Gravity.TextColor3 = Color3.new(0, 0, 0)
- Gravity.TextSize = 14
- Gravity.MouseButton1Down:connect(function()
- game.Workspace.Gravity = 32
- end)
- TextButton.Parent = Main
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BorderColor3 = Color3.new(0, 0, 0)
- TextButton.Position = UDim2.new(0.625, 0, 0.242677808, 0)
- TextButton.Size = UDim2.new(0, 73, 0, 26)
- TextButton.Font = Enum.Font.SciFi
- TextButton.Text = "CtrlTp"
- TextButton.TextColor3 = Color3.new(0, 0, 0)
- TextButton.TextSize = 14
- TextButton.MouseButton1Down:connect(function()
- local UIS = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- function GetCharacter()
- return game.Players.LocalPlayer.Character
- end
- function Teleport(pos)
- local Char = GetCharacter()
- if Char then
- Char:MoveTo(pos)
- end
- end
- UIS.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
- Teleport(Mouse.Hit.p)
- end
- end)
- end)
- TextButton_2.Parent = Main
- TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_2.BorderColor3 = Color3.new(0, 0, 0)
- TextButton_2.Position = UDim2.new(0.027777791, 0, 0.389121324, 0)
- TextButton_2.Size = UDim2.new(0, 73, 0, 26)
- TextButton_2.Font = Enum.Font.SciFi
- TextButton_2.Text = "AltDelete"
- TextButton_2.TextColor3 = Color3.new(0, 0, 0)
- TextButton_2.TextSize = 14
- TextButton_2.MouseButton1Down:connect(function()
- local Plr = game:GetService("Players").LocalPlayer
- local Mouse = Plr:GetMouse()
- Mouse.Button1Down:connect(function()
- if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftAlt) then return end
- if not Mouse.Target then return end
- Mouse.Target:Destroy()
- end)
- end)
- TextButton_3.Parent = Main
- TextButton_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_3.BorderColor3 = Color3.new(0, 0, 0)
- TextButton_3.Position = UDim2.new(0.625, 0, 0.389121324, 0)
- TextButton_3.Size = UDim2.new(0, 73, 0, 26)
- TextButton_3.Font = Enum.Font.SciFi
- TextButton_3.Text = "InfJump"
- TextButton_3.TextColor3 = Color3.new(0, 0, 0)
- TextButton_3.TextSize = 14
- TextButton_3.MouseButton1Down:connect(function()
- local Player = game:GetService'Players'.LocalPlayer;
- local UIS = game:GetService'UserInputService';
- _G.JumpHeight = 50;
- function Action(Object, Function) if Object ~= nil then Function(Object); end end
- UIS.InputBegan:connect(function(UserInput)
- if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
- Action(Player.Character.Humanoid, function(self)
- if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
- Action(self.Parent.HumanoidRootPart, function(self)
- self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
- end)
- end
- end)
- end
- end)
- end)
- ReText_2.Name = "ReText"
- ReText_2.Parent = Main
- ReText_2.BackgroundColor3 = Color3.new(0, 0, 0)
- ReText_2.BorderColor3 = Color3.new(0, 0, 0)
- ReText_2.Position = UDim2.new(0, 0, 0.907949805, 0)
- ReText_2.Size = UDim2.new(0, 216, 0, 22)
- ReText_2.Font = Enum.Font.SciFi
- ReText_2.Text = "Made by xCodeError"
- ReText_2.TextColor3 = Color3.new(1, 1, 1)
- ReText_2.TextSize = 14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement