Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Local Script
- script.Parent.BUTTON.MouseButton1Click:Connect(function()
- script.Parent.REMOTEEVENT:FireServer(script.Parent.button, script.Parent.TEXTBOX.Text)
- end)
- -- Script
- script.Parent.REMOTEEVENT.OnServerEvent(function(plr, msg)
- plr:kick(msg)
- end)
- -- [[
- Kick Button: BUTTON (Rename this in the code with the name of your TextButton)
- Remote Event: REMOTEEVENT (Rename this in the code with the name of your remote event)
- Reason: REASON (Rename this in the code with the name of your TexBox)
- -- ]]
Advertisement
Advertisement