Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chr = owner.Character
- local x = 0
- local z = 0
- local x2 = 0
- local z2 = 0
- sees = {
- NumberSequenceKeypoint.new(0,1),
- NumberSequenceKeypoint.new(0.2,0),
- NumberSequenceKeypoint.new(0.8,0),
- NumberSequenceKeypoint.new(1,1)}
- sizes = {
- NumberSequenceKeypoint.new(0,0),
- NumberSequenceKeypoint.new(0.2,0.1),
- NumberSequenceKeypoint.new(0.8,0.1),
- NumberSequenceKeypoint.new(1,0)}
- hu = math.huge
- local huh = Instance.new("Part")
- huh.Size = Vector3.new(2.5,2.5,2.5)
- huh.BrickColor = BrickColor.new("Really black")
- huh.Material = "Neon"
- huh.Anchored = false
- huh.CanCollide = false
- huh.Position = chr.HumanoidRootPart.Position
- huh.Parent = chr
- pt = Instance.new("ParticleEmitter")
- pt.LightEmission = 1
- pt.Speed = NumberRange.new(0)
- pt.Lifetime = NumberRange.new(1,3)
- pt.Transparency = NumberSequence.new(sees)
- pt.Size = NumberSequence.new(sizes)
- pt.Rate = 250
- pt.Parent = huh
- pt.ZOffset = 1.5
- pt2 = pt:Clone()
- pt2.LockedToPart = true
- pt2.Parent = huh
- gy = Instance.new("BodyGyro")
- gy.MaxTorque = Vector3.new(hu, hu, hu)
- gy.Parent = huh
- local p = Instance.new("BodyPosition")
- p.MaxForce = Vector3.new(hu, hu, hu)
- p.Parent = huh
- spawn(function()
- while true do
- p.Position = (chr.HumanoidRootPart.Position + Vector3.new(0,5,0))
- game:GetService("RunService").Stepped:wait()
- end
- end)
- while true do
- game:GetService("RunService").Stepped:wait()
- if x == 360 then
- x = 0
- elseif z == 360 then
- z = 0
- end
- x = x + 1
- z = z - 2
- gy.CFrame = gy.CFrame:Lerp(chr.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(x),math.rad(0),math.rad(z)), 0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement