Remote event doesn't pass info

-- module script excerpt

function TNT.Spawn(
	Pos: Vector3, 
	Range: number, 
	Damages: NumberArray, 
	Force: number, 
	Instant: boolean,
	Color: Color3
)
	if not Pos then return warn("no position passed") end
	if Range < 5 then Range = 5 end
	if not Force then Force = 30 end
	if not Damages then Damages = {1, Force * 2} end

	-- Fire to all clients for VFX
	TNTClient:FireAllClients(Pos, Range, Instant, Color)
	warn(Color, Instant) -- color, bool

	if Instant == false then
		task.wait(1.1)
	end
	...
-- on client module script

function TNT.OnClient(Pos: Vector3, Range: number, Instant: boolean, Color: Color3, a, b)
	local Explosion = ReplicatedStorage.Particles.Explosion:Clone()
	Explosion.Parent = workspace

	Explosion:ScaleTo(Range/5)
	Explosion.PrimaryPart.Position = Pos
	Explosion.PrimaryPart.BrickColor = Color or BrickColor.new("Bright orange") 
	warn(Pos, Range, Instant, Color, a, b) -- vector, number, nil, nil, nil, nil

Other information passes? It seems no matter what only the first two params send. why? how can I go around this or fix it?

What does the client connection look like?

this

I mean, what does the code for you connecting to the RemoteEvent on the client look like? I just wanted to cover that base.

You aren’t passing a and b on the server side.

I made an and b too see if the color and instant value were hiding else where. They weren’t.

It works fine when I make a minimal recreation. Again, I’d like to see where you connect it to the RemoteEvent on the client. That’s the only place I can think there would be an error here.

test-forum-4196625.rbxl (60.7 KB)
image

Scripts located in ReplicatedStorage, ServerScriptStorage, and StarterPlayer.StarterPlayerScripts. I don’t know what else to tell you, it just works.

hey so. it turns out im slow. I added tons of changes to my module and basically forgot about the part that I havent been updating the params on the local.

sorry everyone