I have a script meant to give me an item, and I can't get the remote event to work with FireClient. Here's what I have so far:
localscript:
script.GiveItem.OnClientEvent:Connect(function(item,amount) --item giving code didn't put because it's too long end)
normal script:
canGive = true script.Parent.Touched:Connect(function(hit) if canGive == true then canGive = false play = game.Players:GetPlayerFromCharacter(hit.Parent) play.PlayerGui.Inventory.InvScript.GiveItem:FireClient(play,"CopperShortsword",1) end end)
Notes: -play is not null, I already tested that -the problem isn't with the item giving code, tested that too
You have to put a RemoteEvent in Replicated storage and name it whatever
(Name of RemoteEvent).OnClientEvent:Connect(function(item,amount)