firebudgy

Untitled

May 1st, 2018
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.23 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. LocalScript1 = Instance.new("LocalScript")
  21. LocalScript2 = Instance.new("LocalScript")
  22. Part3 = Instance.new("Part")
  23. Part4 = Instance.new("Part")
  24. CylinderMesh5 = Instance.new("CylinderMesh")
  25. Part6 = Instance.new("Part")
  26. CylinderMesh7 = Instance.new("CylinderMesh")
  27. Part8 = Instance.new("Part")
  28. CylinderMesh9 = Instance.new("CylinderMesh")
  29. Part10 = Instance.new("Part")
  30. SpecialMesh11 = Instance.new("SpecialMesh")
  31. Part12 = Instance.new("Part")
  32. SpotLight13 = Instance.new("SpotLight")
  33. Tool0.Name = "Utility Light"
  34. Tool0.Parent = mas
  35. Tool0.ToolTip = "The Utility Light is a light that is held in a different way, but creates the same amount of light as any flashlight. It lets out a white light at an average radius."
  36. LocalScript1.Name = "BackupWeld"
  37. LocalScript1.Parent = Tool0
  38. table.insert(cors,sandbox(LocalScript1,function()
  39. function Weld(x,y)
  40. local W = Instance.new("Weld")
  41. W.Part0 = x
  42. W.Part1 = y
  43. local CJ = CFrame.new(x.Position)
  44. local C0 = x.CFrame:inverse()*CJ
  45. local C1 = y.CFrame:inverse()*CJ
  46. W.C0 = C0
  47. W.C1 = C1
  48. W.Parent = x
  49. end
  50.  
  51. function Get(A)
  52. if A.className == "Part" then
  53. Weld(script.Parent.Handle, A)
  54. A.Anchored = false
  55. else
  56. local C = A:GetChildren()
  57. for i=1, #C do
  58. Get(C[i])
  59. end
  60. end
  61. end
  62.  
  63. function Finale()
  64. Get(script.Parent)
  65. end
  66.  
  67. script.Parent.Equipped:connect(Finale)
  68. script.Parent.Unequipped:connect(Finale)
  69. Finale()
  70. end))
  71. LocalScript2.Name = "BackupWeld"
  72. LocalScript2.Parent = Tool0
  73. table.insert(cors,sandbox(LocalScript2,function()
  74. function Weld(x,y)
  75. local W = Instance.new("Weld")
  76. W.Part0 = x
  77. W.Part1 = y
  78. local CJ = CFrame.new(x.Position)
  79. local C0 = x.CFrame:inverse()*CJ
  80. local C1 = y.CFrame:inverse()*CJ
  81. W.C0 = C0
  82. W.C1 = C1
  83. W.Parent = x
  84. end
  85.  
  86. function Get(A)
  87. if A.className == "Part" then
  88. Weld(script.Parent.Handle, A)
  89. A.Anchored = false
  90. else
  91. local C = A:GetChildren()
  92. for i=1, #C do
  93. Get(C[i])
  94. end
  95. end
  96. end
  97.  
  98. function Finale()
  99. Get(script.Parent)
  100. end
  101.  
  102. script.Parent.Equipped:connect(Finale)
  103. script.Parent.Unequipped:connect(Finale)
  104. Finale()
  105. end))
  106. Part3.Name = "Handle"
  107. Part3.Parent = Tool0
  108. Part3.Transparency = 1
  109. Part3.Anchored = true
  110. Part3.FormFactor = Enum.FormFactor.Custom
  111. Part3.Size = Vector3.new(0.5, 0.5, 0.5)
  112. Part3.CFrame = CFrame.new(-4.24999809, 0.750009, 2.20000505, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  113. Part3.BackSurface = Enum.SurfaceType.Weld
  114. Part3.BottomSurface = Enum.SurfaceType.Weld
  115. Part3.FrontSurface = Enum.SurfaceType.Weld
  116. Part3.LeftSurface = Enum.SurfaceType.Weld
  117. Part3.RightSurface = Enum.SurfaceType.Weld
  118. Part3.TopSurface = Enum.SurfaceType.Weld
  119. Part3.Position = Vector3.new(-4.24999809, 0.750009, 2.20000505)
  120. Part4.Name = "Light"
  121. Part4.Parent = Tool0
  122. Part4.BrickColor = BrickColor.new("Institutional white")
  123. Part4.Rotation = Vector3.new(90, 90, 0)
  124. Part4.Anchored = true
  125. Part4.FormFactor = Enum.FormFactor.Custom
  126. Part4.Size = Vector3.new(0.400000006, 0.200000003, 0.400000006)
  127. Part4.CFrame = CFrame.new(-4.25999784, 1.50000596, 1.789994, -4.37113883e-08, 0, 1, 1, -1.62920685e-07, 4.37113883e-08, 1.62920685e-07, 1, 7.12148964e-15)
  128. Part4.BackSurface = Enum.SurfaceType.Weld
  129. Part4.BottomSurface = Enum.SurfaceType.Weld
  130. Part4.FrontSurface = Enum.SurfaceType.Weld
  131. Part4.LeftSurface = Enum.SurfaceType.Weld
  132. Part4.RightSurface = Enum.SurfaceType.Weld
  133. Part4.TopSurface = Enum.SurfaceType.Weld
  134. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  135. Part4.Position = Vector3.new(-4.25999784, 1.50000596, 1.789994)
  136. Part4.Orientation = Vector3.new(0, 90, 90)
  137. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  138. CylinderMesh5.Parent = Part4
  139. Part6.Parent = Tool0
  140. Part6.BrickColor = BrickColor.new("Black")
  141. Part6.Anchored = true
  142. Part6.FormFactor = Enum.FormFactor.Custom
  143. Part6.Size = Vector3.new(0.5, 1.5, 0.5)
  144. Part6.CFrame = CFrame.new(-4.24999809, 0.750009, 2.20000505, 1, 0, 0, 0, 1, -1.33158053e-07, 0, 1.33158053e-07, 1)
  145. Part6.BackSurface = Enum.SurfaceType.Weld
  146. Part6.BottomSurface = Enum.SurfaceType.Weld
  147. Part6.FrontSurface = Enum.SurfaceType.Weld
  148. Part6.LeftSurface = Enum.SurfaceType.Weld
  149. Part6.RightSurface = Enum.SurfaceType.Weld
  150. Part6.TopSurface = Enum.SurfaceType.Weld
  151. Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
  152. Part6.Position = Vector3.new(-4.24999809, 0.750009, 2.20000505)
  153. Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
  154. CylinderMesh7.Parent = Part6
  155. Part8.Parent = Tool0
  156. Part8.BrickColor = BrickColor.new("Black")
  157. Part8.Rotation = Vector3.new(90, -90, 0)
  158. Part8.Anchored = true
  159. Part8.FormFactor = Enum.FormFactor.Custom
  160. Part8.Size = Vector3.new(0.5, 0.5, 0.5)
  161. Part8.CFrame = CFrame.new(-4.24999809, 1.50000596, 1.95000601, -4.37113883e-08, 0, -1, -1, -1.62920685e-07, 4.37113883e-08, -1.62920685e-07, 1, 7.12148964e-15)
  162. Part8.BackSurface = Enum.SurfaceType.Weld
  163. Part8.BottomSurface = Enum.SurfaceType.Weld
  164. Part8.FrontSurface = Enum.SurfaceType.Weld
  165. Part8.LeftSurface = Enum.SurfaceType.Weld
  166. Part8.RightSurface = Enum.SurfaceType.Weld
  167. Part8.TopSurface = Enum.SurfaceType.Weld
  168. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  169. Part8.Position = Vector3.new(-4.24999809, 1.50000596, 1.95000601)
  170. Part8.Orientation = Vector3.new(0, -90, -90)
  171. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  172. CylinderMesh9.Parent = Part8
  173. Part10.Parent = Tool0
  174. Part10.BrickColor = BrickColor.new("Black")
  175. Part10.Anchored = true
  176. Part10.FormFactor = Enum.FormFactor.Custom
  177. Part10.Size = Vector3.new(0.5, 0.5, 0.5)
  178. Part10.CFrame = CFrame.new(-4.24999809, 1.50000596, 2.20000505, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  179. Part10.BottomSurface = Enum.SurfaceType.Smooth
  180. Part10.TopSurface = Enum.SurfaceType.Smooth
  181. Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
  182. Part10.Position = Vector3.new(-4.24999809, 1.50000596, 2.20000505)
  183. Part10.Color = Color3.new(0.105882, 0.164706, 0.207843)
  184. SpecialMesh11.Parent = Part10
  185. SpecialMesh11.MeshType = Enum.MeshType.Sphere
  186. Part12.Name = "Light Emitter"
  187. Part12.Parent = Tool0
  188. Part12.BrickColor = BrickColor.new("Institutional white")
  189. Part12.Transparency = 1
  190. Part12.Anchored = true
  191. Part12.FormFactor = Enum.FormFactor.Custom
  192. Part12.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  193. Part12.CFrame = CFrame.new(-4.24999809, 1.50000596, 1.59999204, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  194. Part12.BackSurface = Enum.SurfaceType.Weld
  195. Part12.BottomSurface = Enum.SurfaceType.Weld
  196. Part12.FrontSurface = Enum.SurfaceType.Weld
  197. Part12.LeftSurface = Enum.SurfaceType.Weld
  198. Part12.RightSurface = Enum.SurfaceType.Weld
  199. Part12.TopSurface = Enum.SurfaceType.Weld
  200. Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
  201. Part12.Position = Vector3.new(-4.24999809, 1.50000596, 1.59999204)
  202. Part12.Color = Color3.new(0.972549, 0.972549, 0.972549)
  203. SpotLight13.Parent = Part12
  204. SpotLight13.Range = 50
  205. for i,v in pairs(mas:GetChildren()) do
  206. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  207. pcall(function() v:MakeJoints() end)
  208. end
  209. mas:Destroy()
  210. for i,v in pairs(cors) do
  211. spawn(function()
  212. pcall(v)
  213. end)
  214. end
Add Comment
Please, Sign In to add comment