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
})
--