You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I need to solve the problem with tools
-
What is the issue? Include screenshots / videos if possible!
The tools doesn’t show
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes I looked but didn’t work
I made shop gui and put items on Lighting ( created Folder )

Please help.
The tool is not being replicated to the server. I would recommend putting the tools inside ReplicatedStorage instead of Lighting.
2 Likes
Doesn’t work. I will send you script from GUI button
player = game.Players.LocalPlayer
backpack = player.Backpack
script.Parent.MouseButton1Click:Connect(function()
local sword = game.ReplicatedStorage.Tools.Moneybag:Clone()
if player.leaderstats.Coins.Value >= 5 then
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - 5
sword.Parent = backpack
end
end)
1 Like
Maybe I should make script, not local? Or what.
Yes, the script that gives the player the tool cannot be a local script. The server has to be aware of the move so it can replicate it to the other clients.
2 Likes