Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local _workspace = game:GetService("Workspace")
- local players = game:GetService("Players")
- local grassFolder = _workspace:WaitForChild("GrassObjects")
- local player = players.LocalPlayer
- local isToggled = false
- spawn(function()
- while task.wait(.1) do
- if isToggled then
- for i,v in ipairs(grassFolder:GetChildren()) do
- if v.CFrame ~= CFrame.new(0, -100, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) then
- task.wait(.1)
- if not isToggled then break end
- player.Character.HumanoidRootPart.CFrame = v.CFrame
- end
- end
- end
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.R then
- isToggled = not isToggled
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement