Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local ImageLabel = Instance.new("ImageLabel")
- local TITLE = Instance.new("TextLabel")
- local dots = Instance.new("TextLabel")
- local buttontolocal = Instance.new("TextButton")
- local buttontoguihub = Instance.new("TextButton")
- local buttontocredits = Instance.new("TextButton")
- local mainframe = Instance.new("Frame")
- local Fly = Instance.new("TextButton")
- local NoClip = Instance.new("TextButton")
- local MaxLand = Instance.new("TextButton")
- local AllBp = Instance.new("TextButton")
- local GoldenAxe = Instance.new("TextButton")
- local SellWood = Instance.new("TextButton")
- local localvb = Instance.new("TextLabel")
- local backfrommainframetomain = Instance.new("TextButton")
- local guimain = Instance.new("Frame")
- local LumberJoke = Instance.new("TextButton")
- local Money = Instance.new("TextButton")
- local Shiros = Instance.new("TextButton")
- local BaseSpawn = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local backtomainfromguimain = Instance.new("TextButton")
- local credits = Instance.new("Frame")
- local TextLabel_2 = Instance.new("TextLabel")
- local TextLabel_3 = Instance.new("TextLabel")
- local TextLabel_4 = Instance.new("TextLabel")
- local TextLabel_5 = Instance.new("TextLabel")
- local backtomainfromcredits = Instance.new("TextButton")
- local TextLabel_6 = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- main.Name = "main"
- main.Parent = ScreenGui
- main.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- main.BorderColor3 = Color3.fromRGB(239, 50, 77)
- main.Position = UDim2.new(0.058269836, 0, 0.35128808, 0)
- main.Size = UDim2.new(0, 300, 0, 243)
- main.Active = true
- main.Draggable = true
- ImageLabel.Parent = main
- ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ImageLabel.Position = UDim2.new(0.0633333325, 0, 0.136715397, 0)
- ImageLabel.Size = UDim2.new(0, 100, 0, 100)
- ImageLabel.Image = "http://www.roblox.com/asset/?id=4887780469"
- TITLE.Name = "TITLE"
- TITLE.Parent = main
- TITLE.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TITLE.BackgroundTransparency = 1.000
- TITLE.Position = UDim2.new(0.0633333325, 0, 0.740417719, 0)
- TITLE.Size = UDim2.new(0, 261, 0, 50)
- TITLE.Font = Enum.Font.GothamBlack
- TITLE.Text = "VEIN GUI V.1"
- TITLE.TextColor3 = Color3.fromRGB(239, 50, 77)
- TITLE.TextScaled = true
- TITLE.TextSize = 14.000
- TITLE.TextWrapped = true
- dots.Name = "dots"
- dots.Parent = main
- dots.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- dots.BackgroundTransparency = 1.000
- dots.Position = UDim2.new(-0.00333333341, 0, 0.493504167, 0)
- dots.Size = UDim2.new(0, 300, 0, 50)
- dots.Font = Enum.Font.GothamBlack
- dots.Text = "___________"
- dots.TextColor3 = Color3.fromRGB(239, 50, 77)
- dots.TextScaled = true
- dots.TextSize = 14.000
- dots.TextWrapped = true
- buttontolocal.Name = "buttontolocal"
- buttontolocal.Parent = main
- buttontolocal.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- buttontolocal.Position = UDim2.new(0.529999971, 0, 0.0411522537, 0)
- buttontolocal.Size = UDim2.new(0, 80, 0, 40)
- buttontolocal.Font = Enum.Font.GothamBlack
- buttontolocal.Text = "LOCAL SCRIPTS"
- buttontolocal.TextColor3 = Color3.fromRGB(255, 255, 255)
- buttontolocal.TextScaled = true
- buttontolocal.TextSize = 14.000
- buttontolocal.TextWrapped = true
- buttontolocal.MouseButton1Down:connect(function()
- mainframe.Visible = true
- end)
- buttontoguihub.Name = "buttontoguihub"
- buttontoguihub.Parent = main
- buttontoguihub.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- buttontoguihub.Position = UDim2.new(0.529999971, 0, 0.259259284, 0)
- buttontoguihub.Size = UDim2.new(0, 80, 0, 40)
- buttontoguihub.Font = Enum.Font.GothamBlack
- buttontoguihub.Text = "OP GUI HUB"
- buttontoguihub.TextColor3 = Color3.fromRGB(255, 255, 255)
- buttontoguihub.TextScaled = true
- buttontoguihub.TextSize = 14.000
- buttontoguihub.TextWrapped = true
- buttontoguihub.MouseButton1Down:connect(function()
- guimain.Visible = true
- end)
- buttontocredits.Name = "buttontocredits"
- buttontocredits.Parent = main
- buttontocredits.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- buttontocredits.Position = UDim2.new(0.529999971, 0, 0.473251015, 0)
- buttontocredits.Size = UDim2.new(0, 80, 0, 40)
- buttontocredits.Font = Enum.Font.GothamBlack
- buttontocredits.Text = "INFO"
- buttontocredits.TextColor3 = Color3.fromRGB(255, 255, 255)
- buttontocredits.TextScaled = true
- buttontocredits.TextSize = 14.000
- buttontocredits.TextWrapped = true
- buttontocredits.MouseButton1Down:connect(function()
- credits.Visible = true
- end)
- mainframe.Name = "mainframe"
- mainframe.Parent = ScreenGui
- mainframe.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- mainframe.BorderColor3 = Color3.fromRGB(239, 50, 77)
- mainframe.Position = UDim2.new(0.276109397, 0, 0.275175631, 0)
- mainframe.Size = UDim2.new(0, 700, 0, 141)
- mainframe.Visible = false
- main.Draggable = true
- Fly.Name = "Fly"
- Fly.Parent = mainframe
- Fly.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- Fly.Position = UDim2.new(0.102857143, 0, 0.111111104, 0)
- Fly.Size = UDim2.new(0, 70, 0, 50)
- Fly.Font = Enum.Font.GothamBlack
- Fly.Text = "FLY"
- Fly.TextColor3 = Color3.fromRGB(255, 255, 255)
- Fly.TextScaled = true
- Fly.TextSize = 14.000
- Fly.TextWrapped = true
- local toggle = false
- Fly.MouseButton1Click:Connect(function()
- toggle = not toggle
- Fly.TextColor3 = (toggle and Color3.fromRGB(85, 255, 127) or Color3.fromRGB(255,255,255))
- if toggle then
- flying = not flying
- 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 deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 200
- local speed = 0
- if flying then
- end
- function FlyFunction()
- 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() == "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)
- FlyFunction()
- else
- flying = not flying
- 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 deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 200
- local speed = 0
- if flying then
- end
- function FlyFunction()
- 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() == "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)
- FlyFunction()
- end
- end)
- NoClip.Name = "NoClip"
- NoClip.Parent = mainframe
- NoClip.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- NoClip.Position = UDim2.new(0.102857158, 0, 0.550827384, 0)
- NoClip.Size = UDim2.new(0, 70, 0, 50)
- NoClip.Font = Enum.Font.GothamBlack
- NoClip.Text = "NO CLIP"
- NoClip.TextColor3 = Color3.fromRGB(255, 255, 255)
- NoClip.TextScaled = true
- NoClip.TextSize = 14.000
- NoClip.TextWrapped = true
- _G.noclip = false
- game:GetService('RunService').Stepped:connect(function()
- if noclip then
- game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- NoClip.TextColor3 = Color3.fromRGB(85, 255, 127)
- end
- end)
- NoClip.MouseButton1Down:connect(function()
- noclip = not noclip
- NoClip.TextColor3 = Color3.fromRGB(255, 255, 255)
- end)
- MaxLand.Name = "MaxLand"
- MaxLand.Parent = mainframe
- MaxLand.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- MaxLand.Position = UDim2.new(0.798571467, 0, 0.111111104, 0)
- MaxLand.Size = UDim2.new(0, 70, 0, 50)
- MaxLand.Font = Enum.Font.GothamBlack
- MaxLand.Text = "MAX LAND"
- MaxLand.TextColor3 = Color3.fromRGB(255, 255, 255)
- MaxLand.TextScaled = true
- MaxLand.TextSize = 14.000
- MaxLand.TextWrapped = true
- MaxLand.MouseButton1Down:Connect(function()
- for i, v in pairs(game:GetService("Workspace").Properties:GetChildren()) do
- if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then
- base = v
- square = v.OriginSquare
- end
- end
- function makebase(pos)
- local Event = game:GetService("ReplicatedStorage").PropertyPurchasing.ClientExpandedProperty
- Event:FireServer(base, pos)
- end
- spos = square.Position
- makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z))
- makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z))
- makebase(CFrame.new(spos.X, spos.Y, spos.Z + 40))
- makebase(CFrame.new(spos.X, spos.Y, spos.Z - 40))
- makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z + 40))
- makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z - 40))
- makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z + 40))
- makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z - 40))
- makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z))
- makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z))
- makebase(CFrame.new(spos.X, spos.Y, spos.Z + 80))
- makebase(CFrame.new(spos.X, spos.Y, spos.Z - 80))
- --Corners--
- makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z + 80))
- makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z - 80))
- makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z + 80))
- makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z - 80))
- --Corners--
- makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z + 80))
- makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z + 80))
- makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z + 40))
- makebase(CFrame.new(spos.X + 80, spos.Y, spos.Z - 40))
- makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z + 40))
- makebase(CFrame.new(spos.X - 80, spos.Y, spos.Z - 40))
- makebase(CFrame.new(spos.X + 40, spos.Y, spos.Z - 80))
- makebase(CFrame.new(spos.X - 40, spos.Y, spos.Z - 80))
- end)
- AllBp.Name = "AllBp"
- AllBp.Parent = mainframe
- AllBp.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- AllBp.Position = UDim2.new(0.242857099, 0, 0.548266351, 0)
- AllBp.Size = UDim2.new(0, 70, 0, 50)
- AllBp.Font = Enum.Font.GothamBlack
- AllBp.Text = "ALL BP's"
- AllBp.TextColor3 = Color3.fromRGB(255, 255, 255)
- AllBp.TextScaled = true
- AllBp.TextSize = 14.000
- AllBp.TextWrapped = true
- AllBp.MouseButton1Click:Connect(function()
- for i,v in pairs(game.ReplicatedStorage.Purchasables.Structures.BlueprintStructures:GetChildren()) do
- local clone = v:Clone()
- clone.Parent = game.Players.LocalPlayer.PlayerBlueprints.Blueprints
- end
- end)
- GoldenAxe.Name = "GoldenAxe"
- GoldenAxe.Parent = mainframe
- GoldenAxe.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- GoldenAxe.Position = UDim2.new(0.658571362, 0, 0.534475923, 0)
- GoldenAxe.Size = UDim2.new(0, 70, 0, 50)
- GoldenAxe.Font = Enum.Font.GothamBlack
- GoldenAxe.Text = "GOLDEN AXE"
- GoldenAxe.TextColor3 = Color3.fromRGB(255, 255, 255)
- GoldenAxe.TextScaled = true
- GoldenAxe.TextSize = 14.000
- GoldenAxe.TextWrapped = true
- spawn(function()
- GAxe = false
- function GetAxe() --Gets your current axe thats equiped when called
- if game.Players.LocalPlayer.Character:FindFirstChild("Tool") then
- return game.Players.LocalPlayer.Character.Tool --returns the axe when found
- else
- return false --returns false when not equiped
- end
- end
- function GetDamage(Axe, TreeClass)-- Gets the right Damage of the axe and returns it if called to prevent killing yourself like gold axe
- if Axe.ToolTip == "Basic Hatchet" then return 0.2
- elseif Axe.ToolTip == "Plain Axe" then return 0.55
- elseif Axe.ToolTip == "Steel Axe" then return 0.93
- elseif Axe.ToolTip == "Hardened Axe" then return 1.45
- elseif Axe.ToolTip == "Silver Axe" then return 1.6
- elseif Axe.ToolTip == "Rukiryaxe" then return 1.68
- elseif Axe.ToolTip == "Beta Axe of Bosses" then return 1.45
- elseif Axe.ToolTip == "Alpha Axe of Testing" then return 1.5
- elseif Axe.ToolTip == "Fire Axe" then
- if TreeClass ~= "Volcano" then return 0.6 else return 6.35 end
- elseif Axe.ToolTip == "End Times Axe" then
- if TreeClass ~= "LoneCave" then return 1.58 else return 10000000 end
- elseif Axe.ToolTip == "Candy Cane Axe" then return 0
- elseif Axe.ToolTip == "Johiro" then return 1.8
- elseif Axe.ToolTip == "Beesaxe" then return 1.4
- elseif Axe.ToolTip == "CHICKEN AXE" then return 0.9
- elseif Axe.ToolTip == "Amber Axe" then return 3.39
- elseif Axe.ToolTip == "The Many Axe" then return 10.2
- elseif Axe.ToolTip == "Gingerbread Axe" then
- if TreeClass == "Walnut" then return 8.5
- elseif TreeClass == "Koa" then return 11 else return 1.2 end
- elseif Axe.ToolTip == "Bird Axe" then
- if TreeClass == "Volcano" then return 2.5 elseif TreeClass == "CaveCrawler" then return 3.9 else return 1.65 end
- end
- end
- function GCut(TreePart) --Cuts the tree when called with the tree you want to cut
- if GetAxe() ~= false then --checks if you have a axe equiped
- Damage = GetDamage(GetAxe(), TreePart.Parent.TreeClass.Value) --gets the Damage
- Height = TreePart.CFrame:pointToObjectSpace(mouse.Hit.p).Y + TreePart.Size.Y/2 --Gets the Height
- local CutArguments = {
- sectionId = TreePart.ID.Value,
- faceVector = Vector3.new(0,0,-1),
- height = Height,
- hitPoints = Damage,
- cooldown = 0,
- cuttingClass = "Axe",
- tool = GetAxe()
- }
- for i=1, 50 do
- game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(TreePart.Parent.CutEvent, CutArguments)
- end
- end
- end
- function CutTree(Tree) --Cuts the tree when called with the tree you want to cut
- if GetAxe() ~= false then --checks if you have a axe equiped
- Damage = GetDamage(GetAxe(), Tree.TreeClass.Value) --gets the Damage
- local CutArguments = {
- sectionId = 1,
- faceVector = Vector3.new(0,0,-1),
- height = 0.5,
- hitPoints = Damage,
- cooldown = 0,
- cuttingClass = "Axe",
- tool = GetAxe()
- }
- for i=1, 50 do
- game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(Tree.CutEvent, CutArguments)
- end
- end
- end
- TreeList = {} --Creates a table of the trees
- for a,b in pairs(workspace:GetChildren()) do
- if b.name == "TreeRegion" then
- b.ChildAdded:Connect(function(NewTree)--Creates functions that Adds new trees to the list
- table.insert(TreeList, NewTree)
- end)
- for c,d in pairs(b:GetChildren()) do-- Adds the trees when first time starting the script
- if d.Name == "Model" then
- table.insert(TreeList, d)
- end
- end
- end
- end
- spawn(function() --used spawn so it wont interrupt any of the other things
- CutEnabled = false
- while wait(.5) do --Main loop to do the stuff
- if CutEnabled == true then
- if GetAxe() ~= false then --Checks if you have a axe equiped
- for a,b in pairs(TreeList) do
- if not b:FindFirstChild("RootCut") and b:FindFirstChild("CutEvent") then --Checks if the tree is already cut
- distance = (game.Players.LocalPlayer.Character.Head.Position - b.WoodSection.Position).magnitude --gets the distance between player and tree
- if distance < 225 then --if distance lower than 225 then it will cut the tree
- CutTree(b) --Calls the function with the tree to cut
- end
- else
- table.remove(TreeList, a)--if tree already cut then it gets removed from the list
- end
- end
- end
- end
- end
- end)
- mouse = game.Players.LocalPlayer:GetMouse() --Gets the Mouse
- mouse.Button1Down:connect(function()
- if GAxe == true and GetAxe() ~= false then
- Target = mouse.Target
- GCut(Target)
- end
- end)
- --Credits to Johiro, if you decide to skid atleast give credits
- end)
- GoldenAxe.MouseButton1Down:connect(function()
- if GAxe == true then
- GAxe = false
- GoldenAxe.TextColor3 = Color3.fromRGB(255, 255, 255)
- elseif GAxe == false then
- GAxe = true
- GoldenAxe.TextColor3 = Color3.fromRGB(85, 255, 127)
- --Credits to Johiro
- end
- end)
- SellWood.Name = "SellWood"
- SellWood.Parent = mainframe
- SellWood.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- SellWood.Position = UDim2.new(0.798571408, 0, 0.5415681, 0)
- SellWood.Size = UDim2.new(0, 70, 0, 50)
- SellWood.Font = Enum.Font.GothamBlack
- SellWood.Text = "SELL WOOD"
- SellWood.TextColor3 = Color3.fromRGB(255, 255, 255)
- SellWood.TextScaled = true
- SellWood.TextSize = 14.000
- SellWood.TextWrapped = true
- SellWood.MouseButton1Down:connect(function()
- for _, Log in pairs(workspace.LogModels:GetChildren()) do
- if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
- if Log.Owner.Value == game.Players.LocalPlayer then
- for i,v in pairs(Log:GetChildren()) do
- if v.Name=="WoodSection" then
- spawn(function()
- for i=1,10 do
- wait()
- v.CFrame=CFrame.new(Vector3.new(315, -0.296, 85.791))*CFrame.Angles(math.rad(90),0,0)
- end
- end)
- end
- end
- spawn(function()
- for i=1,20 do
- wait()
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log)
- end
- end)
- end
- end
- end
- end)
- localvb.Name = "localvb"
- localvb.Parent = mainframe
- localvb.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- localvb.BackgroundTransparency = 1.000
- localvb.Position = UDim2.new(0.29285714, 0, 0.106382981, 0)
- localvb.Size = UDim2.new(0, 290, 0, 50)
- localvb.Font = Enum.Font.GothamBlack
- localvb.Text = "LOCAL SCRIPTS"
- localvb.TextColor3 = Color3.fromRGB(239, 50, 77)
- localvb.TextScaled = true
- localvb.TextSize = 14.000
- localvb.TextWrapped = true
- backfrommainframetomain.Name = "backfrommainframetomain"
- backfrommainframetomain.Parent = mainframe
- backfrommainframetomain.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- backfrommainframetomain.Position = UDim2.new(0.45714286, 0, 0.553191483, 0)
- backfrommainframetomain.Size = UDim2.new(0, 60, 0, 50)
- backfrommainframetomain.Font = Enum.Font.GothamBlack
- backfrommainframetomain.Text = "BACK"
- backfrommainframetomain.TextColor3 = Color3.fromRGB(255, 255, 255)
- backfrommainframetomain.TextScaled = true
- backfrommainframetomain.TextSize = 14.000
- backfrommainframetomain.TextWrapped = true
- backfrommainframetomain.MouseButton1Down:connect(function()
- mainframe.Visible = false
- end)
- guimain.Name = "guimain"
- guimain.Parent = ScreenGui
- guimain.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- guimain.BorderColor3 = Color3.fromRGB(239, 50, 77)
- guimain.Position = UDim2.new(0.276109397, 0, 0.494145155, 0)
- guimain.Size = UDim2.new(0, 700, 0, 141)
- guimain.Visible = false
- main.Draggable = true
- LumberJoke.Name = "Lumber Joke"
- LumberJoke.Parent = guimain
- LumberJoke.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- LumberJoke.Position = UDim2.new(0.102857143, 0, 0.0992908031, 0)
- LumberJoke.Size = UDim2.new(0, 70, 0, 50)
- LumberJoke.Font = Enum.Font.GothamBlack
- LumberJoke.Text = "LUMBER JOKE GUI"
- LumberJoke.TextColor3 = Color3.fromRGB(255, 255, 255)
- LumberJoke.TextScaled = true
- LumberJoke.TextSize = 14.000
- LumberJoke.TextWrapped = true
- LumberJoke.MouseButton1Down:connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/PdKzxqvn", true))()
- end)
- Money.Name = "Money"
- Money.Parent = guimain
- Money.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- Money.Position = UDim2.new(0.102857143, 0, 0.553191543, 0)
- Money.Size = UDim2.new(0, 70, 0, 50)
- Money.Font = Enum.Font.GothamBlack
- Money.Text = "MONEY / ITEM DUPE"
- Money.TextColor3 = Color3.fromRGB(255, 255, 255)
- Money.TextScaled = true
- Money.TextSize = 14.000
- Money.TextWrapped = true
- Money.MouseButton1Down:connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/XwLSKeAc", true))()
- end)
- Shiros.Name = "Shiros"
- Shiros.Parent = guimain
- Shiros.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- Shiros.Position = UDim2.new(0.798571467, 0, 0.0992908031, 0)
- Shiros.Size = UDim2.new(0, 70, 0, 50)
- Shiros.Font = Enum.Font.GothamBlack
- Shiros.Text = "SHIROS GUI"
- Shiros.TextColor3 = Color3.fromRGB(255, 255, 255)
- Shiros.TextScaled = true
- Shiros.TextSize = 14.000
- Shiros.TextWrapped = true
- Shiros.MouseButton1Down:connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/NVNMtLTZ", true))()
- end)
- BaseSpawn.Name = "BaseSpawn"
- BaseSpawn.Parent = guimain
- BaseSpawn.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- BaseSpawn.Position = UDim2.new(0.798571467, 0, 0.553191543, 0)
- BaseSpawn.Size = UDim2.new(0, 70, 0, 50)
- BaseSpawn.Font = Enum.Font.GothamBlack
- BaseSpawn.Text = "BASE SPAWN GUI"
- BaseSpawn.TextColor3 = Color3.fromRGB(255, 255, 255)
- BaseSpawn.TextScaled = true
- BaseSpawn.TextSize = 14.000
- BaseSpawn.TextWrapped = true
- BaseSpawn.MouseButton1Down:connect(function()
- loadstring(game:HttpGet("https://pastebin.com/raw/dUPk6dmx", true))()
- end)
- TextLabel.Parent = guimain
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.248571441, 0, 0.0992907807, 0)
- TextLabel.Size = UDim2.new(0, 351, 0, 43)
- TextLabel.Font = Enum.Font.GothamBlack
- TextLabel.Text = "OP GUI HUB"
- TextLabel.TextColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- backtomainfromguimain.Name = "backtomainfromguimain"
- backtomainfromguimain.Parent = guimain
- backtomainfromguimain.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- backtomainfromguimain.Position = UDim2.new(0.45714286, 0, 0.553191423, 0)
- backtomainfromguimain.Size = UDim2.new(0, 60, 0, 50)
- backtomainfromguimain.Font = Enum.Font.GothamBlack
- backtomainfromguimain.Text = "BACK"
- backtomainfromguimain.TextColor3 = Color3.fromRGB(255, 255, 255)
- backtomainfromguimain.TextScaled = true
- backtomainfromguimain.TextSize = 14.000
- backtomainfromguimain.TextWrapped = true
- backtomainfromguimain.MouseButton1Down:connect(function()
- guimain.Visible = false
- end)
- credits.Name = "credits"
- credits.Parent = ScreenGui
- credits.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
- credits.BorderColor3 = Color3.fromRGB(239, 50, 77)
- credits.Position = UDim2.new(0.275661141, 0, 0.689695537, 0)
- credits.Size = UDim2.new(0, 700, 0, 144)
- credits.Visible = false
- main.Draggable = true
- TextLabel_2.Parent = credits
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.BorderColor3 = Color3.fromRGB(27, 42, 53)
- TextLabel_2.Position = UDim2.new(0.0114285946, 0, 0.0555555522, 0)
- TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
- TextLabel_2.Font = Enum.Font.GothamBlack
- TextLabel_2.Text = "CREDITS"
- TextLabel_2.TextColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14.000
- TextLabel_2.TextWrapped = true
- TextLabel_3.Parent = credits
- TextLabel_3.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_3.BackgroundTransparency = 1.000
- TextLabel_3.BorderColor3 = Color3.fromRGB(27, 42, 53)
- TextLabel_3.Position = UDim2.new(0.0114285946, 0, 0.5625, 0)
- TextLabel_3.Size = UDim2.new(0, 200, 0, 50)
- TextLabel_3.Font = Enum.Font.GothamBlack
- TextLabel_3.Text = "Made by Vein HUB YT"
- TextLabel_3.TextColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14.000
- TextLabel_3.TextWrapped = true
- TextLabel_4.Parent = credits
- TextLabel_4.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_4.BackgroundTransparency = 1.000
- TextLabel_4.BorderColor3 = Color3.fromRGB(27, 42, 53)
- TextLabel_4.Position = UDim2.new(0.708571434, 0, 0.055555556, 0)
- TextLabel_4.Size = UDim2.new(0, 198, 0, 50)
- TextLabel_4.Font = Enum.Font.GothamBlack
- TextLabel_4.Text = "CHANGE LOG"
- TextLabel_4.TextColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 14.000
- TextLabel_4.TextWrapped = true
- TextLabel_5.Parent = credits
- TextLabel_5.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_5.BackgroundTransparency = 1.000
- TextLabel_5.BorderColor3 = Color3.fromRGB(27, 42, 53)
- TextLabel_5.Position = UDim2.new(0.708571434, 0, 0.5625, 0)
- TextLabel_5.Size = UDim2.new(0, 200, 0, 50)
- TextLabel_5.Font = Enum.Font.GothamBlack
- TextLabel_5.Text = "- nothing its version 1 what did you expect?"
- TextLabel_5.TextColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_5.TextScaled = true
- TextLabel_5.TextSize = 14.000
- TextLabel_5.TextWrapped = true
- backtomainfromcredits.Name = "backtomainfromcredits"
- backtomainfromcredits.Parent = credits
- backtomainfromcredits.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- backtomainfromcredits.Position = UDim2.new(0.45714286, 0, 0.5625, 0)
- backtomainfromcredits.Size = UDim2.new(0, 60, 0, 50)
- backtomainfromcredits.Font = Enum.Font.GothamBlack
- backtomainfromcredits.Text = "BACK"
- backtomainfromcredits.TextColor3 = Color3.fromRGB(255, 255, 255)
- backtomainfromcredits.TextScaled = true
- backtomainfromcredits.TextSize = 14.000
- backtomainfromcredits.TextWrapped = true
- backtomainfromcredits.MouseButton1Down:connect(function()
- credits.Visible = false
- end)
- TextLabel_6.Parent = credits
- TextLabel_6.BackgroundColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_6.BackgroundTransparency = 1.000
- TextLabel_6.BorderColor3 = Color3.fromRGB(27, 42, 53)
- TextLabel_6.Position = UDim2.new(0.35857144, 0, 0.0555555522, 0)
- TextLabel_6.Size = UDim2.new(0, 200, 0, 50)
- TextLabel_6.Font = Enum.Font.GothamBlack
- TextLabel_6.Text = "INFO"
- TextLabel_6.TextColor3 = Color3.fromRGB(239, 50, 77)
- TextLabel_6.TextScaled = true
- TextLabel_6.TextSize = 14.000
- TextLabel_6.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement