Advertisement
PhantomFood4

TrappedBruhCube

Jul 5th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. local SoundP = Instance.new("Part",workspace)
  2. SoundP.Position = Vector3.new(10,3,10)
  3. SoundP.Size = Vector3.new(2,2,2)
  4. SoundP.Anchored = true
  5. SoundP.Material = ("SmoothPlastic")
  6. SoundP.BrickColor = BrickColor.new("Medium stone grey")
  7. SoundP.Locked = true
  8. local ClickD = Instance.new("ClickDetector", SoundP)
  9. local Sound = Instance.new("Sound",SoundP)
  10.  
  11. function soundplay()
  12. Sound.SoundId = "rbxassetid://2803889112"
  13. Sound.Volume = 5
  14. Sound:Play()
  15. Sound.TimePosition = .5
  16. end
  17.  
  18. function Clicked(player)
  19. if player.Name == "Food2004" or player.Name == "Memo1332" then
  20. soundplay()
  21. SoundP.BrickColor = BrickColor.new("Bright orange")
  22. SoundP.Material = ("Neon")
  23. wait(.5)
  24. SoundP.BrickColor = BrickColor.new("Medium stone grey")
  25. SoundP.Material = ("SmoothPlastic")
  26. else player.Character.Head.Size = Vector3.new(5,5,5)
  27. print("DON'T TOUCH")
  28. end
  29. end
  30.  
  31. ClickD.MouseClick:connect(Clicked)
  32.  
  33.  
  34.  
  35. local Apart = Instance.new("Part",workspace)
  36. Apart.Position = Vector3.new(10, 9.25, 10)
  37. Apart.Anchored = true
  38. Apart.Material = ("Neon")
  39. Apart.Size = Vector3.new(.5,1.5,0.5)
  40. Apart.Locked = true
  41. Apart.BrickColor = BrickColor.new("Really red")
  42.  
  43. local Awedge1 = Instance.new("WedgePart",workspace)
  44. Awedge1.Position = Vector3.new(9.625, 7.75, 10)
  45. Awedge1.Anchored = true
  46. Awedge1.Material = ("Neon")
  47. Awedge1.Size = Vector3.new(0.5, 0.75, 1.5)
  48. Awedge1.Orientation = Vector3.new(-90, 90, 0)
  49. Awedge1.Locked = true
  50. Awedge1.BrickColor = BrickColor.new("Really red")
  51.  
  52. local Awedge2 = Instance.new("WedgePart",workspace)
  53. Awedge2.Position = Vector3.new(10.375, 7.75, 10)
  54. Awedge2.Anchored = true
  55. Awedge2.Material = ("Neon")
  56. Awedge2.Size = Vector3.new(0.5, 0.75, 1.5)
  57. Awedge2.Orientation = Vector3.new(-90, -90, 0)
  58. Awedge2.Locked = true
  59. Awedge2.BrickColor = BrickColor.new("Really red")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement