Hi! I’m having a bit of trouble with my script, when you click the button, the dance is meant to play, but it doesn’t. I used the roundify feature, in a plugin, but I tried without it and it still didn’t work. I’m really new to scripting, so I may have made a rookie error
Thank you
local humanoid = game.Players.LocalPlayer:FindFirstChild("Humanoid")
local dance = humanoid:LoadAnimation(script:FindFirstChild("Animation"))
script.Parent.MouseButton1Click:Connect(function()
dance:Play()
end)
local humanoid = game.Players.LocalPlayer:FindFirstChild(“Humanoid”) this is the error , You gotta index the Character First
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:FindFirstChild('Humanoid')
local dance = Humanoid:LoadAnimation(script:FindFirstChild("Animation"))
script.Parent.MouseButton1Click:Connect(function()
dance:Play()
end)