Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Anti-Afk";
- Text = "heheheha no more afk";
- Icon = ""})
- Duration = 16;
- local LP = game:GetService("Players").LocalPlayer
- local args = {
- [1] = "CycleSetting",
- [2] = "AFK"
- }
- while true do
- wait(1)
- if LP.PlayerGui.MainUI["AFK_Screen"].Visible==true then
- game:GetService("ReplicatedStorage").Comm.RemoteEvent:FireServer(unpack(args))
- elseif LP.PlayerGui.MainUI["AFK_Screen"].Visible==false then
- wait(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment