Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bookdata = {
- ['pages'] = {
- ['1'] = {
- ['desc'] = [[
- Creeper,
- Aw man!
- ]],
- },
- ['2'] = {
- ['desc'] = [[
- So we back in the mine
- Got our pickaxe swinging from side to side
- Side-side to side
- This task, a grueling one
- Hope to find some diamonds tonight, night, night
- Diamonds tonight
- ]],
- },
- ['3'] = {
- ['desc'] = [[
- Heads up
- You hear a sound, turn around and look up
- Total shock fills your body
- Oh, no, it's you again
- I can never forget those eyes, eyes, eyes
- Eyes-eye-eyes
- ]],
- },
- ['4'] = {
- ['desc'] = [[
- 'Cause, baby, tonight
- The creeper's tryna steal all our stuff again
- 'Cause, baby, tonight
- You grab your pick, shovel, and bolt again (Bolt again-gain)
- And run, run until it's done, done
- Until the sun comes up in the morn'
- 'Cause, baby, tonight
- The creeper's tryna steal all our stuff again (Stuff again-gain)
- ]],
- },
- ['5'] = {
- ['desc'] = [[
- Just when you think you're safe
- Overhear some hissing from right behind
- Right-right behind
- That's a nice life you have
- Shame it's gotta end at this time, time, time
- Time-time-time-time
- ]]
- },
- ['6'] = {
- ['desc'] = [[
- Blows up
- Then your health bar drops and you could use a one-up
- Get inside, don't be tardy
- So, now you're stuck in there
- Half a heart is left, but don't die, die, die
- Die-die-die
- ]]
- },
- ['7'] = {
- ['desc'] = [[
- 'Cause, baby, tonight
- The creeper's tryna steal all our stuff again
- 'Cause, baby, tonight
- You grab your pick, shovel, and bolt again (Bolt again-gain)
- And run, run until it's done, done
- Until the sun comes up in the morn'
- 'Cause, baby, tonight
- The creeper's tryna steal all our stuff again
- ]]
- },
- ['8'] = {
- ['desc'] = [[
- (Creepers, you're mine, haha)
- Dig up diamonds and craft those diamonds
- And make some armor, get it, baby
- Go and forge that like you so MLG pro
- The sword's made of diamonds, so come at me, bro, huh
- Training in your room under the torchlight
- Hone that form to get you ready for the big fight
- Every single day and the whole night
- Creeper's out prowlin', hoo, alright
- Look at me, look at you
- Take my revenge, that's what I'm gonna do
- I'm a warrior, baby, what else is new?
- And my blade's gonna tear through you, bring it
- ]]
- },
- ['9'] = {
- ['desc'] = [[
- 'Cause, baby, tonight
- The creeper's tryna steal all our stuff again
- (Gather your stuff, yeah, let's take back the world)
- Yeah, baby, tonight (Haha)
- Grab your sword, armor and go (It's on)
- Take your revenge (Woo), oh-oh, oh-oh
- So fight, fight, like it's the last, last night
- Of your life, life, show them your bite (Woo)
- ]]
- },
- ['10'] = {
- ['desc'] = [[
- - Book script made by AlmightyToast
- ]]
- },
- }
- }
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
- tool = Instance.new("Tool")
- book = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- tool.Name = "Book"
- tool.Parent = nil
- tool.ToolTip = 'makes you wiser than ever!'
- book.Name = "Handle"
- book.Parent = tool
- book.CFrame = CFrame.new(-13.1719999, 2.09956455, 5.24839497, 6.2584877e-07, 2.63005495e-06, 0.999993324, -5.36441803e-07, 0.999998331, -8.41915607e-07, -0.999998868, -5.06639481e-07, 1.19954348e-06)
- book.Position = Vector3.new(-13.1719999, 2.09956455, 5.24839497)
- book.Rotation = Vector3.new(60, 120, -76.6100006)
- book.Transparency = 1
- book.Size = Vector3.new(0.108625151, 0.108625151, 0.108625151)
- book.Anchored = true
- book.CanCollide = false
- book.Locked = true
- book.FormFactor = Enum.FormFactor.Custom
- book.formFactor = Enum.FormFactor.Custom
- Part2.Name = "Part5"
- Part2.Parent = tool
- Part2.CFrame = CFrame.new(-13.7622576, 2.30439925, 5.25151014, -0.965916216, -0.25881958, -5.22307346e-07, 0.258819044, -0.965923488, 4.99910243e-07, -1.40120244e-06, 2.10539554e-07, 0.999998331)
- Part2.Orientation = Vector3.new(0, 0, 165)
- Part2.Position = Vector3.new(-13.7622576, 2.30439925, 5.25151014)
- Part2.Rotation = Vector3.new(0, 0, 165)
- Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part2.Size = Vector3.new(1.34695184, 0.108625151, 0.217250243)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Really black")
- Part2.CanCollide = false
- Part2.Locked = true
- Part2.Material = Enum.Material.SmoothPlastic
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Really black")
- Part2.FormFactor = Enum.FormFactor.Custom
- Part2.formFactor = Enum.FormFactor.Custom
- Part3.Name = "Part1"
- Part3.Parent = tool
- Part3.CFrame = CFrame.new(-13.7153044, 2.50101781, 4.78722715, -0.965916455, -0.235397115, -0.107590772, 0.258819044, -0.878511131, -0.401530236, -1.37912787e-06, -0.41569525, 0.909502149)
- Part3.Orientation = Vector3.new(23.6700001, -6.75, 163.580002)
- Part3.Position = Vector3.new(-13.7153044, 2.50101781, 4.78722715)
- Part3.Rotation = Vector3.new(23.8199997, -6.17999983, 166.300003)
- Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part3.Size = Vector3.new(1.3252275, 0.108625151, 0.983057618)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really black")
- Part3.CanCollide = false
- Part3.Locked = true
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really black")
- Part3.FormFactor = Enum.FormFactor.Custom
- Part3.formFactor = Enum.FormFactor.Custom
- Part4.Name = "Part2"
- Part4.Parent = tool
- Part4.CFrame = CFrame.new(-13.7048597, 2.49804521, 5.7262578, 0.965925097, -0.235399812, -0.107589893, -0.258821666, -0.878512025, -0.401532084, 1.56551744e-06, 0.415696561, -0.9095034)
- Part4.Orientation = Vector3.new(23.6700001, -173.25, -163.580002)
- Part4.Position = Vector3.new(-13.7048597, 2.49804521, 5.7262578)
- Part4.Rotation = Vector3.new(156.179993, -6.17999983, 13.6999998)
- Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part4.Size = Vector3.new(1.3252275, 0.108625151, 0.983057618)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Really black")
- Part4.CanCollide = false
- Part4.Locked = true
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Really black")
- Part4.FormFactor = Enum.FormFactor.Custom
- Part4.formFactor = Enum.FormFactor.Custom
- Part5.Name = "Part3"
- Part5.Parent = tool
- Part5.CFrame = CFrame.new(-13.6972809, 2.56853485, 4.84714222, -0.965918183, -0.23539257, -0.107585192, 0.258812577, -0.878511608, -0.401533484, 2.40758618e-06, -0.415696919, 0.909501374)
- Part5.Orientation = Vector3.new(23.6700001, -6.75, 163.580002)
- Part5.Position = Vector3.new(-13.6972809, 2.56853485, 4.84714222)
- Part5.Rotation = Vector3.new(23.8199997, -6.17999983, 166.300003)
- Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part5.Size = Vector3.new(1.28177738, 0.0869001225, 0.939607441)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Institutional white")
- Part5.CanCollide = false
- Part5.Locked = true
- Part5.Material = Enum.Material.SmoothPlastic
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Institutional white")
- Part5.FormFactor = Enum.FormFactor.Custom
- Part5.formFactor = Enum.FormFactor.Custom
- Part6.Name = "Part4"
- Part6.Parent = tool
- Part6.CFrame = CFrame.new(-13.6974564, 2.56735682, 5.66411972, 0.965925157, -0.235399514, -0.107590035, -0.258821458, -0.878511846, -0.40153265, 1.48187451e-06, 0.415697128, -0.909503162)
- Part6.Orientation = Vector3.new(23.6700001, -173.25, -163.580002)
- Part6.Position = Vector3.new(-13.6974564, 2.56735682, 5.66411972)
- Part6.Rotation = Vector3.new(156.179993, -6.17999983, 13.6999998)
- Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part6.Size = Vector3.new(1.28177738, 0.0869000927, 0.945038676)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Institutional white")
- Part6.CanCollide = false
- Part6.Locked = true
- Part6.Material = Enum.Material.SmoothPlastic
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Institutional white")
- Part6.FormFactor = Enum.FormFactor.Custom
- Part6.formFactor = Enum.FormFactor.Custom
- ScreenGui0 = Instance.new("ScreenGui")
- Frame1 = Instance.new("Frame")
- TextLabel2 = Instance.new("TextBox")
- ImageLabel3 = Instance.new("ImageLabel")
- TextButton4 = Instance.new("TextButton")
- ImageLabel5 = Instance.new("ImageLabel")
- TextButton6 = Instance.new("TextButton")
- ImageLabel7 = Instance.new("ImageLabel")
- TextLabel8 = Instance.new("TextBox")
- ImageLabel9 = Instance.new("ImageLabel")
- ScreenGui0.Parent = nil
- Frame1.Parent = ScreenGui0
- Frame1.Position = UDim2.new(0.321320087, 0, 0.104199089, 0)
- Frame1.Size = UDim2.new(0.357237846, 0, 0.790824234, 0)
- Frame1.BackgroundColor = BrickColor.new("Institutional white")
- Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame1.BackgroundTransparency = 1
- Frame1.BorderSizePixel = 0
- TextLabel2.Name = "page"
- TextLabel2.Parent = Frame1
- TextLabel2.Position = UDim2.new(0.0299706142, 0, 0.941986382, 0)
- TextLabel2.Size = UDim2.new(0.941077292, 0, 0.0577489771, 0)
- TextLabel2.BackgroundColor = BrickColor.new("Dark grey metallic")
- TextLabel2.BackgroundColor3 = Color3.new(0.329412, 0.329412, 0.329412)
- TextLabel2.BackgroundTransparency = 1
- TextLabel2.BorderSizePixel = 0
- TextLabel2.ZIndex = 4
- TextLabel2.Font = Enum.Font.SourceSans
- TextLabel2.FontSize = Enum.FontSize.Size14
- TextLabel2.Text = "Page: I"
- TextLabel2.TextColor = BrickColor.new("Institutional white")
- TextLabel2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel2.TextScaled = true
- TextLabel2.TextSize = 14
- TextLabel2.TextStrokeTransparency = 0
- TextLabel2.TextWrap = true
- TextLabel2.TextWrapped = true
- ImageLabel3.Name = "page_Roundify_12px"
- ImageLabel3.Parent = TextLabel2
- ImageLabel3.Position = UDim2.new(0.5, 0, 0.5, 0)
- ImageLabel3.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel3.AnchorPoint = Vector2.new(0.5, 0.5)
- ImageLabel3.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel3.BackgroundTransparency = 1
- ImageLabel3.ZIndex = 3
- ImageLabel3.Image = "rbxassetid://3570695787"
- ImageLabel3.ImageColor3 = Color3.new(0.329412, 0.329412, 0.329412)
- ImageLabel3.ScaleType = Enum.ScaleType.Slice
- ImageLabel3.SliceCenter = Rect.new(100, 100, 100, 100)
- TextButton4.Name = "backward"
- TextButton4.Parent = Frame1
- TextButton4.Position = UDim2.new(0, 0, 0.941986382, 0)
- TextButton4.Size = UDim2.new(0.0799216405, 0, 0.0577489771, 0)
- TextButton4.BackgroundColor = BrickColor.new("Really black")
- TextButton4.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton4.BackgroundTransparency = 1
- TextButton4.BorderColor = BrickColor.new("Really black")
- TextButton4.BorderColor3 = Color3.new(0, 0, 0)
- TextButton4.BorderSizePixel = 0
- TextButton4.ZIndex = 4
- TextButton4.Font = Enum.Font.SourceSans
- TextButton4.FontSize = Enum.FontSize.Size14
- TextButton4.Text = "<"
- TextButton4.TextColor = BrickColor.new("Institutional white")
- TextButton4.TextColor3 = Color3.new(1, 1, 1)
- TextButton4.TextScaled = true
- TextButton4.TextSize = 14
- TextButton4.TextStrokeTransparency = 0
- TextButton4.TextWrap = true
- TextButton4.TextWrapped = true
- ImageLabel5.Name = "backward_Roundify_12px"
- ImageLabel5.Parent = TextButton4
- ImageLabel5.Position = UDim2.new(0.5, 0, 0.5, 0)
- ImageLabel5.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel5.Active = true
- ImageLabel5.AnchorPoint = Vector2.new(0.5, 0.5)
- ImageLabel5.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel5.BackgroundTransparency = 1
- ImageLabel5.Selectable = true
- ImageLabel5.ZIndex = 3
- ImageLabel5.Image = "rbxassetid://3570695787"
- ImageLabel5.ImageColor3 = Color3.new(0, 0, 0)
- ImageLabel5.ScaleType = Enum.ScaleType.Slice
- ImageLabel5.SliceCenter = Rect.new(100, 100, 100, 100)
- TextButton6.Name = "forward"
- TextButton6.Parent = Frame1
- TextButton6.Position = UDim2.new(0.917100787, 0, 0.941986382, 0)
- TextButton6.Size = UDim2.new(0.0819196776, 0, 0.0577489771, 0)
- TextButton6.BackgroundColor = BrickColor.new("Really black")
- TextButton6.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton6.BackgroundTransparency = 1
- TextButton6.BorderColor = BrickColor.new("Really black")
- TextButton6.BorderColor3 = Color3.new(0, 0, 0)
- TextButton6.BorderSizePixel = 0
- TextButton6.ZIndex = 4
- TextButton6.Font = Enum.Font.SourceSans
- TextButton6.FontSize = Enum.FontSize.Size14
- TextButton6.Text = ">"
- TextButton6.TextColor = BrickColor.new("Institutional white")
- TextButton6.TextColor3 = Color3.new(1, 1, 1)
- TextButton6.TextScaled = true
- TextButton6.TextSize = 14
- TextButton6.TextStrokeTransparency = 0
- TextButton6.TextWrap = true
- TextButton6.TextWrapped = true
- ImageLabel7.Name = "forward_Roundify_12px"
- ImageLabel7.Parent = TextButton6
- ImageLabel7.Position = UDim2.new(0.5, 0, 0.5, 0)
- ImageLabel7.Size = UDim2.new(1, 0, 1, 0)
- ImageLabel7.Active = true
- ImageLabel7.AnchorPoint = Vector2.new(0.5, 0.5)
- ImageLabel7.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel7.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel7.BackgroundTransparency = 1
- ImageLabel7.Selectable = true
- ImageLabel7.ZIndex = 3
- ImageLabel7.Image = "rbxassetid://3570695787"
- ImageLabel7.ImageColor3 = Color3.new(0, 0, 0)
- ImageLabel7.ScaleType = Enum.ScaleType.Slice
- ImageLabel7.SliceCenter = Rect.new(100, 100, 100, 100)
- TextLabel8.Name = "desc"
- TextLabel8.Parent = Frame1
- TextLabel8.Position = UDim2.new(0, 0, 6.07709936e-08, 0)
- TextLabel8.Size = UDim2.new(1, 0, 0.941986322, 0)
- TextLabel8.BackgroundColor = BrickColor.new("Black")
- TextLabel8.BackgroundColor3 = Color3.new(0.141176, 0.141176, 0.141176)
- TextLabel8.BorderSizePixel = 0
- TextLabel8.ZIndex = 3
- TextLabel8.Font = Enum.Font.SourceSans
- TextLabel8.FontSize = Enum.FontSize.Size24
- TextLabel8.Text = ""
- TextLabel8.TextColor = BrickColor.new("Institutional white")
- TextLabel8.TextColor3 = Color3.new(1, 1, 1)
- TextLabel8.TextSize = 20
- TextLabel8.TextStrokeTransparency = 0
- TextLabel8.TextWrap = true
- TextLabel8.TextWrapped = true
- ImageLabel9.Name = "Frame"
- ImageLabel9.Parent = Frame1
- ImageLabel9.Position = UDim2.new(0, 0, 0.898176789, 0)
- ImageLabel9.Size = UDim2.new(1, 0, 0.100000001, 0)
- ImageLabel9.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel9.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel9.BackgroundTransparency = 1
- ImageLabel9.ZIndex = 2
- ImageLabel9.Image = "rbxassetid://3570695787"
- ImageLabel9.ImageColor3 = Color3.new(0.141176, 0.141176, 0.141176)
- ImageLabel9.ScaleType = Enum.ScaleType.Slice
- ImageLabel9.SliceCenter = Rect.new(100, 100, 100, 100)
- local System = {}
- local currentpage,maxpage,equipped = 1,0,false
- local pagetxt,desctxt,forward,backward
- for i,v in pairs(ScreenGui0:GetDescendants()) do
- if v.Name == 'backward' then
- backward = v
- elseif v.Name == 'forward' then
- forward = v
- elseif v.Name == 'desc' then
- desctxt = v
- elseif v.Name == 'page' then
- pagetxt = v
- end
- end
- for i,v in pairs(bookdata.pages) do
- maxpage = maxpage+1
- end
- warn("Total pages: " .. maxpage)
- local flip = Instance.new("Sound",book)
- flip.SoundId = "rbxassetid://138723647"
- flip.Volume = 1
- function System:ConvertNumeral(num)
- local UseText = ""
- local StoredScore = num
- local Thousand = false
- for i = 1,StoredScore / 1000 do
- Thousand = true
- StoredScore = StoredScore - 1000
- UseText = UseText.." TH"
- end
- if Thousand then
- UseText = UseText..[[
- ]]
- end
- local Hundred = false
- for i = 1,StoredScore / 100 do
- Hundred = true
- StoredScore = StoredScore - 100
- UseText = UseText.." H"
- end
- if Hundred then
- UseText = UseText..[[
- ]]
- end
- local Ten = false
- for i = 1,StoredScore / 10 do
- Ten = true
- StoredScore = StoredScore - 10
- UseText = UseText.." T"
- end
- if Ten then
- UseText = UseText..[[
- ]]
- end
- local Five = false
- for i = 1,StoredScore / 5 do
- Five = true
- StoredScore = StoredScore - 5
- UseText = UseText.." V"
- end
- if Five then
- UseText = UseText..[[
- ]]
- end
- for i = 1,StoredScore do
- StoredScore = StoredScore - 1
- UseText = UseText.." I"
- end
- UseText = UseText.." "
- return UseText
- end
- function System:TurnPage(mode)
- pcall(function()
- if mode == 1 then
- if maxpage > currentpage then currentpage = currentpage+1 else return end
- flip:Play()
- elseif mode == 2 then
- if currentpage > 1 then currentpage = currentpage-1 else return end
- flip:Play()
- else return end
- end)
- end
- function System:LoadPage()
- local page = bookdata.pages[tostring(currentpage)]
- pagetxt.PlaceholderText = "Page: " .. System:ConvertNumeral(currentpage)
- pagetxt.Text = "Page: " .. System:ConvertNumeral(currentpage)
- desctxt.PlaceholderText = page['desc']
- desctxt.Text = page['desc']
- end
- for _,v in pairs(tool:GetChildren()) do
- if v ~= book and v:IsA("BasePart") then
- local weld = Instance.new("Weld")
- weld.Part0 = book
- weld.Part1 = v
- weld.C0 = book.CFrame:Inverse()
- weld.C1 = v.CFrame:Inverse()
- v.Anchored = false
- v.CanCollide = false
- v.Massless = true
- weld.Parent = v
- end
- end
- book.Anchored = false
- book.CanCollide = true
- book.Massless = true
- tool.Parent = plr['Backpack']
- tool.ToolTip = 'Makes you wiser than ever!'
- System:LoadPage()
- forward.MouseButton1Click:Connect(function()
- pcall(function()
- System:TurnPage(1)
- System:LoadPage()
- end)
- end)
- backward.MouseButton1Click:Connect(function()
- pcall(function()
- System:TurnPage(2)
- System:LoadPage()
- end)
- end)
- function CheckIfAlive()
- return (((plr and plr.Parent and char and char.Parent and hum and hum.Parent and hum.Health > 0 and torso and torso.Parent) and true) or false)
- end
- function Equipped()
- char = tool.Parent
- plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- hum = char:FindFirstChildOfClass("Humanoid")
- torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
- ScreenGui0.Parent = plr['PlayerGui']
- System:LoadPage()
- if not CheckIfAlive() then tool.Parent = nil return end
- equipped = true
- end
- function Unequipped()
- ScreenGui0.Parent = nil
- equipped = false
- end
- tool.Equipped:Connect(Equipped)
- tool.Unequipped:Connect(Unequipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement