Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pcall(function()
- local Move = game.Workspace.Map
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Players = game:GetService("Players")
- local mouse = Players.LocalPlayer:GetMouse()
- mouse.KeyDown:Connect(function(key)
- if key == "k" then
- if Move.Parent == game.Workspace then
- Move.Parent = ReplicatedStorage
- Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
- elseif Move.Parent == ReplicatedStorage then
- Move.Parent = game.Workspace
- Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
- end
- end
- end)
- while wait() do
- if game.Workspace:FindFirstChild("Map") then
- Move = game.Workspace.Map
- elseif ReplicatedStorage:FindFirstChild("Map") then
- Move = ReplicatedStorage.Map
- end
- end
- end)
Add Comment
Please, Sign In to add comment