Hey everyone, I own a game with concurrent 50+ players, I created a script, where if someone said “/apply” or “/ranks” it would teleport them, but it doesn’t seem to be working, and no error logs.
Here\s the code:
local quiz = 5516086673
local tps = game:GetService("TeleportService")
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if string.lower(msg)=="/apply" and plr:GetRankInGroup (4416916) >= 1 then
tps:Teleport(quiz,plr)
end
end)
end)
local rankcenter = 5616839473
local tps = game:GetService("TeleportService")
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if string.lower(msg)=="/ranks" and plr:GetRankInGroup (4416916) >= 1 then
tps:Teleport(rankcenter,plr)
end
end)
end)
Any Ideas?