redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 08 Sep 2013 09:35 PM |
local page = 1
function Change(newPage) if script.Parent.Frame.Frame:findFirstChild("Page"..newPage) == nil then return end local pages = script.Parent.Frame:GetChildren() local total = 0 for i = 1, #pages do total = total + 1 if pages[i].Name == "Page"..newPage then pages[i].Visible = true else pages[i].Visible = false end end page = newPage end
Change(page) script.Parent.Frame.Next.MouseButton1Click:connect(function() Change(page + 1) end) script.Parent.Frame.Previous.MouseButton1Click:connect(function() Change(page - 1) end) |
|
|
| Report Abuse |
|
|
qrrrq
|
  |
| Joined: 27 Jan 2013 |
| Total Posts: 1252 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 08 Sep 2013 09:37 PM |
Basically it's like this
-HelpGui ---Script ---Frame -------Frame -----------Page1 -----------Page2 -------Next -------Previous -------Exit |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 08 Sep 2013 09:38 PM |
treat this like any other thread please
|
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 08 Sep 2013 09:40 PM |
and since it's a localscript i can't get output
Basically it gets an arguemtn called "newPage" and adds a intvalue to it
then it matches that value to a frame name and if it's equal to it it will make that frame visible and the rest invisible |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
| |
|
alliancer
|
  |
| Joined: 18 Mar 2013 |
| Total Posts: 1016 |
|
|
| 08 Sep 2013 09:43 PM |
| I think this guy is F5ing his way to the top of le forum |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 08 Sep 2013 09:47 PM |
| do you not know how to script? |
|
|
| Report Abuse |
|
|
alliancer
|
  |
| Joined: 18 Mar 2013 |
| Total Posts: 1016 |
|
|
| 08 Sep 2013 09:47 PM |
seriously stop, you're screwing up the forum people will help when they figure it out |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 08 Sep 2013 10:11 PM |
| I still cannot find any errors |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
| |
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 09 Sep 2013 07:28 PM |
stop ignoring I'm serious guys |
|
|
| Report Abuse |
|
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 09 Sep 2013 07:45 PM |
function Change(newPage) if script.Parent.Frame.Frame:findFirstChild("Page"..newPage) == nil then return end for i,v in pairs(script.Parent.Parent.Frame.Frame:children()) do if v.Name = "Page" ..newPage then v.Visible = true else v.Visible = false end end end Change(page) script.Parent.Frame.Next.MouseButton1Click:connect(function() Change(page + 1) end) script.Parent.Frame.Previous.MouseButton1Click:connect(function() Change(page - 1) end) |
|
|
| Report Abuse |
|
|