The parts blow up on my client and go back to their original position, and then the other client saw it blast away like it does in studio:
Intended function down below VVV (in studio works normally)
[
what happens in the actual game
The other player in the game sees the part blast away like in studio.
The rocket is the rocket launcer by Roblox in the toolbox, and I modified the code a bit. The btools are the fixed ones by CloneTrooper1019.
Rocket script (the part i edited):
if hitPart.Name ~= 'Handle' then
if hitPart.Locked == false then
hitPart.Anchored = false
local children = hitPart:GetChildren()
for i, child in ipairs(children) do
if child.Name == ("Weld") then
child:Destroy()
end
hitPart.Anchored = false
hitPart:BreakJoints()
local blastForce = Instance.new('BodyForce', hitPart) --NOTE: We will multiply by mass so bigger parts get blasted more
blastForce.Force = (hitPart.Position - blastCenter).unit * BLAST_FORCE * hitPart:GetMass()
DebrisService:AddItem(blastForce, 0.1)
end
end
end
end
end
end