How to change a players gravity when remote is fired?

Hey!

I am trying to make a players gravity or jump power change in a remote event. I a trying to make a perk shop in my game, and I want to change the player’s gravity so the player can survive more easier. Is there a way if I can make that happen smoothly?

Thank you very much!

Sincerely,

papahetfan

You could probably set workspace.Gravity on the client when the remote is fired.

2 Likes

Local script

Remote.OnClientEvent:Connect(function()
game.Workspace.Gravity = 150 --gravity here
end

idk what other players would see but path Remote in the script.

Is there a way I can do it in a server remote instead of a client?

Nope, not without changing gravity. You can change a player’s jumppower and fall speed by using server but that’s inconvenient lol. But yes, you can change it by using server and the change will affect every player’s gravity.

With client, you buy something from serverscript, serverscript fires to client, localscript receives and changed gravity for that player

So this script only affects the player?

yeah, if the script is a local script (The light blue script with a person in front)