Hey guys I was scripting and I bumped with the following problem...
--//If Player Left do..
local player = game.Players.LocalPlayer local playermoney = player.leaderstats.Money local owner = script.Parent.Owner local playername = player.Name local timeleft = script.Parent.TimeLeft local isbeingused = script.Parent.IsBeingUsed
game.Players.ChildRemoved:connect(function(player)
if player.Name == owner.Value then
owner.Value = ""
timeleft.Value = 0
isbeingused.Value = false
------------//-------------- end
This is basicly a script that changes Values if a CERTAIN player left the game.. Similar to a tycoon if the player left then the tycoon would reset but. This is not working. Maybe it's because the server can't read the name of the player that left because he DID left? Help ples ;-;

2 comments
use game.Players.PlayerRemoving:Connect(function(player) instead of ChildRemoved
I'll try. Thanks!