Why is my RemoteEvent erroring? Cannot pass value onto object?
I'm trying to make a script that will make a Gui pop up on your screen when you pick up an item, and when I fire the event to make the gui script work, it tells me "value cannot be passed to object" Here's my script:
2 | local tool = game.ServerStorage:FindFirstChild(toolname) |
4 | script.Parent.MouseClick:Connect( function (click) |
5 | tool.Parent = click.Backpack |
6 | click.PlayerGui.EventText.PickUpEvent:FireClient(toolname, 0.02 ) |
The item goes into my backpack, but the event errors.