I’m trying to make it when the player clicks a text button there walk animation changes.
here is my script.
local parent = script.Parent
parent.MouseButton1Click:Connect(function(plr)
if plr.Parent:findFirstChild(“Humanoid”) ~= nil then
local h plr.Parent:findFirstChild(“Humanoid”)
plr.Parent.Animate.walk.WalkAnim.AnimationId = “http://www.roblox.com/asset/?id=”
end
end)