Velocity speeds up over time help

Hello I’m making a hit indicator and the velocity keeps speeding up and I don’t know why could someone help here is code below:

-- MODULE

Fighting.Hit_Effects = function(Npc : Model, ...)
	local _Data = {
		...
	}

	local Hit_Indicator = ReplicatedStorage.Assets._Damage.Damage:Clone()
	Hit_Indicator.Parent = workspace.__GAME._EFFECTS
	
	Hit_Indicator.Damage_Indicator.Damage.Text = "-" .. Suffix.Handle(tonumber(_Data[1]))
	Hit_Indicator.Damage_Indicator.Size = UDim2.new(0, 0, 0, 0)
	
	Hit_Indicator.Name = game:GetService("HttpService"):GenerateGUID(false)
	
	Debris:AddItem(Hit_Indicator, 1)

	Hit_Indicator.Position = Npc.HumanoidRootPart.Position
	
	Hit_Indicator.AssemblyLinearVelocity = (Vector3.new(table.unpack(_Data[2])))
	
	TweenService:Create(Hit_Indicator.Damage_Indicator, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 0, false), {Size = UDim2.new(2, 0, 2, 0)}):Play()
	
	task.delay(0.7, function()
		TweenService:Create(Hit_Indicator.Damage_Indicator.Damage, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
		TweenService:Create(Hit_Indicator.Damage_Indicator.Damage.UIStroke, TweenInfo.new(0.5), {Transparency = 1}):Play()
	end)
end

-- SERVER

coroutine.wrap(test.Hit_Effects)(workspace.TESTGING, 
828913 -- Damage,
{ -- Velocity
7, 30, 10
})
--

1 Like

It seems like its lagging? like stuttering. Are you destroying/cleaning up all the Hit_Indicator clones? Only because I’m not seeing it in this script. I also think that changing the assemblylinearvelocity doesnt prevent an object from being affected by gravity. I might be wrong on that. but if that is the case, maybe try anchoring the part?

I think that changing a object to massless should help

I used Debris:AddItem which deletes it

didn’t seem to work still speeds up for some reason

Hello. Please look at this post. Just negate the effect of gravity and add your velocity as per requirement. (Or better, use TweenService).