I am trying to make an Anti-Gravity room similar to that in Innovation Labs by @madattak. I tried using Vector Forces which has gotten the player to be tossed around the room like they should be, but the effect is really extreme with the player being flung out of the map after just 30 seconds in the room.
Here is my code:
script.Parent.Touched:Connect(function(part) local char = part.Parent if char.ClassName == "Accessory" then char = part.Parent.Parent end if char:WaitForChild("HumanoidRootPart") then local attachment = Instance.new("Attachment") attachment.Name = "VectorAttachment" attachment.Axis = Vector3.new(1,0,0) attachment.SecondaryAxis = Vector3.new(0,1,0) attachment.WorldAxis = Vector3.new(1,0,0) attachment.WorldSecondaryAxis = Vector3.new(0,1,0) attachment.Parent = char.HumanoidRootPart local vectorForce = Instance.new("VectorForce") vectorForce.Archivable = true vectorForce.Enabled = true vectorForce.ApplyAtCenterOfMass = true vectorForce.Force = Vector3.new(0, workspace.Gravity / char.HumanoidRootPart:GetMass() , 0) vectorForce.RelativeTo = Enum.ActuatorRelativeTo.Attachment0 vectorForce.Parent = char vectorForce.Attachment0 = attachment char.Humanoid.Sit = true end end)
Is there any way to make the effect more like the gravity room in Innovation Labs, or at least less extreme?