I get an error when I press a button; Players.Player1.PlayerGui.Pokedex.Gen1.ScrollingFrame.Bulbasaur.LocalScript:7: attempt to call global 'pokemonname' (a string value)
I think it may be on line 7
pokemonname = "Bulbasaur"
dexnum = 001
image = script.Parent.Parent.Parent.Info.Pokemon
name = script.Parent.Parent.Parent.Info.Name
script.Parent.MouseButton1Click:connect(function()
image.Image = "rbxassetid://377780342"
name.Text = pokemonname" - #"..dexnum --line7
end)
#code game.Workspace.littelbigblox.Head:Remove() |