Be careful try not to fly into space
Game : https://www.roblox.com/games/12790627984/Anti-gravity-character
Source : (SERVER SCRIPT)
local Players = game:GetService("Players")
local StarterPlayer = game:GetService("StarterPlayer")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if StarterPlayer.LoadCharacterAppearance then
player.CharacterAppearanceLoaded:Wait()
end
task.wait()
local vectorForce = Instance.new("VectorForce")
vectorForce.Force = Vector3.yAxis * (workspace.Gravity * character.PrimaryPart.AssemblyMass)
vectorForce.RelativeTo = Enum.ActuatorRelativeTo.World
vectorForce.Attachment0 = character.PrimaryPart:FindFirstChildWhichIsA("Attachment")
vectorForce.Parent = character
end)
end)