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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Okay roblox, I'm not the owner of my group or anything

Previous Thread :: Next Thread 
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
12 Jan 2013 08:01 PM
When I was making an automatic morph I split each section of the body into different scripts so I could keep organized. Now I go into the game and anyone above the rank of 250 is supposed to have that morph, but when I run it it gives no output. Now obviously I'm not going to give you nine 100 lined scripts and say "find it" but I think it has to do with these lines of code.

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
if player:GetRankInGroup(31206) >= 250 then

The beginning of each script, I think it's these lines because it used to be a morph at spawn but then I changed the event and added that you had to be above 250 in the group or higher.
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
12 Jan 2013 09:30 PM
Bump
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 09:33 PM
Your sure your rank is 250 or over? And you ran this in game, not in test mode right?
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
12 Jan 2013 09:33 PM
Yes I ran it off my profile and the owner rank is always 255.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 09:37 PM
I can't see an obvious issue, are you sure all the logic beyond that is sound?
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
12 Jan 2013 09:39 PM
Yes... I think...

It's simple

if your rank is higher than 250 then
do stuff
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 09:40 PM
Have it display some sort of check in game, like after that change a brick red, then we will know for sure.
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
12 Jan 2013 09:49 PM
It turns the brick red ._.

How come it was working before I put in the top but doesn't work now?
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 09:50 PM
To be honest I don't know.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
12 Jan 2013 09:51 PM
The CharacterAdded event does not fire the first time a player spawns (when you first enter a game). This may be your problem; try resetting.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
12 Jan 2013 09:52 PM
That is besides the point though, if he added the brick color changer after Character Added and the check inside of it, then that means it fired.
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
12 Jan 2013 09:56 PM
Yeah it fired, I tried resetting and it still didn't work...
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
13 Jan 2013 12:27 PM
It knows I'm the owner...
Report Abuse
doron23 is not online. doron23
Joined: 12 Oct 2011
Total Posts: 48
13 Jan 2013 12:29 PM
put some spaces, may be the problem
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
13 Jan 2013 12:30 PM
Where?
Report Abuse
coolc3320 is not online. coolc3320
Joined: 13 Jun 2012
Total Posts: 328
13 Jan 2013 01:03 PM
Try it at the rank of 255.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
13 Jan 2013 01:10 PM
We already know it is firing after that check, the check is fine.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
13 Jan 2013 02:34 PM
Why check the rank of the player every time they spawn? If you do it beforehand then their rank only needs to be changed once.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
13 Jan 2013 02:35 PM
*checked
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
13 Jan 2013 02:43 PM
I might demote them while they're playing.
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
13 Jan 2013 03:08 PM
Aren't ranks cached?
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
13 Jan 2013 03:11 PM
Use a local script to get an update on the rank automatically.
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