How do I make a book?

I need scripting help! I’m trying to create a journal, that you are able to click on and read. I’m a complete beginner when It comes to scripting so if anyone could explain the steps to me that would be great.

I have tried searching scripts I need help with, but they never end up working. :sweat_smile:

6 Likes

Make a tool, and then add a gui with the book in the tool. In a local script, set the GUI’s parent to the LocalPlayer’s PlayerGui. Then, once the tool is Activated, you will change the visibility of the gui to true or false. Then the rest can be handled with in-gui buttons.

2 Likes

Creating a table of values may help, as you can then check what the value is on.

This video may seem unrelated but it might actually help you.

It involves using tables with GUI’s so try applying the logic of that script and twist it to make it fit in your own code.

2 Likes

It needs to be a pop up GUI. When you press the book, the GUI should pop up and you could read it. Thats what I had any mind anyways.

1 Like

Yeah, for example paper gui with corners that you can click (transparent gui buttons) or maybe arrows to click (also transparent gui buttons on them. Really great!

2 Likes

for example, inside the tool, with a local script:

local GUI = script.Parent.GUI
GUI.Parent = game.LocalPlayer:WaitForChild("PlayerGui")
local enabled = false

script.Parent.Equipped:Connect(function()
Mouse.Button1Down:Connect(function()
if enabled == false then
enabled = true
GUI.Frame.Visible = true
else
enabled = false
GUI.Frame.Visible = false
end
end)
end)

It should be something like this.

2 Likes

Do you have anything that allows you too click a part and a GUI appears? I was thinking a clickable model/part, not a tool.

1 Like

the same thing happens, except that you use a Touched function and a remote event.

This can help you.