How can i change my player Density with a script?

  • What are you attempting to achieve?

i need a script that enable the “CustomPhysicalProperties” of the “UpperTorso” of my “Character
and change is “Density” to 100

  • What is the issue?

Nothing work

  • What solutions have you tried so far?

qsdqsdqs

AHHHHHHH NOOOOOOOOOOOOOOOOO! You can’t change properties via variables because your over writing the variable not the property. Try this on mass = true:

UpperTorso.CustomPhysicalProperties = true

This is really easy to understand whats wrong for most luau programmers.

It does not workkkkkkkkkkkkkkkkkkkkk

Try to setting a random property to a high number and test it.

Do the density on the HumanoidRootPart, not the UpperTorso.

I didn’t understand what you mean

I don’t see why, it won’t change anything.

Try doing what @lrd14 said.

dgfsaaadffddfdffddfssssssssssssssssssssss

Because the HumanoidRootPart is the actual physics object of the Roblox character, that’s why its the “Root Part”.

yes but I want it to be “UpperTorso”
I think I was not clear.
I’m completely lost, I thought it was simple


I want CustomPhysicalProperties to be activated with a script, bottom left.
How I do?

I tried :

  • local c = game.Players.LocalPlayer.Character

  • c.UpperTorso.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0)

  • local c = game.Players.LocalPlayer.Character

  • c.UpperTorso.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0)

  • c.UpperTorso.CanCollide = false

  • local c = game.Players.LocalPlayer.Character

  • c.UpperTorso.CustomPhysicalProperties = PhysicalProperties.new(100, 0, 0)

  • c.UpperTorso.Anchored = true

  • c.UpperTorso.CanCollide = true

  • c.UpperTorso.Massless = false

  • c.UpperTorso.Locked = false

  • c.UpperTorso.Velocity = Vector3.new(0, 0, 0)

  • c.UpperTorso.RotVelocity = Vector3.new(0, 0, 0)

  • c.UpperTorso.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

  • c.UpperTorso.RotVelocity = Vector3.new(0, 0, 0)

  • c.UpperTorso.RotVelocity = Vector3.new(0, 0, 0)

  • local c = game.Players.LocalPlayer.Character

  • c.UpperTorso.CustomPhysicalProperties = PhysicalProperties.new(1, 0, 0)

  • c.UpperTorso.Anchored = true

  • c.UpperTorso.CanCollide = true

  • c.UpperTorso.Massless = false

  • c.UpperTorso.Locked = false

  • c.UpperTorso.Velocity = Vector3.new(0, 0, 0)

  • c.UpperTorso.RotVelocity = Vector3.new(0, 0, 0)

  • c.UpperTorso.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

  • c.UpperTorso.RotVelocity =

Youre wrong, the custom physical properties are meant to be assigned to Enum.PhysicalProperties