:Fire() not allowing table

Hello
So I have made this bindable event that adds a table to the players inventory
I am trying to fire this function but everytime I try to fire it returns false instead of the table

game.ServerStorage.Events.Shop:Fire(game.Players.ethansaul77, "Weapons",  Arts == {MaxCount = 1, Serial = nil,}   ,true)

I have tried using 1 equal sign but that would give me an error.

Maybe try this?

game.ServerStorage.Events.Shop:Fire(game.Players.ethansaul77, "Weapons", {MaxCount = 1, Serial = nil},true)

I did but I have to identify the table as well
I put this inside the script and it worked but it doesnt work with :Fire()

		Arts =  {
			Count = 1,
			MaxCount = 1,
			Serial = nil,
		},
		

You can identify the table with the parameter set to it in the bindableEvent’s Event I believe

You misunderstand how BindableEvents work: it doesn’t pass your variable with the variable name intact, it passes a copy of the data held by that variable. Where you listen for the BindableEvent.Event is where you would need to put Arts:

local Plr, Str, Arts, Bool = game.ServerStorage.Events.Shop.Event:wait()
-- or:
game.ServerStorage.Events.Shop.Event:Connect(function(Plr, Str, Arts, Bool)
    -- etc.
end)
1 Like