generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Either GroupID or rolesets are not functioning

Previous Thread :: Next Thread 
DevRoboticTerrorist is not online. DevRoboticTerrorist
Joined: 03 Oct 2012
Total Posts: 3464
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 is not online. 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
DevRoboticTerrorist is not online. DevRoboticTerrorist
Joined: 03 Oct 2012
Total Posts: 3464
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
DevRoboticTerrorist is not online. DevRoboticTerrorist
Joined: 03 Oct 2012
Total Posts: 3464
14 Sep 2014 01:19 PM
b1
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image