For the past few days, I've been trying to make an animation play when I touch a jump boost brick. I've tried to do it with different scripts but I realized I can have the script that plays the animation when I press space disabled, then a script in the brick enables it when I touch it.
This is the script I've come up with:
local lolxbork = script.Parent
local function steppedOn(part)
local parent = part.Parent
if game.Players:GetPlayerFromCharacter(parent) then
game.StarterPack.animation.Disabled=false
end
end
lolxbork.Touched:connect(steppedOn)
When I collide with the brick, nothing happens, and I only get the jump boost from the brick right in front of it.
Then I remembered this site exists, so I'm asking what the error is.
Thanks!
