This is a LocalScript in ReplicatedFirst. It doesn't work.
game:GetService("TeleportService").LocalPlayerArrivedFromTeleport:Connect(function(gui,data)
local plr = game.Players.LocalPlayer
plr:Kick()
end)
What?? I'm just overall so confused how to use this... Help please.
Btw I teleported from another place to the place that had the LocalScript so it should've activated right?

2 comments
Why ReplicatedFirst? Try printing messages to see if the LocalScript runs or re-parent it somewhere else, like: Starter pack, StarterPlayerScripts, StarterCharacterScripts
Wiki says this "This event has to be connected by a localscript in the ReplicatedFirst as soon as the script runs, as connecting to the event later can lead to missing it firing." Idk if I understood it correctly though.