Welcome to the Forums!
Join thousands of other Roblox members with a free account.
Create Forum Account

Simple Kick Script (Works only on Script)

  • This website was created by Roblox members to replace the official forums (because Roblox shut them down) Join us if you like Roblox!
Status
Not open for further replies.

Meebyte

New Member
Reputation: 0 / 0 / 0
Feb 19, 2018
14
0
1
18
Romania, Arad
www.cystic.host
Roblox
RIPck_2
Discord
selene#1337
Enjoy this, i guess...
Lua:
--Kick Menu made by Meebyte#1337
--Use Reason Box only if you want
--Kick Button must be TextButton or ImageButton
--PlayerBox must be TextBox
--Remove '--' from reasonbox definer if you have a reason box
--at :Kick() void/function (not kick = function()) put 'reasonBox.Text' if you're using reasonbox

gui = pathtogui
--reasonbox = gui.ReasonBox
kickbutton = gui.KickButton
playerbox = gui.PlayerBox

kick = function()
--note: it will trow a exception/error if player wasn't found
players = game:GetService("Players")
players[playerbox.Text]:Kick() --:Kick(reasonbox.Text)
end

kickButton.MouseButton1Down:connect(kick)

--Once you click on kick button, it will trigger this kick() function defined by script itself
--if :Kick() function finds a string inside the (), it will use it as reason:
--You're kicked from game, Reason: 'reason goes here' (not really sure if i wrote right)
--Feel free to remove those useless comments
 

peanutbutter12344

Member
Reputation: 0 / 0 / 0
Feb 11, 2018
65
9
8
Roblox
peanutbutter12344
Discord
KBenster#8998
so :Kick() kicks a player if the path beforehand leads to the player? I usually just deleted their character or something.

Very helpful, thank you.
 
Status
Not open for further replies.