Turn on Filtering Enabled which is highly recommended to keep your servers secure and use remote events and functions to communicate between the server and client. This is how I would kick the player every time they click on their mouse.
03 | local event = game:GetService( "ReplicatedStorage" ):WaitForChild( "RemoteEvent" ) |
05 | event.OnServerEvent:connect( function (player) |
06 | player:Kick( "lol get kicked scrub" ) |
12 | local player = script.Parent.Parent |
13 | local mouse = player:GetMouse() |
15 | mouse.Button 1 Down:connect( function () |
16 | game:GetService( "ReplicatedStorage" ):WaitForChild( "RemoteEvent" ):FireServer(player) |
If you would like some more help on filtering enabled,remote events, and remote functions, here are some useful links:
http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
http://wiki.roblox.com/index.php?title=API:Class/RemoteEvent
http://wiki.roblox.com/index.php?title=Security