I tried using this script but I know that it wont work in game. I basically need to know how I would access this IntValue from a normal script.
if game.Players.LocalPlayer.AFK.Value == 1 then
local torso = game.Players.LocalPlayer.Character:WaitForChild('HumanoidRootPart')
torso.Parent = game.Lighting
wait(1)
end

2 comments
Change game.Players.LocalPlayer with game.Players.PlayerName
That doesnt work