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
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