I'm making a space game where players start from the ground where there is gravity, but when they reach a certain altitude, how would I make it so that the gravity is turned off for that player? Other items do not have to be in low gravity as it's only the ship that is moving which is moving at a constant speed, just the player to experience 0 gravity, thank you in advanced!
Btw, I'm not giving you a script, just an idea on how to do it. This is scripting helpers, not script givers
This can simply be done with workspace's gravity property. The default gravity is 196.2, and in a server script, you'd want to constantly check the character of the player's head for the Y CFrame or Position, and then once that level reached your goal, then fire a remote event for the client, to activate no gravity
Here's a couple of scripts:
--Server remote:FireClient(player)
--Client remote.OnClientEvent:Connect(function() workspace.Gravity = 0 end)
I hope this helped