Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i detect if a player has disconnected?

Asked by 6 years ago

Roblox blocks PlayerDisconnecting for some reason which opens up an exploit in games which have a donate system. So is there a method which would basically be just like PlayerDisconnecting.

The current identity (2) cannot PlayerDisconnecting (lacking permission 3)

Is i load a module from my models would the security of the module be increased to allow this since you can use the bar to detect PlayerDisconnecting?

2 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Try using the Player removing event. http://wiki.roblox.com/index.php?title=API:Class/Players/PlayerRemoving game.Players.PlayerRemoving:Connect(function())

end)

0
I tried this it does not fire upon disconnecting they are 2 seperate events Lord_CthuIhu 2 — 6y
0
What the heck are you talking about? They're the exact same thing! The only difference is their structure. DeceptiveCaster 3761 — 6y
Ad
Log in to vote
0
Answered by
yoshi8080 445 Moderation Voter
6 years ago

There's something I stumbled upon called Players.PlayerDisconnecting link to it is right here.

0
It can only be used in the command bar not in scripts Timmerman73 85 — 6y

Answer this question