I’m making a game kind of like speed run and im trying to make it so when they touch the speed boost a running animation plays
It says this when i try to write script.Parent.Animaton:Play()
local speed = script.Parent
local function steppedOn(part)
local parent = part.Parent
if game.Players:GetPlayerFromCharacter(parent) then
parent.Humanoid.WalkSpeed = 60
script.Parent.Sound:Play()
end
end
speed.Touched:Connect(steppedOn)