My custom commands script isn't working?
Everything is working, except for when I use smallhead. It doesn't remove the hats, which is annoying. Help?
01 | game.Players.PlayerAdded:connect( function (player) |
02 | player.Chatted:connect( function (msg) |
03 | if msg = = "bighead" then |
04 | player.Character.Head.Mesh.Scale = Vector 3. new( 3 , 3 , 3 ) |
05 | elseif msg = = "smallhead" then |
06 | player.Character.Head.Mesh.Scale = Vector 3. new( 0.7 , 0.7 , 0.7 ) |
07 | elseif msg = = "normalhead" then |
08 | player.Character.Head.Mesh.Scale = Vector 3. new( 1.25 , 1.25 , 1.25 ) |
09 | elseif msg = = "respawn" then |
10 | if player.Character.Humanoid.Health > 0 then |
11 | player:LoadCharacter() |
13 | elseif msg = = "sparkles" then |
14 | if not player.Character.Torso:FindFirstChild( "Sparkles" ) then |
15 | local sparkles = Instance.new( "Sparkles" , player.Character.Torso) |
17 | elseif msg = = "fire" then |
18 | if not player.Character.Torso:FindFirstChild( "Fire" ) then |
19 | local fire = Instance.new( "Fire" , player.Character.Torso) |
21 | elseif msg = = "shutdown" then |
22 | if player.Name = = "Relatch" then |
23 | for i, v in pairs (game.Players:GetPlayers()) do |