Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 16 Sep 2013 04:07 PM |
This script is supposed to check the player's level, and if the level is equal to or higher than what the number says, a frame is supposed to turn invisible. I am level 500, I enter the game and the frames are still visible. Does anyone know what the problem could be? It's in a local script inside of starterpack:
local player = game.Players.LocalPlayer while wait() do if script.Parent.Parent.supercool.Lvl.Value == 10 or script.Parent.Parent.supercool.Lvl.Value >= 10 then player.PlayerGui["Assign Hotkeys"].BG.LeftCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 10 or script.Parent.Parent.supercool.Lvl.Value >= 10 then player.PlayerGui["Assign Hotkeys"].BG.RightCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 20 or script.Parent.Parent.supercool.Lvl.Value >= 20 then player.PlayerGui["Assign Hotkeys"].BG.ShakkahoCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 25 or script.Parent.Parent.supercool.Lvl.Value >= 25 then player.PlayerGui["Assign Hotkeys"].BG.FlashJumpCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 30 or script.Parent.Parent.supercool.Lvl.Value >= 30 then player.PlayerGui["Assign Hotkeys"].BG.DankuCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 45 or script.Parent.Parent.supercool.Lvl.Value >= 45 then player.PlayerGui["Assign Hotkeys"].BG.FlashStepCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 70 or script.Parent.Parent.supercool.Lvl.Value >= 70 then player.PlayerGui["Assign Hotkeys"].BG.HealingCover.Visible = false end if script.Parent.Parent.supercool.Lvl.Value == 80 or script.Parent.Parent.supercool.Lvl.Value >= 80 then player.PlayerGui["Assign Hotkeys"].BG.GetsugaCover.Visible = false end end
|
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
|
| 16 Sep 2013 04:32 PM |
| needs player entered function |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 16 Sep 2013 04:38 PM |
| will that work inside of a local script thats in starterpack? |
|
|
| Report Abuse |
|
|
| |
|