You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want too make it whereas the player gets teleported to another game if they met the group requirements. -
What is the issue? Include screenshots / videos if possible!
It’s not teleporting the player. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Looked on the forums, but nothing useful.
local TeleportService = game:GetService("TeleportService")
local place = 6379660376
game.Players.PlayerAdded:Connect(function(Player)
if Player:IsInGroup(1) or Player:IsInGroup(1) or Player:IsInGroup(2) or Player:IsInGroup(3) or Player:IsInGroup(5) or Player:IsInGroup(3) or Player:IsInGroup(0) or Player:IsInGroup(2) or Player:IsInGroup(7) or Player:IsInGroup(8) or Player:IsInGroup(9) or Player:IsInGroup(1) then
Player:Kick("You're currently in a banned group")
elseif Player:IsInGroup(1) then
Player:Kick("You're already in the group!")
elseif Player then
Player=game:GetService("Players"):FindFirstChild(Player.Parent.Name)
TeleportService:Teleport(place, Player)
end
end)