Part Doesn't stop moving after applyimulse

alright heres the server script

local remote =game.ReplicatedStorage.Kickrem
local thread
remote.OnServerEvent:Connect(function(plr, ball)
	ball:SetNetworkOwner(plr)
	ball.AssemblyLinearVelocity = Vector3.new(0,0,0)
	
	ball:SetAttribute("Owner", plr.Name)
	ball:SetAttribute("JustHit", true)
	if thread then
		task.cancel(thread)
	end
	thread = task.spawn(function()
		task.wait(1)
		ball:SetAttribute("JustHit", false)
	end)
end)
3 Likes