Loosing my mind while working with Massless

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to keep the same velocity at all times no matter the mass of the character.No matter what I set Massless to it doesnt seem to change anything about the incoming velocity.
    (both have massless enabled in the following clips)

Small Fish:

External Media

Fish goes normal lenght

Big Fish:

External Media

Fish doesnt move at all while being bigger

This is the script im using for the dash (handled on the server)

Abilitys.NormalDash = function(plr,HumRoot, Stamina, humanoid)
	local currentNetworkOwner = HumRoot:GetNetworkOwner()
	if Stamina.Value >= 50 then
		HumRoot:SetNetworkOwner(nil)
		humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
		HumRoot:SetNetworkOwner(currentNetworkOwner)
		HumRoot.Velocity = HumRoot.CFrame.LookVector * 200
		local DashSound = Instance.new("Sound",workspace)
		DashSound.SoundId = "rbxassetid://6128977275"
		DashSound.Volume = 1.5
		DashSound:Play()
		Stamina.Value -= 50
	elseif Stamina.Value <= 50 then
		currentNetworkOwner = HumRoot:GetNetworkOwner()
		
		HumRoot:SetNetworkOwner(nil)
		humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
		HumRoot:SetNetworkOwner(currentNetworkOwner)
	end
end

Massless makes a basepart have no mass relative to its assembly. (Because something actually haven’t no mass doesn’t really make sense in the context of a game engine.)

For example, if you welded a fish to the character but didn’t want that fish to change how the entire character moves, you could set the fish to massless to do that. If you disconnected the fish from the character, massless would have no effect.

BasePart.Velocity is depreciated, I would try this code instead:

HumRoot:ApplyImpulse(HumRoot.CFrame.LookVector * 200 * HumRoot.AssemblyMass)

If I were able to see the videos I could probably be a better help to you.

I have found a solution now using custom physical property still thanks for answering tho

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.