I’m making a system to dispense blood particles when a player lands too hard, but the velocity in studio compared to in game is wildly different.
code:
if bodypart.Velocity.Magnitude > 50 then
local direction = (bodypart.Position - bodypart.Position + Vector3.new(0, 1, 0)).Unit
goremodule.LimbBloodSplatter(player, bodypart, direction)
goremodule.Bleed(bodypart, 1)
if bodypart.Name == "Head" then
replicatedstorage.Events.Concussion:FireClient(player)
local clone = script.ScreamSound:Clone()
clone.Parent = bodypart
clone.PlaybackSpeed = math.random(7, 10)/10
clone:Play()
clone.Stopped:Connect(function()
clone:Destroy()
end)
end
end
log in studio:
log in game:
(both fell from the same height and number == velocity)