-- 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?
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.
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.