Why doesn't this simple script work?

I have a simple script here but it doesn’t work.

plr:Kick("test")

Error code: Server Kick Message: test

Also, it makes the player freeze in place, unable to move.

I’m pretty sure thats exactly how it is supposed to work in roblox studio.

It doesn’t kick the player, just freezes them in place.

This is intended behaviour for Studio, it will actually kick the given Player in a live-build

It does kick the player. Look in output. For some reason, it doesn’t kick the player if you testing in Roblox Studio.

Yes… we already have 2 of the exact same answers…