generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: pages still not turning

Previous Thread :: Next Thread 
redlo43 is not online. 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 is not online. qrrrq
Joined: 27 Jan 2013
Total Posts: 1252
08 Sep 2013 09:37 PM
first hueheuheuheuheuheue
Report Abuse
redlo43 is not online. 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 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
08 Sep 2013 09:38 PM
treat this like any other thread please
Report Abuse
redlo43 is not online. 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 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
08 Sep 2013 09:43 PM
stop ignoring please
Report Abuse
alliancer is not online. 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 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
08 Sep 2013 09:44 PM
seriously answer
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
08 Sep 2013 09:47 PM
do you not know how to script?
Report Abuse
alliancer is not online. 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 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
08 Sep 2013 09:49 PM
I'm not doing anything!!
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
08 Sep 2013 10:11 PM
I still cannot find any errors
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
09 Sep 2013 06:58 PM
help
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
09 Sep 2013 07:10 PM
why is no one helping?!
Report Abuse
redlo43 is not online. redlo43
Joined: 16 Feb 2011
Total Posts: 4722
09 Sep 2013 07:28 PM
stop ignoring
I'm serious guys
Report Abuse
Soquick is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image