I am trying to make a system witch would check on what team is player and if its for example on team 1 then he gets teleported to other position.
local Teams = game:GetService("Teams")
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if player.Team == "Level1" then
game.Players.LocalPlayer.character.LowerTorso.CFrame = CFrame.new(-546.6, 25, -2.9)
end
end)

1 comment
bruh who downvoted me