ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
_G.Enabled = true;\r\n\r\n_G.CertainPlayer = false; --Set to false if you want it to kick you if anyone joins and true if you want to use playerlist\r\n\r\n_G.Kick = true; --If it kicks you or just gives a notification that someone joined\r\n\r\nplayerlist = {\"Name1\",\"Name2\",\"Name3\",\"Name4\"} -- Just add more if you want too\r\n--------------------------------------------------------------------------------------SCRIPT\r\nif(_G.Enabled == true) then\r\n\r\ngame:GetService(\"Players\").PlayerAdded:Connect(function(user)\r\nlocal Time = os.date(\"*t\")\r\n\r\nif(_G.CertainPlayer == false) then\r\n if (_G.Kick == true) then\r\n game.Players.LocalPlayer:Kick(\"A player joined: \"..user.Name..\" ,at: \"..Time.hour..\":\"..Time.min)\r\n end\r\n if(_G.Kick == false) then\r\nprint(user.name..\" Joined your game at \"..\" ,at: \"..Time.hour..\":\"..Time.min..\" and Wrote PlayersJoined.txt file in workspace/AutoDisconnect\")\r\ngame.StarterGui:SetCore(\"SendNotification\", {\r\nTitle = user.name..\" Joined!\";\r\nText = \"At \"..Time.hour..\":\"..Time.min..\" and wrote PlayersJoined.txt in workspace/AutoDisconnect folder\";\r\nDuration = 5;\r\n})\r\n\r\nmakefolder(\"AutoDisconnect\")\r\nwritefile(\"AutoDisconnect\\PlayerJoined.txt\",\r\nuser.name..\" joined at \"..Time.hour..\":\"..Time.min\r\n )\r\n\r\nend\r\nif(_G.Kick == true) then\r\n game.Players.LocalPlayer:Kick(\"A player joined: \"..user.Name..\" ,at: \"..Time.hour..\":\"..Time.min)\r\n end\r\nend\r\n\r\n\r\n\r\nif(_G.CertainPlayer == true) then\r\n \r\nfor i = 1, #playerlist do\r\n \r\nif(user.Name == playerlist[i]) then\r\n if(_G.Kick == true) then\r\n game.Players.LocalPlayer:Kick(\"A player from the playerlist joined: \"..playerlist[i]..\" ,at: \"..Time.hour..\":\"..Time.min)\r\n end\r\n \r\nif(_G.Kick == false) then\r\nprint(playerlist[i]..\" from playerlist Joined your game at \"..\" ,at: \"..Time.hour..\":\"..Time.min..\" and Wrote PlayersJoinedLIST.txt file in workspace/AutoDisconnect\")\r\ngame.StarterGui:SetCore(\"SendNotification\", {\r\nTitle = playerlist[i]..\" Joined!\";\r\nText = \"At \"..Time.hour..\":\"..Time.min..\" and wrote PlayersJoinedLIST.txt in workspace/AutoDisconnect folder\";\r\nDuration = 5;\r\n}) \r\nmakefolder(\"AutoDisconnect\")\r\nwritefile(\"AutoDisconnect\\PlayerJoinedLIST.txt\",\r\nplayerlist[i]..\" from playerlist joined at \"..Time.hour..\":\"..Time.min\r\n )\r\nend\r\nend\r\nend\r\nend\r\nend)\r\nend
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel