Advertisement
Guest User

BoobleBoobleDoobleTroooble

a guest
Dec 14th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. local LocalPlayer = game:GetService("Players").LocalPlayer
  2. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
  3. local Mouse = game.Players.LocalPlayer:GetMouse()
  4.  
  5. local Orb = Instance.new("Part", Character)
  6. Orb.Material = "Glass"
  7. Orb.Name = "Orb"
  8. Orb.Shape = Enum.PartType.Ball
  9. Orb.CanCollide = true
  10. Orb.BrickColor = BrickColor.new("Pastel Blue")
  11. Orb.Transparency = 0.5
  12. Orb.Size = Vector3.new(7, 7, 7)
  13. Orb.TopSurface = Enum.SurfaceType.Smooth
  14. Orb.BottomSurface = Enum.SurfaceType.Smooth
  15.  
  16. local Weld = Instance.new("Weld", Orb)
  17. Weld.Part0 = Character.Torso
  18. Weld.Part1 = Orb
  19. Weld.C1 = CFrame.new(0, 0, 0)
  20.  
  21. Character.Humanoid.JumpPower = 175
  22.  
  23. Character.Humanoid.WalkSpeed = 60
  24.  
  25. Character.Humanoid.MaxHealth = math.huge
  26.  
  27. Mouse.KeyDown:connect(function(Key)
  28. if Key == "z" then
  29. local WallOne = Instance.new("Part", Character)
  30. WallOne.Material = "Glass"
  31. WallOne.Name = "WallOne"
  32. WallOne.BrickColor = BrickColor.new("Pastel Blue")
  33. WallOne.CanCollide = true
  34. WallOne.Transparency = 0.5
  35. WallOne.Size = Vector3.new(2, 12, 14.05)
  36. WallOne.Anchored = true
  37. WallOne.CFrame = Character.Torso.CFrame * CFrame.new(5,0,0)
  38. local WallTwo = Instance.new("Part", Character)
  39. WallTwo.Material = "Glass"
  40. WallTwo.Name = "WallOne"
  41. WallTwo.BrickColor = BrickColor.new("Pastel Blue")
  42. WallTwo.CanCollide = true
  43. WallTwo.Transparency = 0.5
  44. WallTwo.Size = Vector3.new(2, 12, 14.05)
  45. WallTwo.Anchored = true
  46. WallTwo.CFrame = Character.Torso.CFrame * CFrame.new(-5,0,0)
  47. local WallThree = Instance.new("Part", Character)
  48. WallThree.Material = "Glass"
  49. WallThree.Name = "WallOne"
  50. WallThree.BrickColor = BrickColor.new("Pastel Blue")
  51. WallThree.CanCollide = true
  52. WallThree.Transparency = 0.5
  53. WallThree.Size = Vector3.new(12, 12, 1)
  54. WallThree.Anchored = true
  55. WallThree.CFrame = Character.Torso.CFrame * CFrame.new(0,0,7)
  56. local WallFour = Instance.new("Part", Character)
  57. WallFour.Material = "Glass"
  58. WallFour.Name = "WallOne"
  59. WallFour.BrickColor = BrickColor.new("Pastel Blue")
  60. WallFour.CanCollide = true
  61. WallFour.Transparency = 0.5
  62. WallFour.Size = Vector3.new(12, 12, 1)
  63. WallFour.Anchored = true
  64. WallFour.CFrame = Character.Torso.CFrame * CFrame.new(0,0,-7)
  65. local Roof = Instance.new("Part", Character)
  66. Roof.Material = "Glass"
  67. Roof.Name = "WallOne"
  68. Roof.BrickColor = BrickColor.new("Pastel Blue")
  69. Roof.CanCollide = true
  70. Roof.Transparency = 0.5
  71. Roof.Size = Vector3.new(11.5, 0.95, 14)
  72. Roof.Anchored = true
  73. Roof.CFrame = Character.Torso.CFrame * CFrame.new(0,6,0)
  74. wait(3)
  75. WallFour:Remove()
  76. WallThree:Remove()
  77. WallTwo:Remove()
  78. WallOne:Remove()
  79. Roof:Remove()
  80. end
  81. end)
  82.  
  83.  
  84.  
  85. Mouse.KeyDown:connect(function(Key)
  86. if Key == "x" then
  87. local WallThree = Instance.new("Part", Character)
  88. WallThree.Material = "Glass"
  89. WallThree.Name = "Wall"
  90. WallThree.BrickColor = BrickColor.new("Pastel Blue")
  91. WallThree.CanCollide = true
  92. WallThree.Transparency = 0.5
  93. WallThree.Size = Vector3.new(12, 12, 1)
  94. WallThree.Anchored = true
  95. WallThree.CFrame = Character.Torso.CFrame * CFrame.new(0,0,-7)
  96. wait(3)
  97. WallThree:Remove()
  98.  
  99. end
  100. end)
  101.  
  102. Mouse.KeyDown:connect(function(Key)
  103. if Key == "c" then
  104. local Roof = Instance.new("Part", Character)
  105. Roof.Material = "Glass"
  106. Roof.Name = "Floor"
  107. Roof.BrickColor = BrickColor.new("Pastel Blue")
  108. Roof.CanCollide = true
  109. Roof.Transparency = 0.5
  110. Roof.Size = Vector3.new(11.5, 0.95, 14)
  111. Roof.Anchored = true
  112. Roof.CFrame = Character.Torso.CFrame * CFrame.new(0,-5,0)
  113. wait(3)
  114. Roof:Remove()
  115.  
  116. end
  117. end)
  118.  
  119.  
  120. local player = game.Players.LocalPlayer
  121. local mouse = player:GetMouse()
  122. mouse.Button1Down:connect(function()
  123. local mT = mouse.Target
  124. if mT.Parent.Humanoid then
  125. local hum = mT.Parent.Humanoid
  126. local head = mT.Parent.Humanoid.Parent.Head
  127. local Orb = Instance.new("Part", Character)
  128. Orb.Material = "Glass"
  129. Orb.Name = "Orb"
  130. Orb.Shape = Enum.PartType.Ball
  131. Orb.CanCollide = true
  132. Orb.BrickColor = BrickColor.new("Pastel Blue")
  133. Orb.Transparency = 0.5
  134. Orb.Size = Vector3.new(2, 2, 2)
  135.  
  136. local force = Instance.new("BodyForce", mT.Parent.Humanoid.Parent.Torso)
  137. force.Force.Y = 2000
  138.  
  139. local Weld = Instance.new("Weld", Orb)
  140. Weld.Part0 = mT.Parent.Humanoid.Parent.Head
  141. Weld.Part1 = Orb
  142. Weld.C1 = CFrame.new(0, 0, 0)
  143.  
  144. wait(3)
  145. hum.Parent:BreakJoints()
  146. Orb:Remove()
  147. end
  148. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement