Try this
--scripted by Madified
--put this in a script inside of the brick
local brick = script.Parent
local animid = the id of the custom walking animation
local function ontouched(part)
print("scripted by Madified")
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if player then
local walkanim = player.Character:FindFirstChi;ld("WalkAnim", true)
if walkanim then
print("Make sure to thank Madified")
walkanim.AnimationId = animid
end
end
end
print("Madified scripted this")
brick.Touched:connect(ontouched)
|