I put a Tool(Cup (Empty)) in the StarterGui because im trying to clone it into your inventory after you touch a brick, ive only got,
brick = script.Parent brick.Touched:connect(function(part) game.StarterGui.Cup (Empty):Clone().Parent = StarterPack end)
But Its not working
It's just because of the name. You can't list it like that if there's a space or symbol in the name. You have to either rename it, or do something like this
brick = script.Parent --the part that gives the item brick.Touched:connect(function(part) --When the part is touched, if part.Parent.Humanoid then if part.Parent.Humanoid.Health > 0 then --if the part is part of a live character model Player = game.Players:GetPlayerFromCharacter(part.Parent) --gets the player game.ReplicatedStorage["Cup (Empty"]:clone().Parent = Player.Backpack --clones the tool from replicated storage and puts it in the backpack. end end end)
Also be aware that if you put it in the StarterPack, the player won't see the item until they restart their character.