So i want to create a rebirth menu where you could choose if you wanna rebirth 1 time, 5 times or more than that, just like clicking simulator and tapping simulator, but how do i do that with remote functions, do i have to create a remote function for each rebirth button or?
To do that you would need to have a function under ReplicatedStorage, and a script in ServerScriptService that does this,
game.ReplicatedStorage.RemoteEventName.OnServerEvent:Connect(function(plr, rebirthAmmount) --Here we are taking 2 variables, the player rebirthing and the amount of rebirths we will do. plr.leadersats.Rebirths = plr.leadersats.Rebirths + rebirthAmmount --Just using leaderstats as a example (You can change the value of the rebirths anywhere.) end)
Here is how you would fire the server with a local script.
game.ReplicatedStorage.RemoteEventName.FireServer(RebirthAmmount)
We do not need to put the Player inside there as it automatically sends that. Hope this was helpful!