I am trying to make a store GUI which gives the player a tool. The problem is, only your player can see it, to other players it looks like just an outstretched arm with nothing in it. It is in a local script, because putting it in a normal script removes the wrong amount of money.
code:
local item = game.ReplicatedStorage.tools.TurkeyLeg
local mainwindow = script.Parent.Parent
local money = script.Parent.Parent.Parent.Parent.Parent.Money
script.Parent.MouseButton1Click:Connect(function()
if money.Value >= 15 then
local clone = item:Clone()
clone.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack
money.Value = money.Value - 15
script.order:Play()
end
end)

2 comments
should i put the remote event inside the gui?
Wherever you want, you can fire it from any localscript