local part = workspace:WaitForChild("Part")
part.Touched:Connect(function(hit)
if (hit.Parent:FindFirstChildWhichIsA("Humanoid")) and (hit.Parent:FindFirstChild("Humanoid") == game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")) then
if workspace.Gravity ~= 100 then
workspace.Gravity = 100-- your gravity here
else
workspace.Gravity = 192
end
end
end)