bonniekawaiidesu

Luna de pluton roblox <|B(

Mar 1st, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.96 KB | None | 0 0
  1. function sandbox(var,func)
  2.     local env = getfenv(func)
  3.     local newenv = setmetatable({},{
  4.         __index = function(self,k)
  5.             if k=="script" then
  6.                 return var
  7.             else
  8.                 return env[k]
  9.             end
  10.         end,
  11.     })
  12.     setfenv(func,newenv)
  13.     return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Tool0 = Instance.new("Tool")
  18. Part1 = Instance.new("Part")
  19. SpecialMesh2 = Instance.new("SpecialMesh")
  20. Sound3 = Instance.new("Sound")
  21. LocalScript4 = Instance.new("LocalScript")
  22. ScreenGui5 = Instance.new("ScreenGui")
  23. Frame6 = Instance.new("Frame")
  24. ImageButton7 = Instance.new("ImageButton")
  25. ImageLabel8 = Instance.new("ImageLabel")
  26. ImageLabel9 = Instance.new("ImageLabel")
  27. ImageLabel10 = Instance.new("ImageLabel")
  28. ImageLabel11 = Instance.new("ImageLabel")
  29. ImageLabel12 = Instance.new("ImageLabel")
  30. ImageLabel13 = Instance.new("ImageLabel")
  31. ImageLabel14 = Instance.new("ImageLabel")
  32. ImageLabel15 = Instance.new("ImageLabel")
  33. ImageLabel16 = Instance.new("ImageLabel")
  34. ImageLabel17 = Instance.new("ImageLabel")
  35. LocalScript18 = Instance.new("LocalScript")
  36. Camera19 = Instance.new("Camera")
  37. Tool0.Name = "Luna De Plut�n"
  38. Tool0.Parent = mas
  39. Tool0.TextureId = "http://www.roblox.com/asset/?id=385994271"
  40. Tool0.Grip = CFrame.new(0, 0, 0.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  41. Tool0.GripPos = Vector3.new(0, 0, 0.25)
  42. Tool0.ToolTip = "Book by Dross"
  43. Part1.Name = "Handle"
  44. Part1.Parent = Tool0
  45. Part1.CFrame = CFrame.new(9.024436, 0.500005007, -9.26102448, 1, 6.96331881e-13, 7.7143186e-06, 6.27509552e-20, 1, -9.12696123e-08, -7.7143186e-06, 9.12696123e-08, 1)
  46. Part1.Position = Vector3.new(9.024436, 0.500005007, -9.26102448)
  47. Part1.Size = Vector3.new(0.869999826, 1, 0.819999754)
  48. Part1.BottomSurface = Enum.SurfaceType.Smooth
  49. Part1.TopSurface = Enum.SurfaceType.Smooth
  50. Part1.FormFactor = Enum.FormFactor.Custom
  51. Part1.formFactor = Enum.FormFactor.Custom
  52. SpecialMesh2.Parent = Part1
  53. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=124477699"
  54. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=386001591"
  55. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  56. Sound3.Name = "Dross 100% real no fake"
  57. Sound3.Parent = Part1
  58. Sound3.SoundId = "rbxassetid://340870910"
  59. LocalScript4.Parent = Tool0
  60. table.insert(cors,sandbox(LocalScript4,function()
  61. --Made by Luckymaxer
  62.  
  63. Tool = script.Parent
  64. Handle = Tool:WaitForChild("Handle")
  65.  
  66. Players = game:GetService("Players")
  67. Debris = game:GetService("Debris")
  68. InsertService = game:GetService("InsertService")
  69.  
  70. BookGui = script:WaitForChild("BookGui")
  71.  
  72. ToolEquipped = false
  73.  
  74. function CheckIfAlive()
  75.     return (((Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Player and Player.Parent) and true) or false)
  76. end
  77.  
  78. function Activated()
  79.     if not CheckIfAlive() then
  80.         return
  81.     end
  82.     if BookGuiCopy and BookGuiCopy.Parent then
  83.         return
  84.     end
  85.     local PlayerGui = Player:FindFirstChild("PlayerGui")
  86.     if PlayerGui then
  87.         BookGuiCopy = BookGui:Clone()
  88.         BookGuiCopy.Parent = PlayerGui
  89.     end
  90. end
  91.  
  92. function Equipped(Mouse)
  93.     Character = Tool.Parent
  94.     Player = Players:GetPlayerFromCharacter(Character)
  95.     Humanoid = Character:FindFirstChild("Humanoid")
  96.     ToolEquipped = true
  97.     if not CheckIfAlive() then
  98.         return
  99.     end
  100. end
  101.  
  102. function Unequipped()
  103.     if BookGuiCopy and BookGuiCopy.Parent then
  104.         Debris:AddItem(BookGuiCopy, 0)
  105.     end
  106.     ToolEquipped = false
  107. end
  108.  
  109. Tool.Activated:connect(Activated)
  110. Tool.Equipped:connect(Equipped)
  111. Tool.Unequipped:connect(Unequipped)
  112. end))
  113. ScreenGui5.Name = "BookGui"
  114. ScreenGui5.Parent = LocalScript4
  115. Frame6.Parent = ScreenGui5
  116. Frame6.Position = UDim2.new(0.5, -245, 0.5, -340)
  117. Frame6.Size = UDim2.new(0, 480, 0, 720)
  118. Frame6.BackgroundTransparency = 1
  119. ImageButton7.Name = "Next"
  120. ImageButton7.Parent = Frame6
  121. ImageButton7.Position = UDim2.new(1, -65, 0, 0)
  122. ImageButton7.Size = UDim2.new(0, 65, 0, 63)
  123. ImageButton7.BackgroundTransparency = 1
  124. ImageButton7.ZIndex = 10
  125. ImageButton7.Image = "http://www.roblox.com/asset/?id=82270576"
  126. ImageLabel8.Name = "9"
  127. ImageLabel8.Parent = Frame6
  128. ImageLabel8.Visible = false
  129. ImageLabel8.Size = UDim2.new(0, 480, 0, 720)
  130. ImageLabel8.BackgroundTransparency = 1
  131. ImageLabel8.Image = "http://www.roblox.com/asset/?id=385996142  "
  132. ImageLabel9.Name = "8"
  133. ImageLabel9.Parent = Frame6
  134. ImageLabel9.Visible = false
  135. ImageLabel9.Size = UDim2.new(0, 480, 0, 720)
  136. ImageLabel9.BackgroundTransparency = 1
  137. ImageLabel9.Image = "http://www.roblox.com/asset/?id=385995851  "
  138. ImageLabel10.Name = "7"
  139. ImageLabel10.Parent = Frame6
  140. ImageLabel10.Visible = false
  141. ImageLabel10.Size = UDim2.new(0, 480, 0, 720)
  142. ImageLabel10.BackgroundTransparency = 1
  143. ImageLabel10.Image = "http://www.roblox.com/asset/?id=385995710 "
  144. ImageLabel11.Name = "6"
  145. ImageLabel11.Parent = Frame6
  146. ImageLabel11.Visible = false
  147. ImageLabel11.Size = UDim2.new(0, 480, 0, 720)
  148. ImageLabel11.BackgroundTransparency = 1
  149. ImageLabel11.Image = "http://www.roblox.com/asset/?id=385995383"
  150. ImageLabel12.Name = "5"
  151. ImageLabel12.Parent = Frame6
  152. ImageLabel12.Visible = false
  153. ImageLabel12.Size = UDim2.new(0, 480, 0, 720)
  154. ImageLabel12.BackgroundTransparency = 1
  155. ImageLabel12.Image = "http://www.roblox.com/asset/?id=385995164"
  156. ImageLabel13.Name = "4"
  157. ImageLabel13.Parent = Frame6
  158. ImageLabel13.Visible = false
  159. ImageLabel13.Size = UDim2.new(0, 480, 0, 720)
  160. ImageLabel13.BackgroundTransparency = 1
  161. ImageLabel13.Image = "http://www.roblox.com/asset/?id=385995024"
  162. ImageLabel14.Name = "3"
  163. ImageLabel14.Parent = Frame6
  164. ImageLabel14.Visible = false
  165. ImageLabel14.Size = UDim2.new(0, 480, 0, 720)
  166. ImageLabel14.BackgroundTransparency = 1
  167. ImageLabel14.Image = "http://www.roblox.com/asset/?id=385994708"
  168. ImageLabel15.Name = "2"
  169. ImageLabel15.Parent = Frame6
  170. ImageLabel15.Visible = false
  171. ImageLabel15.Size = UDim2.new(0, 480, 0, 720)
  172. ImageLabel15.BackgroundTransparency = 1
  173. ImageLabel15.Image = "http://www.roblox.com/asset/?id=385994538"
  174. ImageLabel16.Name = "1"
  175. ImageLabel16.Parent = Frame6
  176. ImageLabel16.Size = UDim2.new(0, 480, 0, 720)
  177. ImageLabel16.BackgroundTransparency = 1
  178. ImageLabel16.ZIndex = 9
  179. ImageLabel16.Image = "http://www.roblox.com/asset/?id=385994271"
  180. ImageLabel17.Name = "10"
  181. ImageLabel17.Parent = Frame6
  182. ImageLabel17.Visible = false
  183. ImageLabel17.Size = UDim2.new(0, 480, 0, 720)
  184. ImageLabel17.BackgroundTransparency = 1
  185. ImageLabel17.Image = "http://www.roblox.com/asset/?id=385996289"
  186. LocalScript18.Parent = ScreenGui5
  187. table.insert(cors,sandbox(LocalScript18,function()
  188. --Made by Dross
  189.  
  190. ContentProvider = game:GetService("ContentProvider")
  191.  
  192. Gui = script.Parent
  193. Frame = Gui:WaitForChild("Frame")
  194. Next = Frame:WaitForChild("Next")
  195.  
  196. Pages = {}
  197.  
  198. CurrentPage = 1
  199.  
  200. for i, v in pairs(Frame:GetChildren()) do
  201.     if ((v:IsA("ImageButton") or v:IsA("ImageLabel")) and tonumber(v.Name)) then
  202.         table.insert(Pages, v)
  203.         ContentProvider:Preload(v.Image)
  204.         v.Visible = false
  205.     end
  206. end
  207.  
  208. table.sort(Pages, (function(a, b)
  209.     return tonumber(a.Name) < tonumber(b.Name)
  210. end))
  211.  
  212. if Pages[1] then
  213.     Pages[1].Visible = true
  214. end
  215.  
  216. Next.MouseButton1Click:connect(function()
  217.     if not Pages[1] then
  218.         return
  219.     end
  220.     CurrentPage = (CurrentPage + 1)
  221.     if not Pages[CurrentPage] then
  222.         CurrentPage = 1
  223.     end
  224.     for ii, vv in pairs(Pages) do
  225.         if ii == CurrentPage then
  226.             vv.Visible = true
  227.         else
  228.             vv.Visible = false
  229.         end
  230.     end
  231. end)
  232. end))
  233. Camera19.Name = "ThumbnailCamera"
  234. Camera19.Parent = Tool0
  235. Camera19.CFrame = CFrame.new(-93.4011688, 1.06647539, 92.4933701, 0.368154377, 0.526704013, -0.76618886, -0, 0.824067593, 0.566491723, 0.929764748, -0.208556414, 0.303384036)
  236. Camera19.CoordinateFrame = CFrame.new(-93.4011688, 1.06647539, 92.4933701, 0.368154377, 0.526704013, -0.76618886, -0, 0.824067593, 0.566491723, 0.929764748, -0.208556414, 0.303384036)
  237. Camera19.Focus = CFrame.new(-92.6350021, 0.50000006, 92.1899948, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  238. Camera19.focus = CFrame.new(-92.6350021, 0.50000006, 92.1899948, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  239. for i,v in pairs(mas:GetChildren()) do
  240.     v.Parent = script
  241.     pcall(function() v:MakeJoints() end)
  242. end
  243. mas:Destroy()
  244. for i,v in pairs(cors) do
  245.     spawn(function()
  246.         pcall(v)
  247.     end)
  248. end
Advertisement
Add Comment
Please, Sign In to add comment