|
| 14 Sep 2014 06:21 AM |
GroupsAllowed = 1173948
game.Players.PlayerAdded:connect(function(player) for i,p in pairs(GroupsAllowed) do if player:IsInGroup(p) then if Player:GetRankInGroup(GroupsAllowed) == 255 then Instance.new("Message", workspace) game.Workspace.Message.Text = "The owner of our group/allies has entered!" end end end) |
|
|
| Report Abuse |
|
|
SirNoobly
|
  |
| Joined: 01 Oct 2009 |
| Total Posts: 253 |
|
|
| 14 Sep 2014 06:32 AM |
GroupsAllowed = 1173948
game.Players.PlayerAdded:connect(function(player) for i,p in pairs(GroupsAllowed) do if player:IsInGroup(p) then if player:GetRankInGroup(GroupsAllowed) == 255 then -- lowercase p message = Instance.new("Message", workspace) message.Text = "The owner of our group/allies has entered!" end end end) |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2014 07:13 AM |
| I see how I screwed up there but there's another part that isn't working because your version doesn't function right either. I would love to post the output but it won't work in offline mode. |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Sep 2014 01:29 PM |
groupsAllowed, workspace, debris = { "Groups go in here", 123 }, game:GetService("Workspace"), game:GetService("Debris")
function pAdded(plr) for i, v in pairs(groupsAllowed) do if plr:IsInGroup(v) then if (plr:GetRankInGroup(v) == 255) then local message = Instance.new("Message", workspace) debris:AddItem(message, 2) end end end end
game.Players.PlayerAdded:connect(pAdded) |
|
|
| Report Abuse |
|
|