--[[ moved to StarterPlayerScripts to fix rockets not exploding if it hits a surface after you respawn -- edit: it didnt work
workspace.ChildAdded:connect(function(Obj)
	if game:GetService("CollectionService"):HasTag(Obj,Obj.Name) and game:GetService("CollectionService"):HasTag(Obj,Player.Name) then
		local x
		x=Obj.Touched:connect(function(Part) -- detect for touches only on the local player's client
			if not Tool then game:GetService("Debris"):AddItem(Obj,0) return end
			local RDE=Tool:FindFirstChild("RocketDestroyEvent")
			if not RDE then game:GetService("Debris"):AddItem(Obj,0) return end
			RDE:FireServer(Obj,Obj.Position) -- Explosion happens on the server
			Tool.YieldBeyondTouch:Fire() -- Delete the rocket just after disconnecting the function (wait = 4 lines down)
			x:Disconnect() -- No need for debounce if you got this!
		end)
		Tool.YieldBeyondTouch.Event:wait()
		game:GetService("Debris"):AddItem(Obj,(1/30))
	end
end)
]]