Say if I wanted the player to be kicked when pressing Esc. instead of showing the menu, or a button that the game doesn’t use but is associated with exploits or something along those lines, how would I achieve it?
(I don’t know anything about scripting)
Thanks for the help in advance!
I really don’t know why you want to kick players but here is a little script I made.
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Escape then
game.Players.LocalPlayer:Kick("Your kick reason here")
end
end)
Toxic where am I being toxic?? I deleted my messages before this goes into somewhere we don’t want it to go, a lot off programmers isn’t just give free code out then what’s the point off hiring if people could just ask programmers to do it in here. That’s all i was saying.
UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input, Istyping)
if Istyping then
return
end
if input.KeyCode == Enum.KeyCode.Escape then
game.Players.LocalPlayer:Kick("Reason")
end
end)
They said they have no scripting knowledge so why would someone hire them for scripting, also the point of this channel thing is to help people with scripts, im sure u and me have both asked something for our errors, or looked at a past post to discover why we had that error.
oh wow roblox is so much more vulnerable than I thought
Edit: On second thought I’m wondering if you can kick other players. it may only work for the client…