When I try to open my book here is what it says and here is my script, and I'm getting frustrated!
local book = game:GetService('Workspace').Table.Book.ClickDetector
local close = PlayerGui.Book.Close
local next1 = PlayerGui.Book.Next1
local back1 = PlayerGui.Book.Back1
book.MouseClick:Connect(function()
PlayerGui.Book.Enabled = true
end)
close.MouseButton1Click:Connect(function()
PlayerGui.Book.Enabled = false
end)
next1.MouseButton1Click:Connect(function()
PlayerGui.Book.Close.Visible = false
PlayerGui.Book.Close.Selectable = false
PlayerGui.Book.Blood.Visible = false
PlayerGui.Book.Pyro.Visible = false
PlayerGui.Book.Pain.Visible = true
back1.Visible = true
back1.Selectable = true
next1.Visible = false
next1.Selectable = false
The error says 'Players.JaytheKing452.PlayerGui.Book.BookScript:8: attempt to index global 'PlayerGui' (a nil value)'

2 comments
ill test it ourt right now
Works THANKS!