Roblox Kick Amp- Ban Script - Kick — Script V2 -...

local player = game.Players.LocalPlayer -- This must be in a server script, not LocalScript local targetPlayer = game.Players:FindFirstChild("UsernameHere") if targetPlayer then targetPlayer:Kick("You were kicked for violating the rules.") end

-- Server script local DataStoreService = game:GetService("DataStoreService") local bansStore = DataStoreService:GetDataStore("PlayerBans") game.Players.PlayerAdded:Connect(function(player) local userId = player.UserId local isBanned = bansStore:GetAsync(userId)

if isBanned then player:Kick("You are banned from this game.") end end)

local player = game.Players.LocalPlayer -- This must be in a server script, not LocalScript local targetPlayer = game.Players:FindFirstChild("UsernameHere") if targetPlayer then targetPlayer:Kick("You were kicked for violating the rules.") end

-- Server script local DataStoreService = game:GetService("DataStoreService") local bansStore = DataStoreService:GetDataStore("PlayerBans") game.Players.PlayerAdded:Connect(function(player) local userId = player.UserId local isBanned = bansStore:GetAsync(userId)

if isBanned then player:Kick("You are banned from this game.") end end)

​Copyright © Liaocheng Ray Fine Technology Co., Ltd. All Rights Reserved. Site Map
We use cookies to enable all functionalities for best performance during your visit and to improve our services by giving us some insight into how the website is being used. Continued use of our website without having changed your browser settings confirms your acceptance of these cookies. For details please see our privacy policy.
×