Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. --Writted by kenty
  2.  
  3.  
  4. function onKeyPress(inputObject, gameProcessedEvent)
  5. local plr=game:service("Players").LocalPlayer;
  6. local character = plr.Character
  7. if inputObject.KeyCode == Enum.KeyCode.R then
  8. local x = Instance.new("Part", game.Workspace)
  9. game.Debris:AddItem(x, 4)
  10. x.CanCollide = false
  11. local ay = math.random(1,2)
  12. if ay == 1 then
  13. x.BrickColor = BrickColor.new("White")
  14. else
  15. x.BrickColor = BrickColor.new("Cyan")
  16. end x.Anchored = true
  17. x.Material = ("Neon")
  18. x.CFrame = Player.Character.HumanoidRootPart.CFrame
  19. x.Size = Vector3.new(1,1,1)
  20. x.TopSurface = "Smooth"
  21. x.BottomSurface = "Smooth"
  22.  
  23. local m1 = Instance.new("SpecialMesh", x)
  24. m1.MeshType = "Sphere"
  25.  
  26. for loop = 1,100 do
  27. m1.Scale = m1.Scale + Vector3.new(2,2,2)
  28. x.Transparency = x.Transparency + 0.02
  29. wait()
  30. end
  31. wait(1)
  32. end
  33. wait(0.3)
  34. game.ReplicatedStorage.Effect.ParticleEmitter:Clone().Parent = plr.Character:FindFirstChild("Right Arm")
  35. game.ReplicatedStorage.Effect.ParticleEmitter:Clone().Parent = plr.Character:FindFirstChild("Left Arm")
  36. game.ReplicatedStorage.Effect.ParticleEmitter:Clone().Parent = plr.Character:FindFirstChild("Left Leg")
  37. game.ReplicatedStorage.Effect.ParticleEmitter:Clone().Parent = plr.Character:FindFirstChild("Right Leg")
  38. game.ReplicatedStorage.Effect.ParticleEmitter:Clone().Parent = plr.Character:FindFirstChild("Head")
  39. game.ReplicatedStorage.Effect.ParticleEmitter:Clone().Parent = plr.Character:FindFirstChild("HumanoidRootPart")
  40. local k = game.ReplicatedStorage.Effect:WaitForChild("OMG")
  41. game.ReplicatedStorage.Effect.OMG:Clone().Parent = plr.Character:FindFirstChild("HumanoidRootPart")
  42. wait(1)
  43. k:Destroy()
  44. end
  45. end
  46. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement