Hello guys, i found another issue, this this i just wanted to do to make a player but banned, the guy that make the WHOLE map destroyed…
I don’t wanna make the whole map alone…
LocalScript:
local BannedUser = {"Eddy0107"}
local LocalPlayer = game.Players.LocalPlayer
local msg = "You have been permanently banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here..."
if BannedUser then
BannedUser = LocalPlayer:Kick(msg)
end
Bug of the issue (Disconnect(Kick):
Also, send me simple scripts…
Any help is appreciated…
If it’s solved, don’t reply, thank you, this is the only rule on this topic…
local BannedUser = {"Eddy0107"}
local LocalPlayer = game.Players.LocalPlayer
local PlayerJoined = game.Players.PlayerAdded
local msg = "You have been permenantly banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here..."
if BannedUser then
PlayerJoined:Connect(function()
BannedUser = LocalPlayer:Kick(msg)
end)
end
@domboss37 Thanks, but unfortunately, i get the solution because you forgot to put msg into the LocalPlayer:Kick()…
local BannedUser = {"Eddy0107"}
local LocalPlayer = game.Players.LocalPlayer
local PlayerJoined = game.Players.PlayerAdded
local msg = "You have been permenantly banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here..."
if table.find(BannedUser, LocalPlayer.Name) then
table.insert(BannedUser, LocalPlayer.Name)
LocalPlayer:Kick(msg) -- This is what you forgot...
end
local BannedUser = {"Eddy0107"}
local LocalPlayer = game.Players.LocalPlayer
local PlayerJoined = game.Players.PlayerAdded
local msg = "You have been permenantly banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here..."
if table.find(BannedUser, LocalPlayer.Name) then
table.insert(BannedUser, LocalPlayer.Name)
LocalPlayer:Kick()
end
And:
local BannedUser = {"Eddy0107"}
local LocalPlayer = game.Players.LocalPlayer
local PlayerJoined = game.Players.PlayerAdded
local msg = "You have been permenantly banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here..."
if table.find(BannedUser, LocalPlayer.Name) then
table.insert(BannedUser, LocalPlayer.Name)
LocalPlayer:Kick(msg)
end
local msg = "You have been permenantly banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here..."
I suggest you don’t kick him on the client, he may be able to delete the local script, instead use a server script in ServerScriptService
This should work…
(sorry for the weird indentation, idk what happened lol)
local Players = game:GetService("Players")
local BannedUsers = {"Eddy0107"}
Players.PlayerAdded:Connect(function(player)
if table.find(BannedUsers , player.Name) then
player:Kick("You have been permenantly banned for destroying the whole make that took over 5 freaking hours ! Now you won't get any chances to be here...")
end
end)
They are talking about ScreenGui’s bro… You should use the server when it comes to kicking players when they join. And dont use the word pissed a lot, your post may get flagged.
You should give the original post, and replier credits for the solution. Of course you may feel free to customise it after, but it is just petty to mark your own posts as solutions unless you geniunely figured it out on your own.