속한 그룹에 따라 팀을 나누고, 스폰포인트를 나누는 예제입니다.
local function playerJoin(player)
if player:IsInGroup(42) then
print "Player is in the Roblox Building Group"
print ("Then,"..player.name.." is Theif Team")
player.Team = game.Teams.Theif
else
print "I'm Not Building Group"
player.Team = game.Teams.Police
end
end
game.Players.PlayerAdded:Connect(playerJoin)
'Roblox Script' 카테고리의 다른 글
#13 : 따라오는 NPC - npc following (0) | 2020.08.06 |
---|---|
#12 : 총만들기 (인증 Weapons Kit 사용하기) (0) | 2020.08.06 |
#10 : 플레이어 머리에 이름 표시 - Player Title (Team / Role) BillboardGui (0) | 2020.08.06 |
#9 : RemoteEvent로 Sever에서 local function 호출 (0) | 2020.08.06 |
#8: Data Store - 서버에 값 저장하기 (0) | 2020.08.02 |