This script is a local script and I know that they can't access "Server Sided" things like serverstorage, which is where my magics are stored. I want to keep it inside of ServerStorage rather than something like lighting to make it harder to get to from exploiters.
Can anyone help me with a method of allowing this script to do what it's trying to do?
wait(2) local player = game.Players.LocalPlayer local data = player.Data local legend = player.leaderstats.Legend if player.Data.Magic.Value == 1 then game.ServerStorage.FireBall:Clone().Parent = player.Backpack print('gave magic') end