For example an explosion on a certain terrain. If I shoot a projectile and it hits a green brick the explosion pieces will be green. I'm trying to get the explosion pieces to be the same color of the brick they touched. Here's what I got:
if hit.Anchored == true and hit.CanCollide == true then for i=1,5 do -- # of explosion pecies local eff = game.ServerStorage.effect:Clone() --Creating eff.Size = Vector3.new(1,1,1) --Sizing the effect eff.BrickColor = BrickColor.new(hit.BrickColor) --* game.Debris:AddItem(eff,1) --Destroying the effect end end
I deleted the junk I don't need help with like bodyvelocity
and stuff.