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
6 years ago
Edited 6 years ago

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

01local player = game.Players.LocalPlayer.Character
02local animation = game.ReplicatedStorage.Kamehame
03local track = player.Humanoid:LoadAnimation(animation)
04 
05function onClick(mouse)
06    track:Play{}
07 
08 
09 
10end
11 
12script.Parent.MouseButton1Down:connect(onClick)

This is a LocalScript. Any answers?

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

Answer this question