|
| 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 |
|
|
| |
|
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 |
|
|
|
| 12 Jan 2013 09:33 PM |
| Yes I ran it off my profile and the owner rank is always 255. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 12 Jan 2013 09:50 PM |
| To be honest I don't know. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 12 Jan 2013 09:56 PM |
| Yeah it fired, I tried resetting and it still didn't work... |
|
|
| Report Abuse |
|
|
| |
|
doron23
|
  |
| Joined: 12 Oct 2011 |
| Total Posts: 48 |
|
|
| 13 Jan 2013 12:29 PM |
| put some spaces, may be the problem |
|
|
| Report Abuse |
|
|
| |
|
coolc3320
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 328 |
|
|
| 13 Jan 2013 01:03 PM |
| Try it at the rank of 255. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
| |
|
|
| 13 Jan 2013 02:43 PM |
| I might demote them while they're playing. |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|