Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local Respawn
- pcall(function() Respawn = getsenv(game:GetService("ReplicatedFirst"):FindFirstChildOfClass("LocalScript")).Respawn end)
- _G.farm=true
- while wait(0) do
- if _G.farm then
- local char = player.Character
- local root = char.HumanoidRootPart
- for j=1,3 do
- char:SetPrimaryPartCFrame(CFrame.new(-360,639,-250))
- wait(0)
- for k=1,19 do
- if root:FindFirstChild("BodyForce") then root.BodyForce:Destroy() end
- root.Velocity = Vector3.new(0,-360,0)
- wait(0)
- end
- end
- for j=1,30 do
- char:SetPrimaryPartCFrame(CFrame.new(-360,639,-250))
- root.Velocity = Vector3.new(0,-360,0)
- wait()
- end
- wait(0)
- if Respawn then
- player.PlayerGui.Gui.Summary:TweenPosition(UDim2.new(0,-360,0), "In", "Back", 0.75, true)
- Respawn(workspace.CurrentCamera.CFrame, workspace.CurrentCamera.Focus)
- player.PlayerGui.Gui.Summary.Visible=false
- else
- repeat wait(0) until not player.PlayerGui.Gui.Summary.Visible
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment