pnyx

Untitled

Oct 21st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local Players = game:GetService("Players")
  3. local mouse = Players.LocalPlayer:GetMouse()
  4. local a = false
  5.  
  6. mouse.KeyDown:Connect(function(key)
  7. if key == "x" then
  8. if a == false then
  9. pcall(function() game.Workspace.Map.Parent = ReplicatedStorage end)
  10. if game.Workspace:FindFirstChild('#elta') ~= nil then
  11. game.Workspace:WaitForChild('#elta'):Destroy()
  12. end
  13.  
  14. local abc = Instance.new('Part', workspace)
  15. abc.Anchored = true
  16. abc.Name = "#elta"
  17. abc.Size = Vector3.new(2048, 1, 2048)
  18. abc.CFrame = CFrame.new(Players.LocalPlayer.Character.HumanoidRootPart.CFrame.X, Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Y -10, Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Z)
  19.  
  20. a = true
  21. elseif a == true then
  22. pcall(function() ReplicatedStorage.Map.Parent = game.Workspace end)
  23. if game.Workspace:FindFirstChild('#elta') ~= nil then
  24. game.Workspace:WaitForChild('#elta'):Destroy()
  25. end
  26. a = false
  27. end
  28. end
  29. end)
Add Comment
Please, Sign In to add comment