|
| 25 Dec 2015 09:05 PM |
Its been a while..
I've always done
game:GetService("Players").plrnamehere:Kick()
But if they are locked, it doesn't work.
How would I go about that? |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 09:06 PM |
| If they are locked? I don't quite understand that. I'm sure I'm just not quite up-to-date, but what does that even mean? What causes it? |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 09:07 PM |
That is what I'm trying to understand. I stopped playing for about a year and came back to a bunch of errors like this in my current scripts.
Error being:
"Player is locked script:1:1" |
|
|
| Report Abuse |
|
|
Lametta
|
  |
| Joined: 07 Jul 2012 |
| Total Posts: 7302 |
|
|
| 25 Dec 2015 09:09 PM |
| I remember that once being an exploit. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 09:16 PM |
| Are you running this method from a local script inside the player, or from the server script service? |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Dec 2015 09:30 PM |
| Well, I always use a local script in a player to kick them. I ran into this same issue when using the kick method from server, seems only local scripts can operate that function. Can't remember if FE had a case in this, if I remember correctly FE off it worked fine from serverscriptservice, FE on i had to use local script to do it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Dec 2015 09:43 PM |
"Well, I always use a local script in a player to kick them. I ran into this same issue when using the kick method from server, seems only local scripts can operate that function. Can't remember if FE had a case in this, if I remember correctly FE off it worked fine from serverscriptservice, FE on i had to use local script to do it."
If you even consider kicking someone from a LocalScript, you don't know what you're doing. while I doubt that would pose serious security threats, recommending someone do that is really bad. Do NOT attempt to modify the game from LocalScript, especially not something like this! And use FE for crying out loud! It's not hard! |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 09:47 PM |
| You need to do it from a local script for the error to appear on their screen, and with the right security on your server side script, you can stop exploiters from using that ability to kick players. It's called authentication of UserId |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 09:57 PM |
| are you using script builder??? |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:00 PM |
"You need to do it from a local script for the error to appear on their screen, and with the right security on your server side script, you can stop exploiters from using that ability to kick players. It's called authentication of UserId"
Are you trolling, or sincerely unintelligible?
"with the right security on your server side script, you can stop exploiters from using that ability to kick players. It's called authentication of UserId"
Right, but they can still kick the player quite easily since it's not like you will be using FE - You seem to think FE is useless, after all. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:05 PM |
| I didn't say it is useless, it increases your game's security a lot, but it isn't flawless as a human designed the code, and designed the processor that interprets it, and a human designed the server. Anything designed by a human has flaws, we are just human. There is always a backdoor or someone that will find the loophole inside. Security needs to not only be roblox's job, but your own if you want a game that is more secure. Even still there will be a loophole, but the idea is to keep building the security as much as you can, and let roblox help with their own securities. I am not trolling, I'm giving clear advice and even reasons why you should do it this way. If you can't predict what an exploiter would do, then you can't really call yourself a scripter now can you? You have to do your best to stop the efforts, not complain to me because the kick method is set up this way. Roblox did it, I am just adapting to make it work. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:12 PM |
Okay, here you are.
"This should be used from a Script as opposed to a LocalScript to work as expected online. Using it from a LocalScript will not kick the player from the game, but remove their character." http://wiki.roblox.com/index.php?title=API:Class/Player/Kick
Yes, FE won't be totally fool-proof, but it should stop pretty much everything you can throw at the server. If you find a way around it, you can talk to me again. Until then, it is fairly straightforward to implement FE, with little room for actual logic errors, or so I would think.
Client sends instructions, instructions don't meet pre-approved actions, disregard it.
How can you get around that? If something that is approved to replicate or transmit is something like a Script, I can see how. I doubt they allow things like that to be replicated at all though. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:16 PM |
| You say that, and the wiki does too, yet i made oasis utility, and the local script is what kicks the player. It works perfectly and shuts down the server once everyone is kicked. If it only removed their character, it would not shut down the server once all players are removed. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:19 PM |
I don't say that xD I only found it on the wiki when trying to validate your claim that Kick only works on the client.
It depends though, are you sure it worked in an actual server? Or just in Studio?
Either way, kicking people on the server is what should be done. It is the "proper" way to do it. "Proper" isn't a very strong argument of course. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:27 PM |
| You're right, the kick method isn't the "proper" way, it is just a way that allows you to use the destroy method and send a reason to the player as to why they are being kicked from the game. Yes it works in server, with or without FE activated. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:31 PM |
Oh, interesting.
Actually though, the Destroy method doesn't close the connection last I checked, and Kick didn't used to have a message feature. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:33 PM |
If you look at the link you sent me:
http://wiki.roblox.com/index.php?title=API:Class/Player/Kick
void Kick ( string message = "" ) |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:39 PM |
Yeah, but that was actually added, according to http://wiki.roblox.com/index.php?title=Change_log, 21 May 2015
No matter though. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:41 PM |
| Roberto, stop arguing with Jarod. He has been here longer, knows more, and your making a fool of yourself. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:42 PM |
| Hey scripto, lol, you are a funny character. I like you. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:43 PM |
| Don't try the buddy act until you can stop arguing. This forum needs to get cleaned up. |
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:43 PM |
What happened to this post... lmao
|
|
|
| Report Abuse |
|
|
|
| 25 Dec 2015 10:44 PM |
| If I knew more, I wouldn't be arguing. |
|
|
| Report Abuse |
|
|