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

How to help this script access ServerStorage?

Asked by
StoIid 364 Moderation Voter
8 years ago

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

Answer this question