Im trying to use a VectorForce to move the character around.
There character is a ball and I’m trying to move it, I was told to use VectorForce.
Anyhow it should make the character move but its not! The character isnt anchored or anything, I dont understand why though.
Well heres some code I use to modify it.
local char = script.Parent
wait(1)
local force = char:FindFirstChild('Torso'):FindFirstChild('Force')
-- force
force.Force = Vector3.new(math.huge,math.huge,math.huge)
force.ApplyAtCenterOfMass = true
Is this a server script or local script? If local as Im assuming its not working at all, The attachment and Force appear but nothing happens. The character is still just sitting there
The VectorForce constraint in Roblox applies a constant force to an assembly.
The force’s direction and strength are determined by a Vector3 and can be relative to an attachment on the part, another attachment, or the world coordinate system.
If only initial velocity is needed, set the AssemblyLinearVelocity property directly on the assembly.
To maintain a more steady velocity over time, use a LinearVelocity constraint instead of VectorForce.
Very high speeds may result when using VectorForce without other forces involved.
When configuring the constraint, understanding Roblox Units and how they compare to metric units can be helpful.
By default, the force is applied to the assembly at the location of Attachment0, which may introduce torque if the center of mass is not aligned with the force’s direction.
To focus the force at the center of mass, the ApplyAtCenterOfMass option can be toggled on.
By default, the force is applied relative to Attachment0, meaning it changes direction as the parent assembly rotates.
Setting RelativeTo to World applies the force in world coordinates, independent of parent or attachment orientations.
Setting RelativeTo to Attachment1 applies the force relative to Attachment1, and it changes direction with the attachment’s rotation.