Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local CloseOpenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- local Frame = Instance.new("Frame")
- local PaintTool = Instance.new("TextButton")
- local BaseArt = Instance.new("TextButton")
- local OnWaterWalk = Instance.new("TextButton")
- local BringWood = Instance.new("TextButton")
- local BringPlanks = Instance.new("TextButton")
- local SellPlanks = Instance.new("TextButton")
- local SellWood = Instance.new("TextButton")
- local Dupe = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local TPS = Instance.new("TextButton")
- local TextLabel_2 = Instance.new("TextLabel")
- local GoldAxe = Instance.new("TextButton")
- local MaxLand = Instance.new("TextButton")
- local Login = Instance.new("Frame")
- local token = Instance.new("TextBox")
- local submit = Instance.new("TextButton")
- local TextLabel_3 = Instance.new("TextLabel")
- --Properties:
- CloseOpenGui.Name = "CloseOpenGui"
- CloseOpenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- TextButton.Parent = CloseOpenGui
- TextButton.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 2
- TextButton.Position = UDim2.new(0.00200000009, 0, 0.5, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Visible = false
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "OPEN"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextSize = 36.000
- TextButton.TextStrokeTransparency = 0.000
- Frame.Parent = CloseOpenGui
- Frame.BackgroundColor3 = Color3.fromRGB(54, 54, 54)
- Frame.Position = UDim2.new(0.052294597, 0, 0.126218349, 0)
- Frame.Size = UDim2.new(0, 601, 0, 297)
- Frame.Visible = false
- PaintTool.Name = "PaintTool"
- PaintTool.Parent = Frame
- PaintTool.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- PaintTool.Position = UDim2.new(0, 0, 0.155250937, 0)
- PaintTool.Size = UDim2.new(0, 125, 0, 50)
- PaintTool.Font = Enum.Font.Cartoon
- PaintTool.Text = "Paint Tool"
- PaintTool.TextColor3 = Color3.fromRGB(255, 255, 255)
- PaintTool.TextScaled = true
- PaintTool.TextSize = 14.000
- PaintTool.TextWrapped = true
- BaseArt.Name = "BaseArt"
- BaseArt.Parent = Frame
- BaseArt.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- BaseArt.Position = UDim2.new(0, 0, 0.374788761, 0)
- BaseArt.Size = UDim2.new(0, 125, 0, 50)
- BaseArt.Font = Enum.Font.Cartoon
- BaseArt.Text = "Base Art"
- BaseArt.TextColor3 = Color3.fromRGB(255, 255, 255)
- BaseArt.TextScaled = true
- BaseArt.TextSize = 14.000
- BaseArt.TextWrapped = true
- OnWaterWalk.Name = "OnWaterWalk"
- OnWaterWalk.Parent = Frame
- OnWaterWalk.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- OnWaterWalk.Position = UDim2.new(0, 0, 0.570033014, 0)
- OnWaterWalk.Size = UDim2.new(0, 125, 0, 50)
- OnWaterWalk.Font = Enum.Font.Cartoon
- OnWaterWalk.Text = "Walk On Water"
- OnWaterWalk.TextColor3 = Color3.fromRGB(255, 255, 255)
- OnWaterWalk.TextScaled = true
- OnWaterWalk.TextSize = 14.000
- OnWaterWalk.TextWrapped = true
- BringWood.Name = "BringWood"
- BringWood.Parent = Frame
- BringWood.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- BringWood.Position = UDim2.new(0, 0, 0.769361615, 0)
- BringWood.Size = UDim2.new(0, 125, 0, 50)
- BringWood.Font = Enum.Font.Cartoon
- BringWood.Text = "Bring Wood"
- BringWood.TextColor3 = Color3.fromRGB(255, 255, 255)
- BringWood.TextScaled = true
- BringWood.TextSize = 14.000
- BringWood.TextWrapped = true
- BringPlanks.Name = "BringPlanks"
- BringPlanks.Parent = Frame
- BringPlanks.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- BringPlanks.Position = UDim2.new(0.231923819, 0, 0.152202189, 0)
- BringPlanks.Size = UDim2.new(0, 125, 0, 50)
- BringPlanks.Font = Enum.Font.Cartoon
- BringPlanks.Text = "Bring Planks"
- BringPlanks.TextColor3 = Color3.fromRGB(255, 255, 255)
- BringPlanks.TextScaled = true
- BringPlanks.TextSize = 14.000
- BringPlanks.TextWrapped = true
- SellPlanks.Name = "SellPlanks"
- SellPlanks.Parent = Frame
- SellPlanks.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- SellPlanks.Position = UDim2.new(0.230921701, 0, 0.371740043, 0)
- SellPlanks.Size = UDim2.new(0, 125, 0, 50)
- SellPlanks.Font = Enum.Font.Cartoon
- SellPlanks.Text = "Sell Planks"
- SellPlanks.TextColor3 = Color3.fromRGB(255, 255, 255)
- SellPlanks.TextScaled = true
- SellPlanks.TextSize = 14.000
- SellPlanks.TextWrapped = true
- SellWood.Name = "SellWood"
- SellWood.Parent = Frame
- SellWood.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- SellWood.Position = UDim2.new(0.230193704, 0, 0.566984296, 0)
- SellWood.Size = UDim2.new(0, 125, 0, 50)
- SellWood.Font = Enum.Font.Cartoon
- SellWood.Text = "Sell Wood"
- SellWood.TextColor3 = Color3.fromRGB(255, 255, 255)
- SellWood.TextScaled = true
- SellWood.TextSize = 14.000
- SellWood.TextWrapped = true
- Dupe.Name = "Dupe"
- Dupe.Parent = Frame
- Dupe.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- Dupe.Position = UDim2.new(0.230193675, 0, 0.76913172, 0)
- Dupe.Size = UDim2.new(0, 181, 0, 50)
- Dupe.Font = Enum.Font.Cartoon
- Dupe.Text = "Dupe (MIGHT BE PATCHED!)"
- Dupe.TextColor3 = Color3.fromRGB(255, 255, 255)
- Dupe.TextScaled = true
- Dupe.TextSize = 14.000
- Dupe.TextWrapped = true
- TextLabel.Parent = Frame
- TextLabel.Active = true
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 5.000
- TextLabel.Position = UDim2.new(0.547359884, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 208, 0, 140)
- TextLabel.Font = Enum.Font.Cartoon
- TextLabel.Text = "More Coming Soon!"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- TPS.Name = "TPS"
- TPS.Parent = Frame
- TPS.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- TPS.Position = UDim2.new(0.543071866, 0, 0.768363833, 0)
- TPS.Size = UDim2.new(0, 125, 0, 50)
- TPS.Font = Enum.Font.Cartoon
- TPS.Text = "TPS"
- TPS.TextColor3 = Color3.fromRGB(255, 255, 255)
- TPS.TextScaled = true
- TPS.TextSize = 14.000
- TPS.TextWrapped = true
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- TextLabel_2.BackgroundTransparency = 5.000
- TextLabel_2.Position = UDim2.new(0.333260059, 0, -8.21277499e-05, 0)
- TextLabel_2.Size = UDim2.new(0, 200, 0, 27)
- TextLabel_2.Font = Enum.Font.Cartoon
- TextLabel_2.Text = "Stupid lt2"
- TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14.000
- TextLabel_2.TextWrapped = true
- GoldAxe.Name = "GoldAxe"
- GoldAxe.Parent = Frame
- GoldAxe.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- GoldAxe.Position = UDim2.new(0.781008601, 0, 0.768363833, 0)
- GoldAxe.Size = UDim2.new(0, 125, 0, 50)
- GoldAxe.Font = Enum.Font.Cartoon
- GoldAxe.Text = "GOLD AXE"
- GoldAxe.TextColor3 = Color3.fromRGB(255, 255, 255)
- GoldAxe.TextScaled = true
- GoldAxe.TextSize = 14.000
- GoldAxe.TextWrapped = true
- MaxLand.Name = "MaxLand"
- MaxLand.Parent = Frame
- MaxLand.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- MaxLand.Position = UDim2.new(0.457570702, 0, 0.566707969, 0)
- MaxLand.Size = UDim2.new(0, 125, 0, 50)
- MaxLand.Font = Enum.Font.Cartoon
- MaxLand.Text = "Max Land"
- MaxLand.TextColor3 = Color3.fromRGB(255, 255, 255)
- MaxLand.TextScaled = true
- MaxLand.TextSize = 14.000
- MaxLand.TextWrapped = true
- Login.Name = "Login"
- Login.Parent = CloseOpenGui
- Login.Active = true
- Login.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- Login.Position = UDim2.new(0.277777761, 0, 0.32520324, 0)
- Login.Selectable = true
- Login.Size = UDim2.new(0, 365, 0, 186)
- token.Name = "token"
- token.Parent = Login
- token.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- token.Position = UDim2.new(0, 0, 0.209677413, 0)
- token.Size = UDim2.new(0, 365, 0, 50)
- token.Font = Enum.Font.Cartoon
- token.Text = ""
- token.TextColor3 = Color3.fromRGB(255, 255, 255)
- token.TextScaled = true
- token.TextSize = 14.000
- token.TextWrapped = true
- submit.Name = "submit"
- submit.Parent = Login
- submit.BackgroundColor3 = Color3.fromRGB(31, 31, 31)
- submit.Position = UDim2.new(0.224657536, 0, 0.731182814, 0)
- submit.Size = UDim2.new(0, 200, 0, 50)
- submit.Font = Enum.Font.Cartoon
- submit.Text = "Submit"
- submit.TextColor3 = Color3.fromRGB(255, 255, 255)
- submit.TextScaled = true
- submit.TextSize = 14.000
- submit.TextWrapped = true
- submit.MouseButton1Click:connect(function()
- if token.Text == "j932Q5FqZQi8l90DoMCK5SSonrUbKl9G"
- then
- Login.Visible = false
- Frame.Visible = true
- end
- end)
- TextLabel_3.Parent = Login
- TextLabel_3.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- TextLabel_3.BackgroundTransparency = 5.000
- TextLabel_3.Position = UDim2.new(0.243835613, 0, 0, 0)
- TextLabel_3.Size = UDim2.new(0, 200, 0, 27)
- TextLabel_3.Font = Enum.Font.Cartoon
- TextLabel_3.Text = "Stupid lt2"
- TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14.000
- TextLabel_3.TextWrapped = true
- -- Scripts:
- local function NKUBT_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- local GUI = script.Parent -- The GUI
- local Frame = GUI:WaitForChild("Frame") -- Defines the Frame and it will WAIT for it to load
- local button = GUI:WaitForChild("TextButton") -- Defines the button and wait for it to load
- button.MouseButton1Down:connect(function() -- I like to do it this way.
- --Theres many different ways for scripting this to open the frame
- --Frame.Visible = not Frame.Visible -- This might be confusing, but ill explain after I show
- -- this is making if the frame is visible then make it false if its false make it visible
- -- Here is a different way
- if button.Text == "OPEN" and Frame.Visible == false then -- Checkign if the button text says OPEN SHOP and the frame is not visible then make it true
- button.Text = "CLOSE" -- Change the button text to CLOSE SHOP
- Frame.Visible = true -- Make the frame appear on screen
- button.BackgroundColor3 = Color3.new(255, 0, 0 ) -- Colors goes from 0 to 255
- elseif button.Text == "CLOSE" and Frame.Visible == true then
- --When they click it the first time the button text is changed to CLOSE SHOP, and makes sure the frame is visible
- button.Text = "OPEN "
- Frame.Visible = false
- button.BackgroundColor3 = Color3.new(85, 255, 0)
- end
- end)
- end
- coroutine.wrap(NKUBT_fake_script)()
- local function FFUM_fake_script() -- CloseOpenGui.LocalScript
- local script = Instance.new('LocalScript', CloseOpenGui)
- local GUI = script.Parent -- The GUI
- local Frame = GUI:WaitForChild("Frame") -- Defines the Frame and it will WAIT for it to load
- local button = GUI:WaitForChild("TextButton") -- Defines the button and wait for it to load
- button.MouseButton1Down:connect(function() -- I like to do it this way.
- --Theres many different ways for scripting this to open the frame
- --Frame.Visible = not Frame.Visible -- This might be confusing, but ill explain after I show
- -- this is making if the frame is visible then make it false if its false make it visible
- -- Here is a different way
- if button.Text == "OPEN" and Frame.Visible == false then -- Checkign if the button text says OPEN SHOP and the frame is not visible then make it true
- button.Text = "CLOSE" -- Change the button text to CLOSE SHOP
- Frame.Visible = true -- Make the frame appear on screen
- button.BackgroundColor3 = Color3.new(255, 0, 0 ) -- Colors goes from 0 to 255
- elseif button.Text == "CLOSE" and Frame.Visible == true then
- --When they click it the first time the button text is changed to CLOSE SHOP, and makes sure the frame is visible
- button.Text = "OPEN "
- Frame.Visible = false
- button.BackgroundColor3 = Color3.new(85, 255, 0)
- end
- end)
- end
- coroutine.wrap(FFUM_fake_script)()
- local function XHRQ_fake_script() -- CloseOpenGui.Draggable (Read)
- local script = Instance.new('LocalScript', CloseOpenGui)
- frame = script.Parent.Frame --Name of the frame you wanna move
- frame.Draggable = true
- frame.Active = true
- frame.Selectable = true
- --Place IN the gui NOT in the Frame , Other wise the script will break
- --Thanks to TheManInCity (On youtube) by comenting on the video
- --Thanks to me for uploading (lol)
- --Ps we know that Draggable got removed but this script somehow works :D
- end
- coroutine.wrap(XHRQ_fake_script)()
- local function NOXQH_fake_script() -- CloseOpenGui.Draggable
- local script = Instance.new('LocalScript', CloseOpenGui)
- frame = script.Parent.Login --Name of the frame you wanna move
- frame.Draggable = true
- frame.Active = true
- frame.Selectable = true
- --Place IN the gui NOT in the Frame , Other wise the script will break
- --Thanks to TheManInCity (On youtube) by comenting on the video
- --Thanks to me for uploading (lol)
- --Ps we know that Draggable got removed but this script somehow works :D
- end
- coroutine.wrap(NOXQH_fake_script)()
- local function DWXXMEL_fake_script() -- PaintTool.Script
- local script = Instance.new('Script', PaintTool)
- PaintTool.MouseButton1Down:connect(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/KwtFxY8L',true))()
- end)
- end
- coroutine.wrap(DWXXMEL_fake_script)()
- local function ENARCAD_fake_script() -- BaseArt.Script
- local script = Instance.new('Script', BaseArt)
- BaseArt.MouseButton1Down:connect(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/t54ccJrN',true))()
- end)
- end
- coroutine.wrap(ENARCAD_fake_script)()
- local function UXYXQ_fake_script() -- OnWaterWalk.Script
- local script = Instance.new('Script', OnWaterWalk)
- BaseArt.MouseButton1Down:connect(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/t54ccJrN',true))()
- end)
- end
- coroutine.wrap(UXYXQ_fake_script)()
- local function RPZQTTG_fake_script() -- OnWaterWalk.Script
- local script = Instance.new('Script', OnWaterWalk)
- OnWaterWalk.MouseButton1Click:connect(function()
- if Wtrwlk == false then
- for i,w in pairs(game.Workspace.Water:GetChildren()) do
- if w.Name == "Water" then
- w.CFrame = w.CFrame + Vector3.new(0, -25, 0)
- for i,s in pairs(game.Workspace.Water:GetChildren()) do
- if s.Name == "SeaSand" then
- s.CFrame = s.CFrame + Vector3.new(0, 1.8, 0)
- end
- end
- end
- end
- Wtrwlk = true
- elseif Wtrwlk == true then
- for i,w in pairs(game.Workspace.Water:GetChildren()) do
- if w.Name == "Water" then
- w.CFrame = w.CFrame + Vector3.new(0, 25, 0)
- for i,s in pairs(game.Workspace.Water:GetChildren()) do
- if s.Name == "SeaSand" then
- s.CFrame = s.CFrame + Vector3.new(0, -1.8, 0)
- end
- end
- end
- end
- Wtrwlk = false
- end
- end)
- end
- coroutine.wrap(RPZQTTG_fake_script)()
- local function YBFQ_fake_script() -- BringWood.Script
- local script = Instance.new('Script', BringWood)
- BringWood.MouseButton1Down:connect(function()
- for _, Log in pairs(game.Workspace.LogModels:GetChildren()) do
- if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
- if Log.Owner.Value == game.Players.LocalPlayer then
- Log:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(0, 15, 0))
- end
- end
- end
- end)
- 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)
- end
- coroutine.wrap(YBFQ_fake_script)()
- local function PCITLXF_fake_script() -- BringPlanks.Script
- local script = Instance.new('Script', BringPlanks)
- BringPlanks.MouseButton1Click:connect(function()
- for i,models in pairs(game.Workspace.PlayerModels:GetChildren()) do
- if string.match(models.Name:lower(), "plank") then
- if models.Owner.Value == game.Players.LocalPlayer then
- spawn(function()
- for i=1, 5 do
- models.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(models.WoodSection)
- wait()
- end
- end)
- end
- end
- end
- end)
- end
- coroutine.wrap(PCITLXF_fake_script)()
- local function MLDX_fake_script() -- SellPlanks.Script
- local script = Instance.new('Script', SellPlanks)
- SellPlanks.MouseButton1Down:connect(function()
- if Plank.Name == "Plank" and Plank:findFirstChild("Owner") then
- if Plank.Owner.Value == service.Players.LocalPlayer then
- for i,v in pairs(Plank: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()
- service.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Plank)
- end
- end)
- end
- end
- end)
- end
- coroutine.wrap(MLDX_fake_script)()
- local function LZLSR_fake_script() -- SellWood.Script
- local script = Instance.new('Script', SellWood)
- 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)
- end
- coroutine.wrap(LZLSR_fake_script)()
- local function LCSQZHQ_fake_script() -- Dupe.Script
- local script = Instance.new('Script', Dupe)
- Dupe.MouseButton1Down:connect(function()
- local Slot = game:GetService('Players').LocalPlayer.CurrentSaveSlot
- if pa == true then
- Slot.RobloxLocked = false
- pa = false
- Dupe.BackgroundColor3 = Color3.new(0.0941177, 1, 1)
- Dupe.Text = "DUPE"
- else
- pa = true
- if Slot.Value == -1 then
- Slot.RobloxLocked = true
- Dupe.BackgroundColor3 = Color3.new(0, 255, 0)
- Dupe.Text = "Disable DUPE"
- end
- end
- end)
- end
- coroutine.wrap(LCSQZHQ_fake_script)()
- local function EYHLWTR_fake_script() -- TPS.Script
- local script = Instance.new('Script', TPS)
- TPS.MouseButton1Down:connect(function()
- loadstring(game:HttpGet('https://pastebin.com/raw/aifEBMGx',true))()
- end)
- end
- coroutine.wrap(EYHLWTR_fake_script)()
- local function YGBF_fake_script() -- GoldAxe.Script
- local script = Instance.new('Script', GoldAxe)
- GoldAxe.MouseButton1Down:connect(function()
- GoldAxe.BackgroundColor3 = Color3.new(0, 255, 0)
- GoldAxe.Text = "Active, but can't off"
- Detect = coroutine.wrap(function()
- Player = game.Players.LocalPlayer
- mouse = Player:GetMouse()
- mouse.Button1Down:connect(function()
- MouseDown = true
- end)
- mouse.Button1Up:connect(function()
- MouseDown = false
- end)
- end)
- Detect()
- Player = game.Players.LocalPlayer
- mouse = Player:GetMouse()
- game:GetService('RunService').RenderStepped:connect(function()
- if Player.Character:FindFirstChild("Tool") then
- if MouseDown == true then
- if mouse.Target.Name == "WoodSection" then
- targetWood = mouse.Target
- Tool=Player.Character.Tool
- ---FaceVector
- Height = targetWood.CFrame:pointToObjectSpace(mouse.Hit.p).Y + targetWood.Size.Y/2
- local ray = Ray.new(Player.Character.Head.Position, ((targetWood.CFrame * CFrame.new(0, Height - targetWood.Size.Y/2, 0)).p - Player.Character.Head.Position).unit * 200)
- part,_,p = workspace:FindPartOnRay(ray, Player.Character)
- function fixVector(V)
- return Vector3.new(math.floor(V.X + 0.5), math.floor(V.Y + 0.5), math.floor(V.Z + 0.5))
- end
- local faceVector = fixVector(targetWood.CFrame:vectorToObjectSpace(p))
- if faceVector.Y ~= 0 then
- return
- end
- local lookAtCFrame = CFrame.new(Player.Character.Head.Position, mouse.Hit.p)
- local relativeCFrame = lookAtCFrame:toObjectSpace(targetWood.CFrame * CFrame.Angles(math.pi/2, 0, 0))
- local relativeLookVector = relativeCFrame.lookVector
- local m = relativeLookVector.Y >= 0 and 1 or -1
- if faceVector.X == 1 then
- faceVector = Vector3.new(0, 0, -1) * m
- elseif faceVector.X == -1 then
- faceVector = Vector3.new(0, 0, 1) * m
- elseif faceVector.Z == 1 then
- faceVector = Vector3.new(1, 0, 0) * m
- elseif faceVector.Z == -1 then
- faceVector = Vector3.new(-1, 0, 0) * m
- end
- local cutEvent = targetWood.Parent.CutEvent
- game.ReplicatedStorage.Interaction.RemoteProxy:FireServer(cutEvent, {sectionId = targetWood.ID.Value, faceVector = faceVector, height = Height, hitPoints = 0.2, cooldown = 0, cuttingClass = "Axe", tool = Player.Character.Tool})
- end
- end
- end
- end)
- end)
- end
- coroutine.wrap(YGBF_fake_script)()
- local function QITW_fake_script() -- MaxLand.Script
- local script = Instance.new('Script', MaxLand)
- 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)
- end
- coroutine.wrap(QITW_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement