Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I am having trouble scripting a Swaying Particle?

Asked by 6 years ago

A Particle that sways from side to side kinda like a tail? (This is what i got up to the particle appears but i have been having trouble trying to finish it, i tried changing the acceleration but it didnt work)

local transPoints = { NumberSequenceKeypoint.new(0,.819,.0375), NumberSequenceKeypoint.new(.207,.594,.0187), NumberSequenceKeypoint.new(.4,.55,.031), NumberSequenceKeypoint.new(.57,.619,.05), NumberSequenceKeypoint.new(.76,.8,.0375), NumberSequenceKeypoint.new(1,1,0), } local sizePoints = { NumberSequenceKeypoint.new(0,.687,0), NumberSequenceKeypoint.new(.111,.875,0), NumberSequenceKeypoint.new(.327,1.19,0), NumberSequenceKeypoint.new(.646,1.56,0), NumberSequenceKeypoint.new(.805,1.37,0), NumberSequenceKeypoint.new(.905,1.06,0), NumberSequenceKeypoint.new(.968,.938,0), NumberSequenceKeypoint.new(.984,1.13,0), NumberSequenceKeypoint.new(1,1.62,0), } local Size = NumberSequence.new(sizePoints) local Transparency = NumberSequence.new(transPoints) rayModel = Instance.new("Model") efxBlock = Instance.new("Part") efxBlock.BrickColor = BrickColor.new("Cyan") efxBlock.Material = "Neon" efxBlock.FormFactor = "Custom" efxBlock.Transparency = .3 efxBlock.Size = Vector3.new(.3,.3,.3) efxBlock.Parent = game.Workspace local mesh = Instance.new("SpecialMesh",efxBlock) mesh.MeshType = Enum.MeshType.Sphere mesh.Scale = Vector3.new(1,1,1) light = Instance.new("PointLight") light.Range = 10 light.Color = Color3.new(0,200/255,1) light.Shadows = false local particles = Instance.new("ParticleEmitter",efxBlock) particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255)) particles.LightEmission = .95 particles.LightEmission = .95 particles.Size = Size particles.Name = "Ex" particles.Transparency = Transparency particles.LockedToPart = true particles.VelocityInheritance = .5 particles.LockedToPart = true particles.Rate = 70 particles.Texture = "rbxassetid://56561915" particles.Lifetime = NumberRange.new(3,3) particles.RotSpeed = NumberRange.new(200,200) particles.Speed = NumberRange.new(7,7)

0
Use a code block, please. Also, use Color3.fromRGB hiimgoodpack 2009 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

Once a particle has been emitted, you cannot change its acceleration. You could instead use a Beam and animate the CFrames of its attachments, though.

0
Thanks but i want to make a fox tail swaying with particle's lunarshade9999 0 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

i solved it

Answer this question