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.
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.
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.
5 comments
Explanation: you learn how to script
Rude, I just want to know how I can make a page move :\
CFrame it, easy
But you said you wanted an explanation how to do it, right?
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