Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mse = plr:GetMouse()
  3. sound = Instance.new("Sound", game.Workspace)
  4. sound.SoundId = "https://www.roblox.com/asset/?id=274698941"
  5. sound.Volume = 10
  6. canworld = true
  7. mse.KeyDown:connect(function(key)
  8. key = key:lower()
  9. if key == "z" then
  10. if canworld == false then return end
  11. if canworld then
  12. canworld = false
  13. sound:Play()
  14. local function spawnpart()
  15. sphere = Instance.new("Part")
  16. --game.Debris:AddItem(sphere,3)
  17. local sm = Instance.new("SpecialMesh", sphere)
  18. sm.MeshType = "Sphere"
  19. sphere.Transparency = 0.5
  20. sphere.Anchored = true
  21. sphere.CanCollide = false
  22. sphere.Material = "SmoothPlastic"
  23. sphere.BrickColor = BrickColor.new("Lapis")
  24. end
  25.  
  26. local function weld(lol)
  27. local weld = Instance.new("Weld", plr.Character.Torso)
  28. weld.Part0 = plr.Character.Torso
  29. weld.Part1 = lol
  30. weld.C0 = plr.Character.Torso.CFrame:inverse()
  31. weld.C1 = lol.CFrame:inverse()
  32. end
  33. wait(1.4)
  34. spawnpart()
  35. for i, v in pairs(game.Players:GetChildren()) do
  36. t = v.Character:FindFirstChild("Torso")
  37. if t then
  38. t.Anchored = true
  39. plr.Character:FindFirstChild("Torso").Anchored = false
  40. end
  41. RA = v.Character:FindFirstChild("Right Arm")
  42. if RA then
  43. RA.Anchored = true
  44. plr.Character:FindFirstChild("Right Arm").Anchored = false
  45. end
  46. LA = v.Character:FindFirstChild("Left Arm")
  47. if LA then
  48. LA.Anchored = true
  49. plr.Character:FindFirstChild("Left Arm").Anchored = false
  50. end
  51. RL = v.Character:FindFirstChild("Right Leg")
  52. if RL then
  53. RL.Anchored = true
  54. plr.Character:FindFirstChild("Right Leg").Anchored = false
  55. end
  56. LL = v.Character:FindFirstChild("Left Leg")
  57. if LL then
  58. LL.Anchored = true
  59. plr.Character:FindFirstChild("Left Leg").Anchored = false
  60. end
  61. end
  62. weld(sphere)
  63. cce = Instance.new("ColorCorrectionEffect", game.Lighting)
  64. cce.Saturation = -2
  65. --game.Debris:AddItem(cce, 5)
  66. sphere.Parent = game.Workspace
  67. for i = 1,10 do
  68. sphere.Size = sphere.Size + Vector3.new(50,50,50)
  69. wait()
  70. end
  71. --wait(5)
  72.  
  73. end
  74. end
  75. end
  76. )
  77.  
  78. mse.KeyDown:connect(function(key)
  79. key = key:lower()
  80. if key == "l" then
  81. canworld = true
  82. for i, v in pairs(game.Players:GetChildren()) do
  83. t = v.Character:FindFirstChild("Torso")
  84. if t then
  85. t.Anchored = false
  86. end
  87. RA = v.Character:FindFirstChild("Right Arm")
  88. if RA then
  89. RA.Anchored = false
  90. end
  91. LA = v.Character:FindFirstChild("Left Arm")
  92. if LA then
  93. LA.Anchored = false
  94. end
  95. RL = v.Character:FindFirstChild("Right Leg")
  96. if RL then
  97. RL.Anchored = false
  98. end
  99. LL = v.Character:FindFirstChild("Left Leg")
  100. if LL then
  101. LL.Anchored = false
  102. end
  103. end
  104. cce.Saturation = 0
  105. sphere:Destroy()
  106. end
  107. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement