My game is filtered Enabled.
I have a store ingame that is purchased with tools.
How do I get this Tool to be visible with everyone in game
Everytime I try, its not working
The code has a intvalue named Price and a String Value for the name
The code works, you can click and actually buy the tool, but no1 else sees it but yourself.
Thanks for answering in advance.
local db= true
local button=script.Parent
local price=button:WaitForChild("Price")
local item=button:WaitForChild("ItemName")
local rs=game:GetService("ReplicatedStorage")
script.Parent.ClickDetector.MouseClick:connect (function(player)
if player.leaderstats.Coins.Value>=price.Value then
player.leaderstats.Coins.Value=player.leaderstats.Coins.Value-price.Value
db = false
script.Parent.BrickColor = BrickColor.new("Bright red")
local item=rs:WaitForChild(item.Value)
item:Clone().Parent=player.StarterGear
item:Clone().Parent=player.Backpack
wait (3)
script.Parent.BrickColor = BrickColor.new("Bright green")
db = true
end
end)

2 comments
explain your code.
Oh, sorry, forgot