I was working on my script There was no errors but it does not create any of the Buttons! Why doesn't it work? (i have only included the part of the script that errors) EDIT: I included the full Script
001 | --[[--[[--[[--[[ |
002 | Setup Everything |
003 | --]] -- ] ] -- ] ] -- ] ] |
004 | local mouse = game:GetService( 'Players' ).LocalPlayer:GetMouse() |
005 | local HotbarItems = { 'Grass' , 'Stone' , 'Dirt' , 'Sand' , 'TorchWall' , 'MoltenRock' , 'Netherrack' , 'Water' , 'Lava' } |
006 | local ItemList = { 'SpawnZombie' , 'Fire' , 'NetherPortal' , 'Grass' , 'Dirt' , 'Stone' , 'Bedrock' , 'DiamondOre' , 'CopperOre' , 'IronOre' , 'EmeraldOre' , 'GoldOre' , 'RedstoneOre' , 'MoltenRock' , 'Bricks' , 'Leaves' , 'WoolDarkGray' , 'WoolOrange' , 'WoolGray' , 'WoolBrown' , 'WoolDarkGreen' , 'WoolLightGreen' , 'WoolGreen' , 'WoolBlue' , 'WoolLightBlue' , 'WoolLightYellow' , 'SpruceWood' , 'OakWood' , 'DarkOakWood' , 'AcaciaWood' , 'AcaciaWoodPlanks' , 'DarkOakWoodPlanks' , 'OakWoodPlanks' , 'SpruceWoodPlanks' , 'Concrete' , 'Cobblestone' , 'Sand' , 'Gravel' , 'Netherrack' , 'WoolRed' , 'Water' , 'Lava' } |
007 | local Selected = 1 |
008 | local SpecialPlayers = { [ 148430515 ] = 'Co-Founder' , [ 34929389 ] = 'Founder/Lead Developer' } |
009 | local PlayerColors = { [ 148430515 ] = Color 3. new( 255 , 170 , 0 ), [ 34929389 ] = Color 3. new( 255 , 0 , 0 ) } |
010 | game:GetService( 'Players' ).LocalPlayer.CharacterAdded:connect( function () |
011 | game:GetService( 'Players' ).LocalPlayer.Character:WaitForChild( 'Humanoid' ) |
012 | PunchAnim = game:GetService( 'Players' ).LocalPlayer.Character.Humanoid:LoadAnimation(script.Punch) |
013 | PlaceAnim = game:GetService( 'Players' ).LocalPlayer.Character.Humanoid:LoadAnimation(script.Place) |
014 | end ) |
015 | --[[--[[ |