Cannot activate VektorForce

I am trying to apply a VectorForce to the HumRootPart of my player in order to make him fly, but whenever I try to activate the VectorForce it fires an Error “Can’t set value”

When I tried to activate it manually, the box was greyed out
Unbenannt

if plr.Character.HumanoidRootPart.VectorForce then
			print("Player has already activated jetpack")
		else
			local jetpack = SS.Abilities.Jetpack.SpacePack:Clone()
			local attachment = Instance.new("Attachment")
			local force = Instance.new("VectorForce")
			jetpack.Parent = plr.Character
			attachment.Parent = plr.Character.HumanoidRootPart
			force.Parent = plr.Character.HumanoidRootPart
			
			force.RelativeTo = "World"
			force.ApplyAtCenterOfMass = true
			force.Attachment0 = attachment
			force.Force = Vector3.new(0,0,1000)
			force.Active = true
		end
1 Like

It should already be active if you set it up correctly
The Active property is readonly and only indicates if roblox is internally processing it or not

2 Likes