I have this function that is supposed to set a players Magic value to a string, but it says player is a Number value.
function gameStart(player)
if player then
player.Stats.Magic = script.Parent.Parent.Parent.MagicFrame.Spinner.TextButton.Text
script.Parent.Parent.Parent.Parent:Destroy()
end
end
script.Parent.MouseButton1Down:connect(gameStart)
attempt to index local 'player' (a number value)
Please help!

5 comments
Hey connor, I was wondering if I could come and give your game a try?
Promise you wont steal the idea?
I promise. I'm already working on a game of my own. I can show it to you after if you want.
ok, ill open it up soon
https://www.roblox.com/games/462542902/Fairy-Tail-Roblox-BETA -place