Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Unable to cast Array to float? (Solved)

Asked by
Kurcha 33
5 years ago
Edited 5 years ago

Making an animation for a button, and I come across this error. Here's the code:

local player = game.Players.LocalPlayer.Character
local animation = game.ReplicatedStorage.Kamehame
local track = player.Humanoid:LoadAnimation(animation)

function onClick(mouse)
    track:Play{}



end

script.Parent.MouseButton1Down:connect(onClick)


This is a LocalScript. Any answers?

0
Try changing those brackets to parentheses. Pojoto 329 — 5y
0
Worked! Thank hyou! Kurcha 33 — 5y

Answer this question