ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

[ROBLOX] [Release] A Better Anti-AFK Script


  • Please log in to reply
[ROBLOX] [Release] A Better Anti-AFK Script

#1

IcyJake
IcyJake
    Offline
    0
    Rep
    -1
    Likes

    Member

Posts: 37
Threads: 17
Joined: Jan 28, 2018
Credits: 0

Six years registered
#1
Typing Version:
 
local plr = game:GetService("Players").LocalPlayer
plr.Chatted:connect(function(msg)
    msg = msg:lower()
    if (msg == "afk.on") and (plr.Character.Parent == workspace) then
        AnimBackup = plr.Character.Animate:Clone()
        plr.Character.Parent = game:GetService("Lighting")
    elseif (msg == "afk.off") and (plr.Character.Parent == game:GetService("Lighting")) then
        plr.Character.Parent = workspace
        plr.Character:MakeJoints()
        AnimBackup.Parent = plr.Character
    end
end)
 
 
 
Key Version:
 
local plr = game:GetService("Players").LocalPlayer
local keyToggle = "key goes here"
local function onKeyPress(actionName, userInputState, inputObject)
   if (userInputState == Enum.UserInputState.Begin) and (plr.Character.Parent == workspace) then
      animBackup = plr.Character.Animate:Clone()
      plr.Character.Parent = game:GetService("Lighting")
   elseif (userInputState == Enum.UserInputState.Begin) and (plr.Character.Parent == game:GetService("Lighting")) then
      plr.Character.Parent = workspace
      plr.Character:MakeJoints()
      animBackup.Parent = plr.Character
   end
end
game:GetService("ContextActionService"):BindAction("keyPress", onKeyPress, false, Enum.KeyCode[KeyToggle])

  • 0

april fools 2023!

~pumpernickel bitch


#2

DegerIsDaddy
DegerIsDaddy
    Offline
    392
    Rep
    746
    Likes

    get ready

Posts: 1981
Threads: 186
Joined: Oct 28, 2015
Credits: 7

Eight years registered
#2

haha roblox in 2018


  • 0


 Users browsing this thread: and 1 guests