Advertisement
ClockworkHorror

[ROBLOX] Particle Character

Jul 2nd, 2015
877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Char = Player.Character
  3. Mouse = Player:GetMouse()
  4. invis = false
  5.  
  6. Mouse.KeyDown:connect(function(key)
  7. if key:lower() == "0" then
  8. if not invis then
  9. for i,v in pairs(Char:children()) do
  10. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  11. v.Transparency = 1
  12. local f = Instance.new("ParticleEmitter",v)
  13. f.Name = "Particle"
  14. f.Color = ColorSequence.new(BrickColor.new("White").Color, BrickColor.new("Really black").Color)
  15. f.Texture = "http://www.roblox.com/asset/?id=285779809"
  16. f.Size = NumberSequence.new(0.20)
  17. f.Transparency = NumberSequence.new(0)
  18. f.Lifetime = NumberRange.new(1,1)
  19. f.Rate = math.small
  20. f.Rotation = NumberRange.new(math.huge)
  21. f.RotSpeed = NumberRange.new(math.huge)
  22. f.Speed = NumberRange.new(0)
  23. if Char.Head:findFirstChild("face") then
  24. Char.Head.face.Parent = Char
  25. end
  26. elseif v:IsA("Hat") then
  27. if v.Handle then
  28. v.Handle.Transparency = 1
  29. end
  30. end
  31. end
  32.  
  33. invis = true
  34. elseif invis then
  35. for i,v in pairs(Char:children()) do
  36. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  37. v.Transparency = 0
  38. if v.Particle then
  39. v.Particle:Destroy()
  40. end
  41. elseif v:IsA("Hat") then
  42. if v.Handle then
  43. v.Handle.Transparency = 0
  44. end
  45. end
  46. end
  47. if Char.face then
  48. Char.face.Parent = Char.Head
  49. end
  50. Char.Humanoid.WalkSpeed = 16
  51. invis = false
  52. end
  53. end
  54. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement