About 2,980,000 results
Open links in new tab
  1. Players.PlayerRemoving | Documentation - Roblox Creator Hub

    If you want to track when a player's character is added or removed from the game, such as when a player respawns or dies, you can use the Player.CharacterAdded and …

  2. How do I use Players.PlayerRemoving? - Scripting Support - Roblox

    Jun 27, 2021 · Instead use the functions :WaitForChild() or :FindFirstChild() PlayerRemoving works on the client but the above responses are correct in that you should be performing this …

  3. [SOLVED!] PlayerRemoving function doesn't always work - Roblox

    Mar 12, 2022 · I’ve been trying to make something but seems like if the players stays too much in the game the functions doesn’t work. Note: There’s a script adds value to the IntValue. …

  4. How to Use PlayerAdded & PlayerRemoving in Roblox Studio!

    🛠️ In this Roblox Studio scripting tutorial, I’ll teach you how to use the PlayerAdded and PlayerRemoving events like a pro! These are must-know for any scr...

  5. creator-docs/content/en-us/players/index.md at main · Roblox ... - GitHub

    Client and server-side scripts can both connect to the Class.Players.PlayerAdded and Class.Players.PlayerRemoved events to perform actions in response to the lifecycle of a …

  6. roblox - Lua - How can I make player money save? - Stack Overflow

    Aug 13, 2023 · money.Value = moneyStore:GetAsync(player.UserId) or 0 -- Binds the PlayerRemoving event to saving the leaderstat into the datastore …

  7. How to use player.Character in PlayerRemoving? - Roblox

    Sep 3, 2020 · player.CharacterRemoving:Connect(function(character) . characters[player] = character. end) if character then -- do whatever you want to their character -- note: their …

  8. how to connect a function to PlayerRemoving? : r/robloxgamedev - Reddit

    Feb 7, 2021 · i have a module script with a function called RemoveOwnership, and i want it to reset a base when a player leaves the game. i have a regular script called OwnerControl that …

  9. Roblox Connect to the PlayerRemoving Event in Roblox. Scripty Roblox

    Jul 31, 2023 · In order to access the PlayerRemoving Event, you need to use the dot operator (.) after the Players class to access the Event class. This is just like how you would access a …

  10. Roblox: BindToClose works, PlayerRemoving does not

    Nov 16, 2020 · For some reason, the SetAsync() in PlayerRemoving wasn't completing when the player leaves in game or in studio. The weird thing is that when I added BindToClose, the save …

  11. Some results have been removed
Refresh