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

How do i make it so when my humanoid Moves a particle emitter size changes?

Asked by 3 years ago
local Humanoid = script.Parent.Parent:WaitForChild("Humanoid")
local emiiter = script.Parent:WaitForChild("ParticleEmitter")
Humanoid.Running:Connect(function(speed)
    if speed > 0 then
        emiiter.Size = 2
    elseif speed < 1 then
        emiiter.Size = 0.8

    end

end)

this is the script and when i run it it says invalid argument but i dont excatly know how to fix

0
Where is this script located? User#32819 0 — 3y
0
its a serverscript in workspace inside a part soreno2468 31 — 3y
0
can you tell us what the error says specifically? zadobyte 692 — 3y
0
Workspace.Model.LowerJaw.Script:7: invalid argument #3 (NumberSequence expected, got number) soreno2468 31 — 3y

1 answer

Log in to vote
0
Answered by
zadobyte 692 Moderation Voter
3 years ago

ParticleEmitters require a NumberSequence for certain properties like Size.

Ad

Answer this question