Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part1=Instance.new("Part", workspace);
- part1.Position = Vector3.new(16000, 200, -16000)
- part1.Anchored = true
- part1.Size = Vector3.new(2000,5,2000)
- local part2=Instance.new("Part", workspace);
- part2.Position = Vector3.new(-16000, 200, 16000)
- part2.Anchored = true
- part2.Size = Vector3.new(2000,5,2000)
- local waitTime = 0.1
- local found = false
- local go = true
- Statue = false
- m = game.Players.LocalPlayer:GetMouse()
- m.KeyDown:connect(function(key)
- if key == "b" then
- if Statue == true then Statue = false
- elseif
- Statue == false then Statue = true
- function findVehicle()
- while not found do
- local vehicles = Workspace.Vehicles:getChildren()
- for i=1,#vehicles do
- if vehicles[i]:findFirstChild'owner' then
- if vehicles[i].owner.Value == game:GetService'Players'.LocalPlayer.Name then
- found = true
- vehicle = vehicles[i]
- elseif vehicles[i + 1] == nil and not found then
- end
- end
- end
- wait(1)
- end
- wait(2)
- vehicle.PrimaryPart = vehicle.Chassis.VehicleSeat
- end
- function farm()
- while wait(waitTime) do
- if Statue == true then
- vehicle:SetPrimaryPartCFrame(CFrame.new(16000, 203, -16000))
- wait(0.1)
- vehicle:SetPrimaryPartCFrame(CFrame.new(-16000, 203, 16000))
- game:GetService'VirtualUser':SetKeyUp("w")
- game:GetService'VirtualUser':SetKeyDown("w")
- end
- end
- end
- findVehicle()
- while go do
- if not pcall(farm()) then
- found = false
- findVehicle()
- end
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment