Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(Player)
- local PlayerAFK = false
- Player.Chatted:Connect(function(Message)
- if Message == "!afk" then
- if PlayerAFK == false then
- PlayerAFK = true
- local ForceField = Instance.new("ForceField", Player.Character)
- Player.Character.Humanoid.DisplayName = "AFK - " .. Player.Name
- else
- PlayerAFK = false
- Player.Character.ForceField:Destroy()
- Player.Character.Humanoid.DisplayName = Player.Name
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement