Advertisement
EmeraldIT

Untitled

Apr 2nd, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. local chr = owner.Character
  2. local x = 0
  3. local z = 0
  4. local x2 = 0
  5. local z2 = 0
  6. sees = {
  7. NumberSequenceKeypoint.new(0,1),
  8. NumberSequenceKeypoint.new(0.2,0),
  9. NumberSequenceKeypoint.new(0.8,0),
  10. NumberSequenceKeypoint.new(1,1)}
  11. sizes = {
  12. NumberSequenceKeypoint.new(0,0),
  13. NumberSequenceKeypoint.new(0.2,0.1),
  14. NumberSequenceKeypoint.new(0.8,0.1),
  15. NumberSequenceKeypoint.new(1,0)}
  16. hu = math.huge
  17. local huh = Instance.new("Part")
  18. huh.Size = Vector3.new(2.5,2.5,2.5)
  19. huh.BrickColor = BrickColor.new("Really black")
  20. huh.Material = "Neon"
  21. huh.Anchored = false
  22. huh.CanCollide = false
  23. huh.Position = chr.HumanoidRootPart.Position
  24. huh.Parent = chr
  25. pt = Instance.new("ParticleEmitter")
  26. pt.LightEmission = 1
  27. pt.Speed = NumberRange.new(0)
  28. pt.Lifetime = NumberRange.new(1,3)
  29. pt.Transparency = NumberSequence.new(sees)
  30. pt.Size = NumberSequence.new(sizes)
  31. pt.Rate = 250
  32. pt.Parent = huh
  33. pt.ZOffset = 1.5
  34. pt2 = pt:Clone()
  35. pt2.LockedToPart = true
  36. pt2.Parent = huh
  37. gy = Instance.new("BodyGyro")
  38. gy.MaxTorque = Vector3.new(hu, hu, hu)
  39. gy.Parent = huh
  40. local p = Instance.new("BodyPosition")
  41. p.MaxForce = Vector3.new(hu, hu, hu)
  42. p.Parent = huh
  43. spawn(function()
  44. while true do
  45. p.Position = (chr.HumanoidRootPart.Position + Vector3.new(0,5,0))
  46. game:GetService("RunService").Stepped:wait()
  47. end
  48. end)
  49. while true do
  50. game:GetService("RunService").Stepped:wait()
  51. if x == 360 then
  52. x = 0
  53. elseif z == 360 then
  54. z = 0
  55. end
  56. x = x + 1
  57. z = z - 2
  58. gy.CFrame = gy.CFrame:Lerp(chr.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(x),math.rad(0),math.rad(z)), 0.1)
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement