i'm not sure how but this is what I tried.
script.Parent.MouseButton1Click:connect(function() if game.Workspace.Gravity == 196.2 then game.Workspace.Gravity = 60 else game.Workspace.Gravity = 196.2 end end)
This is a filtering issue. Set it on the server through a remote event:
--Local script local remote = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent") script.Parent.MouseButton1Click:Connect(function() remote:FireServer() end) --Server script local remote = Instance.new("RemoteEvent") remote.Parent = game:GetService("ReplicatedStorage") remote.OnServerEvent:Connect(function(plr) if workspace.Gravity == 196.2 then workspace.Gravity = 60 elseif workspace.Gravity == 60 then workspace.Gravity = 196.2 end end)
Resources:
Accept and upvote if this helped!