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