✓ Accepted answer
Alright, I got it working, basically you have to do script.Parent.Gravity, instead of workspace.gravity, also you missed some ends. Make sure this is a normal script inside of Workspace. You got it all right, except some minor errors, I tested this and it changes the gravity to 10 when you die.
Here is the code:
game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
script.Parent.Gravity = 10
end)
end)
end)
Hopefully this worked/helped!
2 comments
First of all, doing this from the server is basically useless... Second... Do it from client duh.. third.. workspace.gravity is meant to be workspace.Gravity.... fourth, you are missing ends, fifth, you gotta elaborate on your question...
like dur you you should duh elaborate on yer dur list of uhh answers duh