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

I need help with the Jumping Event [?]

Asked by 9 years ago

I'm making a rocket boots script, no errors, but it doesn't work

function Firefly()
script.Parent.Fire.Transparency = 0
wait(1)
script.Parent.Fire.Transparency = 1
end


script.Parent.Parent.Humanoid.Jumping:connect(Firefly)

help please?

1 answer

Log in to vote
0
Answered by 9 years ago

Since you got no errors, that means the function might not be firing. To test this, add a "print("Player Jumping!") into the code block and check output. If it doesn't read "Player Jumping!", then the code isn't running. If that is so, then try this.

script.Parent.Parent.Humanoid.Changed:connect(function(Change)
    if Change == 'Jump' then
        script.Parent.Fire.Transparency = 0
        wait(1)
        script.Parent.Fire.Transparency = 1
    end
end)

Hope that helps!

Ad

Answer this question