Is there a way to simplify this script? I'm trying to make it so that if the player's stat is # then it would change text to "Class : (Number)"
while true do
wait()
if game.Players.LocalPlayer.bin.Class.Value == 1 then
script.Parent.Text = "Class : Swordsman"
elseif
game.Players.LocalPlayer.bin.Class.Value == 2 then
script.Parent.Text = "Class : Gunner"
elseif
game.Players.LocalPlayer.bin.Class.Value == 3 then
script.Parent.Text = "Class : Mage"
elseif
game.Players.LocalPlayer.bin.Class.Value == 4 then
script.Parent.Text = "Class : Berserker"
elseif
game.Players.LocalPlayer.bin.Class.Value == 5 then
script.Parent.Text = "Class : Berserker"
elseif
game.Players.LocalPlayer.bin.Class.Value == 6 then
script.Parent.Text = "Class : Berserker"
end
end

2 comments
Thx and would "{[1]="Swordsman",[2]="Gunner",[3]="Mage",[4]="Berserker",[5]="Barbarian",[6]="Archer", [7]="Assassin",[8]="Conjurer",[9]="Enchanter",[10]="Elementalist",[11]="Gladiator",[12]="Ninja", [13]="Pirate",[14]="Paladin",[15]="Priest"}" work over in the class table?
yes