so on my previous post i asked about how to make a shop gui. i got that working and i have more problems with the power ups now. how can i change the players speed using a remote function? this is the script i had for the gravity which i put in the serverscriptservice
game.ReplicatedStorage.PowerUps.Gravity.OnServerEvent:Connect(function(player)
if player.leaderstats.Cash.Value >= 10 then
player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - 10
game.Workspace.Gravity = 90
end
end)
is there any way to make a speed script by only modifying this or would i have to move the script as well?

2 comments
how can i make a speed script with remote functions?
my output just says that character is not a valid member of player