I was reading this book, "Roblox Programming Intermediate" by Brandon LaRouche and was working on a tutorial of his. The tutorial was "scripting a gui" that is suppose to work as a page and when clicked, it goes to the next page with the next number being displayed. I wrote everything as said in the book. Heres What I wrote.
local Slide = script.Parent.Parent.Parent.Number function onClick() if Slide.Value <= 3 then Slide.Value = Slide.Value + 1 end end script.Parent.Touched:connect(onClick)
yet I get this in the Output 20:32:02.488 - Touched is not a valid member of TextButton 20:32:02.489 - Stack Begin 20:32:02.489 - Script 'Players.MyLifeAsABasketBall.PlayerGui.ScreenGui.Holder.Bar.Previous.Script', Line 7 20:32:02.490 - Stack End 20:32:02.491 - Number is not a valid member of ScreenGui
