Advertisement
iamcba12

Ghost Lantern

Sep 8th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 KB | None | 0 0
  1. local Name="RenderSettings"
  2. local player=game.Players.cory2892
  3. local char=player.Character
  4. de=1
  5. char.Head.Changed:connect(function(p)
  6. if p=="BrickColor" then
  7. wait()
  8. for _,v in pairs(char:children()) do
  9. if v.className=="Hat" then
  10. v:remove()
  11. elseif v:IsA("Part") then
  12. v.BrickColor=BrickColor:Black()
  13. elseif v:IsA("Shirt") or v:IsA("Pants") then
  14. v:remove()
  15. end
  16. end
  17. end
  18. end)
  19.  
  20. if script.Parent.className~="Tool" then
  21. t=Instance.new("Tool")
  22. t.GripPos=Vector3.new(0, 0.5, 0.1)
  23. t.Parent=player.Backpack
  24. t.Name="Latern"
  25. script.Parent=t
  26. end
  27. t=script.Parent
  28.  
  29. Handle=Instance.new("Part")
  30. Handle.Size=Vector3.new(1,1,1)
  31. Handle.Parent=t
  32. Handle.BrickColor=BrickColor:Yellow()
  33. Handle.Transparency=0.4
  34. Handle.Name="Handle"
  35. Mesh=Instance.new("CylinderMesh")
  36. Mesh.Parent=Handle
  37. Mesh.Scale=Vector3.new(0.6,0.8,0.6)
  38.  
  39. pcall(function() char.Head.face:remove() char["Shirt Graphic"]:remove()end)
  40. for _,v in pairs(char:children()) do
  41. if v.className=="Hat" then
  42. v:remove()
  43. elseif v:IsA("Part") then
  44. v.BrickColor=BrickColor:Black()
  45. elseif v:IsA("Shirt") or v:IsA("Pants") then
  46. v:remove()
  47. end
  48. end
  49.  
  50. Tor=Instance.new("Part")
  51. Tor.Size=Vector3.new(1,1,1)
  52. Tor.BrickColor=BrickColor:Black()
  53. Tor.Reflectance=0
  54. Tor.Transparency=0
  55. Tor.CanCollide=false
  56. Tor.Parent=char
  57. Mesh=Instance.new("SpecialMesh")
  58. Mesh.MeshId="http://www.roblox.com/asset/?id=16952952"
  59. Mesh.Scale=Vector3.new(1.05,1.05,1.05)
  60. Mesh.Parent=Tor
  61. w = Instance.new("Weld")
  62. w.Parent = char["Head"]
  63. w.Part0 = w.Parent
  64. w.Part1 = Tor
  65. w.C0 = CFrame.new(0,0.35,0)
  66.  
  67. function Equip()
  68. if de==1 then
  69. de=0
  70. HandleTop=Instance.new("Part")
  71. HandleTop.BrickColor=BrickColor:Black()
  72. HandleTop.Size=Vector3.new(1,1,1)
  73. HandleTop.Parent=t
  74. HandleTop.Name="HandleTop"
  75. Mesh=Instance.new("CylinderMesh")
  76. Mesh.Parent=HandleTop
  77. Mesh.Scale=Vector3.new(0.8,0.1,0.8)
  78. Weld=Instance.new("Weld")
  79. Weld.Parent=HandleTop
  80. Weld.Part1=Weld.Parent
  81. Weld.Part0=Handle
  82. Weld.C0=CFrame.new(0,-0.43,0)
  83.  
  84. HandleBottom=Instance.new("Part")
  85. HandleBottom.BrickColor=BrickColor:Black()
  86. HandleBottom.Size=Vector3.new(1,1,1)
  87. HandleBottom.Parent=t
  88. HandleBottom.Name="HandleBottom"
  89. Mesh=Instance.new("CylinderMesh")
  90. Mesh.Parent=HandleBottom
  91. Mesh.Scale=Vector3.new(0.8,0.1,0.8)
  92. Weld=Instance.new("Weld")
  93. Weld.Parent=HandleBottom
  94. Weld.Part1=Weld.Parent
  95. Weld.Part0=Handle
  96. Weld.C0=CFrame.new(0,0.43,0)
  97.  
  98. GripTop=Instance.new("Part")
  99. GripTop.BrickColor=BrickColor:Black()
  100. GripTop.Size=Vector3.new(1,1,1)
  101. GripTop.Parent=t
  102. GripTop.Name="GripTop"
  103. Mesh=Instance.new("CylinderMesh")
  104. Mesh.Parent=GripTop
  105. Mesh.Scale=Vector3.new(0.3,0.2,0.3)
  106. Weld=Instance.new("Weld")
  107. Weld.Parent=GripTop
  108. Weld.Part1=Weld.Parent
  109. Weld.Part0=Handle
  110. Weld.C0=CFrame.new(0,0.6,0)
  111.  
  112. Grip=Instance.new("Part")
  113. Grip.BrickColor=BrickColor:Yellow()
  114. Grip.Size=Vector3.new(1,1,1)
  115. Grip.Parent=t
  116. Grip.Name="Grip"
  117. Grip.Transparency=.45
  118. Grip.Touched:connect(function(hit)
  119. if hit.Parent.Name~="Latern" and hit.Parent.Name~=Name and hit.Name~="Base" then
  120. if game.Players:getPlayerFromCharacter(hit.Parent) then
  121. Blind(game.Players:getPlayerFromCharacter(hit.Parent),9)
  122. pcall(function() hit:remove() end)
  123. else
  124. hit.BrickColor=BrickColor:Black()
  125. hit.CanCollide=false
  126. hit.Anchored=true
  127. for i=1,10 do
  128. hit.Transparency=i/10
  129. wait()
  130. end
  131. hit:remove()
  132. end
  133. end
  134. end)
  135. Mesh=Instance.new("SpecialMesh")
  136. Mesh.MeshType="Sphere"
  137. Mesh.Parent=Grip
  138. Mesh.Scale=Vector3.new(0.05,0.05,0.05)
  139. Weld=Instance.new("Weld")
  140. Weld.Parent=Grip
  141. Weld.Part1=Weld.Parent
  142. Weld.Part0=Handle
  143. Weld.C0=CFrame.new(0,0,0)
  144. co=coroutine.create(function()
  145. local Mesh=Mesh
  146. while true do
  147. for i=1,40 do
  148. Mesh.Scale=Vector3.new(i/15,i/17,i/15)
  149. wait()
  150. end
  151. wait()
  152. for i=40,1,-1 do
  153. Mesh.Scale=Vector3.new(i/15,i/17,i/15)
  154. wait()
  155. end
  156. end
  157. end)
  158. coroutine.resume(co)
  159. f=Instance.new("Fire")
  160. f.Color=BrickColor:Yellow().Color
  161. f.Parent=Grip
  162. f.Heat=0
  163. f.Size=1
  164. wait(0.5)
  165. de=1
  166. end
  167. end
  168.  
  169. function UnEquip()
  170. for _,v in pairs(t:children()) do
  171. if v.Name~="QuickScript" and v.Name~="Handle" then
  172. v:remove()
  173. end
  174. end
  175. end
  176.  
  177. function Trans(Gui2)
  178. for i=10,0,-2 do
  179. wait()
  180. Gui2.BackgroundTransparency=i/10
  181. end
  182. wait(2)
  183. for i=0,30,1 do
  184. wait(0.075)
  185. Gui2.BackgroundTransparency=i/30
  186. end
  187. pcall(function() Gui2.Parent:remove() end)
  188. end
  189.  
  190. function Blind(p,time)
  191. local Gui=Instance.new("ScreenGui")
  192. Gui.Name="Blind"
  193. Gui2=Instance.new("Frame")
  194. Gui2.Active=true
  195. local Gui2=Instance.new("Frame")
  196. Gui2.BackgroundTransparency=1
  197. Gui2.BackgroundColor3=Color3.new(1,1,1)
  198. Gui2.BorderSizePixel=5
  199. Gui2.Size=UDim2.new(3,0,3,0)
  200. Gui2.Position=UDim2.new(-1,0,-1,0)
  201. Gui2.Parent=Gui
  202. pcall(function()
  203. if p.PlayerGui:findFirstChild("Blind")==nil then
  204. Gui.Parent=p.PlayerGui
  205. end
  206. end)
  207. Delay(time,function()
  208. Trans(Gui2)
  209. end)
  210. end
  211.  
  212. function Button()
  213. Grip.Transparency=.2
  214. for i=1,15 do
  215. f.Size=i
  216. wait(0.075)
  217. end
  218. f.Color=BrickColor.new("Lime green").Color
  219. local nd=f.SecondaryColor
  220. f.SecondaryColor=BrickColor.new("Lime green").Color
  221. f.Size=35
  222. for _,v in pairs(game.Players:children()) do
  223. if (v.Character.Torso.Position-Grip.Position).magnitude<35 and v.Name~=Name then
  224. coroutine.resume(coroutine.create(function() Blind(v,(v.Character.Torso.Position-Grip.Position).magnitude/4) end))
  225. end
  226. end
  227. wait(0.9)
  228. f.Color=BrickColor:Yellow().Color
  229. f.SecondaryColor=nd
  230. f.Size=15
  231. for i=15,1,-1 do
  232. f.Size=i
  233. wait(0.25)
  234. end
  235. Grip.Transparency=.35
  236. end
  237.  
  238. t.Equipped:connect(Equip)
  239. t.Unequipped:connect(UnEquip)
  240. t.Activated:connect(Button)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement