So I put this script in workspace and it's an local script. But for some reason this does nothing. The Developer Console doesn't print anything? And it doesn't let the player rejoin. Please help me. Local Script:
while true do
wait(0.01)
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
local playerSaidRejoin = message:lower() == ":rejoin"
if playerSaidRejoin then
player.PlayerGui.RejoinMessage.Frame.Visible = true
print("Rejoingui set true")
print("Teleporting...")
game:GetService("TeleportService"):Teleport(game.PlaceId)
print("Teleported.")
end
end)
end)
end
Thanks for looking and trying to help me c:

1 comment
Omg thank you! Accepted c: