Hello! So I'm making a "gravity touch pad". When the player touches it its supposed to change the gravity for them only. Keep in mind, this is a local script which I have never really worked with. Here's my script:
local button = script.Parent
button.Touched:Connect(function()
print("hi")
workspace.Gravity = 50
end)
"hi" is not printed and the gravity does not change (I have checked in both the server and the client's output. It does work with a normal script but the gravity changes for everyone. Does anyone know how I could fix it? I've also heard a bit about custom forces but I'm not sure.

1 comment
You are changing the game's gravity so thats why everyone is affected when used with a script. Instead add a BodyForce to the character.