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: GroupID question

Previous Thread :: Next Thread 
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 12:32 PM
If you put in group ID 0, no one can like do something doing with the ID...

How to make an ID thats fake and that everyone use it and it looks like everyone is in the group

(I dont wanna re-script an whole script for just 1 object)
Report Abuse
Greyhound40 is not online. Greyhound40
Joined: 15 Oct 2008
Total Posts: 933
12 Aug 2014 12:34 PM
I don't believe changing the group ID to 0 will work, as no-one is in a group with a group ID of 0. Therefore, I'd suggest changing the line that is:

if player:IsInGroup(120239) then
whatever is here
end

to something like

if player then
whatever is here
end

or just removing the two lines and just having:

whatever is here
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 12:35 PM
Learn reading, whole script is based on the group id-.-
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
12 Aug 2014 12:37 PM
if the whole thing is based on group id and you want it to go for everyone... why have it based on groupid... e.e
Report Abuse
RaverKiller is not online. RaverKiller
Joined: 09 Jul 2014
Total Posts: 219
12 Aug 2014 12:37 PM
Creating a fake group ID isn't possible. You will have to stick with the real group ID.

- RaverKiller
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 12:38 PM
Caus, all other objects are based on group(s)
and this object shouldnt, and its an 50+ line script.. c;
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
12 Aug 2014 12:39 PM
I still don't get why whatever it is you're trying to do can't just NOT be based on GroupID.

Only thing I can think of is that you didn't script it yourself, you got it as a FreeModel.
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 12:40 PM
Damn, i hate you.
Its not an free-model, and i'm not willing to rescript and whole script for just 1 object..
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 12:42 PM
Is there an instance called; plr:IsNotInGroup(id)
Report Abuse
Greyhound40 is not online. Greyhound40
Joined: 15 Oct 2008
Total Posts: 933
12 Aug 2014 12:43 PM
I can in fact read, perhaps to a higher ability than yourself. I would even go as far as to say that my writing capabilities exceed yours. You said: "re-write the whole script". You never specified how long your script was or how many times the group ID is required. Therefore, I assumed it would not be needed often. There is no point getting mad at me when I can not give you the ability to create a fake group ID. However, like I said, if you replace the group ID line with something like: if player then; or if true then, you might have more luck. You can do this easily by using the 'replace' function in ROBLOX studio.
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 12:45 PM
player:IsInGroup(GroupID) == false then

will this work?
Report Abuse
RaverKiller is not online. RaverKiller
Joined: 09 Jul 2014
Total Posts: 219
12 Aug 2014 12:46 PM
IsNotInGroup is not a method.

However, you could attempt the following:
if Player:IsInGroup(Id) then else

- RaverKiller
Report Abuse
Greyhound40 is not online. Greyhound40
Joined: 15 Oct 2008
Total Posts: 933
12 Aug 2014 12:54 PM
Potentially, your idea would work:

if player:IsInGroup() == false then

end


But! Make sure the player isn't, in fact, in that group.
Report Abuse
kingstarwest is not online. kingstarwest
Joined: 15 Aug 2010
Total Posts: 1156
12 Aug 2014 12:58 PM
Yeah I would think something like this

(Make sure player is defined o.e)

if player:IsInGroup(ID)
--put code here for the player that is in the group
else
--if player is not in the group (which you want) then put code here and the code here will run if the player is not in the group
end
Report Abuse
kingstarwest is not online. kingstarwest
Joined: 15 Aug 2010
Total Posts: 1156
12 Aug 2014 01:00 PM
Off-Topic: Also read your PM's, I would like a thumbnail :P
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 01:25 PM
Is this possible;
if player:IsInGroup() == false or if player:IsInGroup() == true then


it checks if hes in group or not and it works if ur not in group, and works for everyone right?
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 01:31 PM
or this;
player:IsInGroup(GroupID) or player.TeamColor == "Bright green"
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
12 Aug 2014 01:32 PM
how 'bout you try it and find out before asking us?

kthx
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 01:32 PM
hey, buddy, you could just say if it works, caus it's scripting helpers.
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
12 Aug 2014 01:34 PM
hey buddy, you could just test it and find out if it works, 'cause logic
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 01:40 PM
shaddup,
i cant update on this acc caus r0bl0x hates me..
Report Abuse
devSurface is not online. devSurface
Joined: 09 Feb 2013
Total Posts: 1339
12 Aug 2014 02:00 PM
didnt work
Report Abuse
kingstarwest is not online. kingstarwest
Joined: 15 Aug 2010
Total Posts: 1156
12 Aug 2014 02:10 PM
(Make sure player is defined o.e)

if player:IsInGroup(ID)
--put code here for the player that is in the group
else
--if player is not in the group (which you want) then put code here and the code here will run if the player is not in the group
end


This should definitely work...
Report Abuse
andy2855 is not online. andy2855
Joined: 16 Feb 2014
Total Posts: 15
12 Aug 2014 02:26 PM
Alright just try this.
It *MIGHT*
work.




function PlrIn()
game.Players:WaitForChild()
GroupID = ("Group ID Here")
game.Players:FindFirstChild()
game.Players.GroupID = true
end

script:GetChildren()

-- Put here what you want to give your fellow group members...
Report Abuse
andy2855 is not online. andy2855
Joined: 16 Feb 2014
Total Posts: 15
12 Aug 2014 02:29 PM
Oh and btw I forgot put an IntValue named 'GroupID'
and Inside the IntValue put the number link of your group
and then put the script Into the IntValue.
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