FuZe_Bleed

Remove map

Sep 15th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local Move = game.Workspace.Map
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local Players = game:GetService("Players")
  4. local mouse = Players.LocalPlayer:GetMouse()
  5. local a = false
  6.  
  7. mouse.KeyDown:Connect(function(key)
  8. if key == "e" then
  9. if a == false then
  10. Move.Parent = ReplicatedStorage
  11. Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  12. a = true
  13. elseif a == true then
  14. Move.Parent = game.Workspace
  15. Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  16. a = false
  17. end
  18. end
  19. end)
Add Comment
Please, Sign In to add comment