
2.6k Views
16 Executions
Useless Universal
Universal Script 📌
AntagonistPublished 5
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
-Literally Just Kills Ur Character Automatically After being afk for 10 Seconds. -Features: Adjustable Seconds. IN THE: "local AFK_THRESHOLD = 10" change the 10 into any Seconds u want. Note: i only made this because i was bored and tried to make something challenging and funny and also stupid at the same time.. 0-0
--[[
Dies If Not Moving Your Character by yourself after 10 seconds.
Made By Display User T0mato.
--]]
-- Services
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local StarterGui = game:GetService("StarterGui")
-- Constants
local AFK_THRESHOLD = 10 -- Time in seconds before considering player AFK
local NOTIFICATION_CONFIG = {
Duration = 5,
Position = UDim2.new(0.5, 0, 0, 10),
Size = UDim2.new(0, 200, 0, 30),
Colors = {
Color3.fromRGB(255, 0, 0), -- Red
Color3.fromRGB(0, 255, 0), -- Green
Color3.fromRGB(0, 0, 255) -- Blue
}
}
-- Create notification GUI
local function createNotificationGui()
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AFKNotification"
ScreenGui.ResetOnSpawn = false
local NotificationFrame = Instance.new("Frame")
NotificationFrame.Name = "NotificationFrame"
NotificationFrame.Size = NOTIFICATION_CONFIG.Size
NotificationFrame.Position = NOTIFICATION_CONFIG.Position
NotificationFrame.AnchorPoint = Vector2.new(0.5, 0)
NotificationFrame.BackgroundColor3 = NOTIFICATION_CONFIG.Colors[1]
NotificationFrame.BorderSizePixel = 0
NotificationFrame.Parent = ScreenGui
local UICorner = Instance.new("UICorner")









Lol