Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How i can script a book where i can move your pages?

I recently wanted to make a book script , it open and every time I click on Q and E I will move a page. Does anyone have an idea how this works?

I just want an explanation of how I could make one, not an entire script.

5 comments

0

Explanation: you learn how to script

0

Rude, I just want to know how I can make a page move :\

0

CFrame it, easy

0

But you said you wanted an explanation how to do it, right?

0

With explanation I mean, what should I use , I wanted do a mesh with other offset , everytime i press Q and E it restart the position and the block with the paper mesh spin , But i want see if someone have other idea cause i hate use offset

1 answer

You could try this: Either CFrame the pages or Tweening parts, https://www.youtube.com/watch?v=qgGDwTn0zgo You can probably for the Q and E use this:

function onKeyPress(actionName, userInputState, inputObject)
	if userInputState == Enum.UserInputState.Begin then
		print("Q was pressed")
	end
end
 
game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.Q)
-- game.ContextActionService:BindAction("keyPress", onKeyPress, false, "Q")

Also, you would have to add either decals to each page with words in the decal so it is readable, or open a gui which they could read which would be totally different, or perhaps put billboard Gui's on the book

If you wanted a gui book then you would have to create a frame which should have a bunch of pages and include The Gui tweening to make the page tween and actually become a book

PS: I AM TERRIBLE AT EXPLAINING STUFF >_< I hope this at LEAST helped you :(

This discussion is preserved as it was. New answers, comments, and votes are closed.