Skip to content

Instantly share code, notes, and snippets.

@mrsprinkler
Last active August 22, 2022 00:53
Show Gist options
  • Save mrsprinkler/eaa63e5640db5497af05a84a6e0991c8 to your computer and use it in GitHub Desktop.
Save mrsprinkler/eaa63e5640db5497af05a84a6e0991c8 to your computer and use it in GitHub Desktop.
Roblox Build a boat Farm Script
print("V 1.2.4")
local on = false
local plr = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui",plr.PlayerGui)
local button = Instance.new("TextButton",gui)
local box = Instance.new("TextBox",gui)
local posxGui = Instance.new("TextLabel",gui)
local posGui = Instance.new("TextLabel",gui)
--gui:Destroy()
-->>Properies<<--
print("data")
gui.Name = "Shop"
gui.ResetOnSpawn = false
posxGui.Name = "PlayerXPostion"
posxGui.Position = UDim2.new(0.416, 0,0.027, 0)
posxGui.Size = UDim2.new(0,200,0,50)
posxGui.BackgroundColor3 = Color3.new(0,0,0)
posxGui.Transparency = 0.65
posxGui.TextColor = BrickColor.White()
posxGui.TextScaled = true
posxGui.Text = "Loading"
posGui.Name = "PlayerZPostion"
posGui.Position = UDim2.new(0.416, 210,0.027, 0)
posGui.Size = UDim2.new(0,200,0,50)
posGui.BackgroundColor3 = Color3.new(0,0,0)
posGui.Transparency = 0.65
posGui.TextColor = BrickColor.White()
posGui.TextScaled = true
posGui.Text = "Loading"
box.Name = "box"
box.Text = "500"
button.Name = "Button"
button.Position = UDim2.new(0.004, 0,0.808, 0)
button.Size = UDim2.new(0, 200,0, 50)
button.BackgroundColor3 = Color3.new(0,0,0)
button.Transparency = 0.65
--button.AnchorPoint = Vector2.new(0.5,0.5)
box.TextScaled = true
box.Size = UDim2.new(0,200,0,50)
box.Position = UDim2.new(0,0,0.616,0)
--box.AnchorPoint = Vector2.new(0.5,0.5)
button.BackgroundColor3 = Color3.new(0,0,0)
box.Transparency = 0.65
button.TextColor = BrickColor.White()
box.TextColor = BrickColor.White()
Instance.new("UICorner",button)
Instance.new("UICorner",posGui)
Instance.new("UICorner",posxGui)
-->>Functions<<--
local function run()
on = not on
if on == false then
plr.Character.Humanoid.Health = 0
end--
plr.Character.HumanoidRootPart.CFrame = CFrame.new(-55,50,0)
while on and wait() do
if plr.Character.HumanoidRootPart.Position.Z < 8700 then
plr.Character.HumanoidRootPart.Velocity = Vector3.new(0,3,gui.box.Text)
else
if on == true then
local oldLocation = plr.Character.HumanoidRootPart.Position.Magnitude
on = false
wait(1)
plr.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
plr.Character.HumanoidRootPart.CFrame = CFrame.new(-55,-340,9490)
wait(17)
print("began")
while wait(3) do
if math.abs(oldLocation - plr.Character.HumanoidRootPart.Position.Magnitude) < 1000 then
plr.Character.HumanoidRootPart.CFrame = CFrame.new(-55,-340,9490)
print("Repeating")
else
on = false
run()
break
end
end--if
end--while
end
end--while on
end--function end
local function val()
run()
end
wait(5)
print("before comman error")
plr.Character.Humanoid.Died:Connect(function()
on = false
print("Died")
wait(game.Players.RespawnTime+1)
plr.Character.HumanoidRootPart.CFrame = CFrame.new(-55,70,0)
run()
end)--]]
button.MouseButton1Up:Connect(run)
while wait() do
if plr.Character then
if plr.Character:FindFirstChild("HumanoidRootPart") then
gui.PlayerXPostion.Text = tostring(math.round(plr.Character.HumanoidRootPart.Position.X))
gui.PlayerZPostion.Text = tostring(math.round(plr.Character.HumanoidRootPart.Position.Z))
end end
end
print("1.2.4")
@mrsprinkler
Copy link
Author

or use this for short: loadstring(game:HttpGet("https://gist.githubusercontent.com/Mahmoud-Bamian/eaa63e5640db5497af05a84a6e0991c8/raw/d9f67830c7226f7204203c9707bb9555162db6b1/script.lua"))()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment