Advertisement
BobMe

Run

Nov 24th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local s = Instance.new("Sound")
  2.  
  3. print ("Loading...")
  4. repeat wait() until game.Players.LocalPlayer
  5. print ("Loaded.")
  6. local Mouse = game.Players.LocalPlayer:GetMouse()
  7. local Plr = game.Players.LocalPlayer
  8.  
  9. Mouse.KeyDown:connect(function(KeyDown)
  10. if KeyDown == "p" then
  11. wait()
  12. local part = Instance.new("Part")
  13. part.Anchored = false
  14. part.BrickColor = BrickColor.random()
  15. part.Name = "Red Part"
  16. part.Parent = workspace
  17. repeat until Mouse.KeyUp:connect(function(KeyUp)
  18. end
  19. end)
  20.  
  21. Mouse.KeyUp:connect(function(KeyUp)
  22. if KeyUp == "0" then
  23. print ("Brick(s) spawned!")
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement