Okay so what I'm trying to do here is that when a player clicks a text button on the screen, tools are given to the player. When I click play in the studio, it works just fine, the tools are given to the player. However, when I run it as a normal place and press play, none of the Text Buttons (except for a sprint and walk button I made) do anything. Could someone tell me what's wrong with this? Script for the text button:
function giveTools()
local tools1 = game.ServerStorage.SnowGolemMagic.SnowBall:clone()
local tools2 = game.ServerStorage.SnowGolemMagic.SnowShell:clone()
local tools3 = game.ServerStorage.SnowGolemMagic.SnowStorm:clone()
local tools4 = game.ServerStorage.SnowGolemMagic.SnowFloor:clone()
local tools5 = game.ServerStorage.SnowGolemMagic.GolemForm:clone()
tools1.Parent = game.Players.LocalPlayer.Backpack
tools2.Parent = game.Players.LocalPlayer.Backpack
tools3.Parent = game.Players.LocalPlayer.Backpack
tools4.Parent = game.Players.LocalPlayer.Backpack
tools5.Parent = game.Players.LocalPlayer.Backpack
script.Disabled = true --So the button can't be pressed twice
end
script.Parent.MouseButton1Click:connect(giveTools) --Run the function
Explorer: http://i.imgur.com/MQ4Wlsd.png PS. I only recently learned how to use tables so that's why I didn't use the get children function and just did it all manually

1 comment
Make sure that the script is in a local script. That's the only issue that I see