LoginSignup
0
0

🕵️‍♂️ Robloxチーター排除!一定時間操作なしでkickする簡単スクリプト

Posted at

Roblox にはチーターがかなりいますが、簡単にkick する方法があります。

大抵の場合、チーターは一定時間の間、ゲーム内のキャラクターの操作をせずに、別ツールでゲームをハックしようと試みます。

そこで、例えば「5分間操作がなければ自動的に kick する」というスクリプトを書いてみます。
(割と効果があった)

以下のファイルを StarterPlayer > StarterPlayerScripts に挿入してください。

LocalScript
local UserInputService = game:GetService("UserInputService")
local AFKSeconds = 0 
local idleMaxSeconds = 60 * 5 - 2 -- The AFK seconds to be kicked
local IdleReason = "there's no input for 5 mins" -- Reason to be kicked

local PlayersService = game:GetService("Players")
local player = PlayersService.LocalPlayer


UserInputService.InputBegan:Connect(function()
    AFKSeconds = 0
end)

while wait(1) do
    AFKSeconds += 1
    if AFKSeconds == idleMaxSeconds then
        game.Players.LocalPlayer:Kick(IdleReason)
        AFKSeconds = 0
    end
end

おしまい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0