Advertisement
lafur

Untitled

Sep 21st, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.63 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end wait(1/60)
  6.  
  7. local plr = game.Players.LocalPlayer
  8. local char = plr.Character
  9.  
  10. function sandbox(var,func)
  11. local env = getfenv(func)
  12. local newenv = setmetatable({},{
  13. __index = function(self,k)
  14. if k=="script" then
  15. return var
  16. else
  17. return env[k]
  18. end
  19. end,
  20. })
  21. setfenv(func,newenv)
  22. return func
  23. end
  24. cors = {}
  25. mas = Instance.new("Model",game:GetService("Lighting"))
  26. Tool0 = Instance.new("Tool")
  27. Part1 = Instance.new("Part")
  28. Part2 = Instance.new("Part")
  29. Part3 = Instance.new("Part")
  30. Part4 = Instance.new("Part")
  31. Part5 = Instance.new("Part")
  32. Part6 = Instance.new("Part")
  33. Part7 = Instance.new("Part")
  34. Part8 = Instance.new("Part")
  35. Part9 = Instance.new("Part")
  36. Part10 = Instance.new("Part")
  37. Part11 = Instance.new("Part")
  38. Part12 = Instance.new("Part")
  39. Part13 = Instance.new("Part")
  40. Part14 = Instance.new("Part")
  41. Part15 = Instance.new("Part")
  42. Part16 = Instance.new("Part")
  43. Part17 = Instance.new("Part")
  44. Part18 = Instance.new("Part")
  45. Part19 = Instance.new("Part")
  46. Part20 = Instance.new("Part")
  47. Script21 = Instance.new("Script")
  48. Tool0.Name = "Explosion Staff"
  49. Tool0.Parent = mas
  50. Tool0.ToolTip = "EXPLOSIONNN!!!!"
  51. Part1.Parent = Tool0
  52. Part1.Material = Enum.Material.Wood
  53. Part1.BrickColor = BrickColor.new("Burnt Sienna")
  54. Part1.Rotation = Vector3.new(77.9599991, 0, -180)
  55. Part1.Anchored = true
  56. Part1.Size = Vector3.new(0.199999809, 0.199998945, 0.310000032)
  57. Part1.CFrame = CFrame.new(72.6000061, 5.65559053, -50.4499931, -1, 0, 0, 0, -0.208563015, -0.978008986, 0, -0.978008986, 0.208563015)
  58. Part1.BottomSurface = Enum.SurfaceType.Smooth
  59. Part1.TopSurface = Enum.SurfaceType.Smooth
  60. Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  61. Part1.Position = Vector3.new(72.6000061, 5.65559053, -50.4499931)
  62. Part1.Orientation = Vector3.new(77.9599991, 0, 180)
  63. Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  64. Part2.Parent = Tool0
  65. Part2.Material = Enum.Material.Wood
  66. Part2.BrickColor = BrickColor.new("Burnt Sienna")
  67. Part2.Rotation = Vector3.new(106.119995, 0, -180)
  68. Part2.Anchored = true
  69. Part2.Size = Vector3.new(0.199999809, 0.199998945, 0.310000002)
  70. Part2.CFrame = CFrame.new(72.6000061, 5.42558908, -50.4499855, -1, 0, 0, 0, 0.277650088, -0.960682333, 0, -0.960682333, -0.277650088)
  71. Part2.BottomSurface = Enum.SurfaceType.Smooth
  72. Part2.TopSurface = Enum.SurfaceType.Smooth
  73. Part2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  74. Part2.Position = Vector3.new(72.6000061, 5.42558908, -50.4499855)
  75. Part2.Orientation = Vector3.new(73.8799973, 180, 0)
  76. Part2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  77. Part3.Parent = Tool0
  78. Part3.Material = Enum.Material.Wood
  79. Part3.BrickColor = BrickColor.new("Burnt Sienna")
  80. Part3.Rotation = Vector3.new(10.1599998, 0, -180)
  81. Part3.Anchored = true
  82. Part3.Size = Vector3.new(0.179999813, 0.0700000003, 0.160000041)
  83. Part3.CFrame = CFrame.new(72.5900116, 6.1364584, -50.8448219, -1, 0, 0, 0, -0.984318376, -0.176401064, 0, -0.176401064, 0.984318376)
  84. Part3.BottomSurface = Enum.SurfaceType.Smooth
  85. Part3.TopSurface = Enum.SurfaceType.Smooth
  86. Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  87. Part3.Position = Vector3.new(72.5900116, 6.1364584, -50.8448219)
  88. Part3.Orientation = Vector3.new(10.1599998, 0, 180)
  89. Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  90. Part4.Parent = Tool0
  91. Part4.Material = Enum.Material.Wood
  92. Part4.BrickColor = BrickColor.new("Burnt Sienna")
  93. Part4.Rotation = Vector3.new(116.209999, 0, -180)
  94. Part4.Anchored = true
  95. Part4.Size = Vector3.new(0.199999809, 0.259998947, 0.19999969)
  96. Part4.CFrame = CFrame.new(72.6000061, 5.05251026, -50.9067726, -1, 0, 0, 0, 0.441644162, -0.897190273, 0, -0.897190273, -0.441644162)
  97. Part4.BottomSurface = Enum.SurfaceType.Smooth
  98. Part4.TopSurface = Enum.SurfaceType.Smooth
  99. Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  100. Part4.Position = Vector3.new(72.6000061, 5.05251026, -50.9067726)
  101. Part4.Orientation = Vector3.new(63.7899971, 180, 0)
  102. Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  103. Part5.Parent = Tool0
  104. Part5.Material = Enum.Material.Wood
  105. Part5.BrickColor = BrickColor.new("Burnt Sienna")
  106. Part5.Rotation = Vector3.new(125.860001, 0, -180)
  107. Part5.Anchored = true
  108. Part5.Size = Vector3.new(0.189999804, 0.269998908, 0.129999653)
  109. Part5.CFrame = CFrame.new(72.5950089, 5.13980055, -51.0601616, -1, 0, 0, 0, 0.585875213, -0.81040132, 0, -0.81040132, -0.585875213)
  110. Part5.BottomSurface = Enum.SurfaceType.Smooth
  111. Part5.TopSurface = Enum.SurfaceType.Smooth
  112. Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  113. Part5.Position = Vector3.new(72.5950089, 5.13980055, -51.0601616)
  114. Part5.Orientation = Vector3.new(54.1399994, 180, 0)
  115. Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  116. Part6.Parent = Tool0
  117. Part6.Material = Enum.Material.Wood
  118. Part6.BrickColor = BrickColor.new("Burnt Sienna")
  119. Part6.Rotation = Vector3.new(45.7000008, 0, -180)
  120. Part6.Anchored = true
  121. Part6.Size = Vector3.new(0.199999809, 0.139998943, 0.499999881)
  122. Part6.CFrame = CFrame.new(72.6000061, 5.95947552, -50.6225662, -1, 0, 0, 0, -0.698380172, -0.715727091, 0, -0.715727091, 0.698380172)
  123. Part6.BottomSurface = Enum.SurfaceType.Smooth
  124. Part6.TopSurface = Enum.SurfaceType.Smooth
  125. Part6.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  126. Part6.Position = Vector3.new(72.6000061, 5.95947552, -50.6225662)
  127. Part6.Orientation = Vector3.new(45.7000008, 0, 180)
  128. Part6.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  129. Part7.Parent = Tool0
  130. Part7.Material = Enum.Material.Wood
  131. Part7.BrickColor = BrickColor.new("Burnt Sienna")
  132. Part7.Rotation = Vector3.new(125.360001, 0, -180)
  133. Part7.Anchored = true
  134. Part7.Size = Vector3.new(0.199999809, 0.139999986, 0.669999599)
  135. Part7.CFrame = CFrame.new(72.6000061, 5.22756338, -50.6340942, -1, 0, 0, 0, 0.578651071, -0.815575242, 0, -0.815575242, -0.578651071)
  136. Part7.BottomSurface = Enum.SurfaceType.Smooth
  137. Part7.TopSurface = Enum.SurfaceType.Smooth
  138. Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  139. Part7.Position = Vector3.new(72.6000061, 5.22756338, -50.6340942)
  140. Part7.Orientation = Vector3.new(54.6399994, 180, 0)
  141. Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  142. Part8.Parent = Tool0
  143. Part8.Material = Enum.Material.Wood
  144. Part8.BrickColor = BrickColor.new("Burnt Sienna")
  145. Part8.Rotation = Vector3.new(89.5599976, 0, -180)
  146. Part8.Anchored = true
  147. Part8.Size = Vector3.new(0.199999809, 0.149998948, 0.439999938)
  148. Part8.CFrame = CFrame.new(72.6000061, 5.61545324, -50.4791603, -1, 0, 0, 0, -0.00771899521, -0.999970257, 0, -0.999970257, 0.00771899521)
  149. Part8.BottomSurface = Enum.SurfaceType.Smooth
  150. Part8.TopSurface = Enum.SurfaceType.Smooth
  151. Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  152. Part8.Position = Vector3.new(72.6000061, 5.61545324, -50.4791603)
  153. Part8.Orientation = Vector3.new(89.5599976, 0, 180)
  154. Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  155. Part9.Parent = Tool0
  156. Part9.Material = Enum.Material.Wood
  157. Part9.BrickColor = BrickColor.new("Burnt Sienna")
  158. Part9.Rotation = Vector3.new(133.660004, 0, -180)
  159. Part9.Anchored = true
  160. Part9.Size = Vector3.new(0.199999809, 0.199998945, 0.549999654)
  161. Part9.CFrame = CFrame.new(72.6000061, 5.12030411, -50.6632805, -1, 0, 0, 0, 0.690404534, -0.723423481, 0, -0.723423481, -0.690404534)
  162. Part9.BottomSurface = Enum.SurfaceType.Smooth
  163. Part9.TopSurface = Enum.SurfaceType.Smooth
  164. Part9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  165. Part9.Position = Vector3.new(72.6000061, 5.12030411, -50.6632805)
  166. Part9.Orientation = Vector3.new(46.3400002, 180, 0)
  167. Part9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  168. Part10.Parent = Tool0
  169. Part10.Material = Enum.Material.Wood
  170. Part10.BrickColor = BrickColor.new("Burnt Sienna")
  171. Part10.Rotation = Vector3.new(160.440002, 0, -180)
  172. Part10.Anchored = true
  173. Part10.Size = Vector3.new(0.189999804, 0.289999992, 0.190000027)
  174. Part10.CFrame = CFrame.new(72.5949936, 0.168441296, -50.7875595, -1, 0, 0, 0, 0.942295253, -0.334783107, 0, -0.334783077, -0.942295253)
  175. Part10.BottomSurface = Enum.SurfaceType.Smooth
  176. Part10.TopSurface = Enum.SurfaceType.Smooth
  177. Part10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  178. Part10.Position = Vector3.new(72.5949936, 0.168441296, -50.7875595)
  179. Part10.Orientation = Vector3.new(19.5599995, 180, 0)
  180. Part10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  181. Part11.Parent = Tool0
  182. Part11.BrickColor = BrickColor.new("Ghost grey")
  183. Part11.Rotation = Vector3.new(-180, 0, -180)
  184. Part11.Anchored = true
  185. Part11.Size = Vector3.new(0.200571179, 0.569999278, 0.200571075)
  186. Part11.CFrame = CFrame.new(72.6000061, 2.43656635, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  187. Part11.BottomSurface = Enum.SurfaceType.Smooth
  188. Part11.TopSurface = Enum.SurfaceType.Smooth
  189. Part11.Color = Color3.new(0.792157, 0.796079, 0.819608)
  190. Part11.Position = Vector3.new(72.6000061, 2.43656635, -50.8356361)
  191. Part11.Orientation = Vector3.new(0, 180, 0)
  192. Part11.Color = Color3.new(0.792157, 0.796079, 0.819608)
  193. Part12.Parent = Tool0
  194. Part12.BrickColor = BrickColor.new("Ghost grey")
  195. Part12.Rotation = Vector3.new(-180, 0, -180)
  196. Part12.Anchored = true
  197. Part12.Size = Vector3.new(0.200571179, 0.319999456, 0.200571075)
  198. Part12.CFrame = CFrame.new(72.6000061, 4.21157122, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  199. Part12.BottomSurface = Enum.SurfaceType.Smooth
  200. Part12.TopSurface = Enum.SurfaceType.Smooth
  201. Part12.Color = Color3.new(0.792157, 0.796079, 0.819608)
  202. Part12.Position = Vector3.new(72.6000061, 4.21157122, -50.8356361)
  203. Part12.Orientation = Vector3.new(0, 180, 0)
  204. Part12.Color = Color3.new(0.792157, 0.796079, 0.819608)
  205. Part13.Parent = Tool0
  206. Part13.BrickColor = BrickColor.new("Ghost grey")
  207. Part13.Rotation = Vector3.new(-180, 0, -180)
  208. Part13.Anchored = true
  209. Part13.Size = Vector3.new(0.200571179, 0.499999523, 0.200571075)
  210. Part13.CFrame = CFrame.new(72.6000061, 2.99156809, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  211. Part13.BottomSurface = Enum.SurfaceType.Smooth
  212. Part13.TopSurface = Enum.SurfaceType.Smooth
  213. Part13.Color = Color3.new(0.792157, 0.796079, 0.819608)
  214. Part13.Position = Vector3.new(72.6000061, 2.99156809, -50.8356361)
  215. Part13.Orientation = Vector3.new(0, 180, 0)
  216. Part13.Color = Color3.new(0.792157, 0.796079, 0.819608)
  217. Part14.Parent = Tool0
  218. Part14.Material = Enum.Material.Wood
  219. Part14.BrickColor = BrickColor.new("Burnt Sienna")
  220. Part14.Rotation = Vector3.new(-180, 0, -180)
  221. Part14.Anchored = true
  222. Part14.Size = Vector3.new(0.199999809, 2.90999842, 0.19999969)
  223. Part14.CFrame = CFrame.new(72.6000061, 3.5665679, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  224. Part14.BottomSurface = Enum.SurfaceType.Smooth
  225. Part14.TopSurface = Enum.SurfaceType.Smooth
  226. Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  227. Part14.Position = Vector3.new(72.6000061, 3.5665679, -50.8356361)
  228. Part14.Orientation = Vector3.new(0, 180, 0)
  229. Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  230. Part15.Parent = Tool0
  231. Part15.BrickColor = BrickColor.new("Ghost grey")
  232. Part15.Rotation = Vector3.new(-180, 0, -180)
  233. Part15.Anchored = true
  234. Part15.Size = Vector3.new(0.200571179, 0.409999192, 0.200571075)
  235. Part15.CFrame = CFrame.new(72.6000061, 3.45656633, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  236. Part15.BottomSurface = Enum.SurfaceType.Smooth
  237. Part15.TopSurface = Enum.SurfaceType.Smooth
  238. Part15.Color = Color3.new(0.792157, 0.796079, 0.819608)
  239. Part15.Position = Vector3.new(72.6000061, 3.45656633, -50.8356361)
  240. Part15.Orientation = Vector3.new(0, 180, 0)
  241. Part15.Color = Color3.new(0.792157, 0.796079, 0.819608)
  242. Part16.Parent = Tool0
  243. Part16.Material = Enum.Material.Wood
  244. Part16.BrickColor = BrickColor.new("Burnt Sienna")
  245. Part16.Rotation = Vector3.new(177.619995, 0, -180)
  246. Part16.Anchored = true
  247. Part16.Size = Vector3.new(0.199999809, 1.15999949, 0.19999969)
  248. Part16.CFrame = CFrame.new(72.5999985, 0.803365231, -50.8432655, -1, 0, 0, 0, 0.999136627, -0.0415469855, 0, -0.0415469855, -0.999136627)
  249. Part16.BottomSurface = Enum.SurfaceType.Smooth
  250. Part16.TopSurface = Enum.SurfaceType.Smooth
  251. Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  252. Part16.Position = Vector3.new(72.5999985, 0.803365231, -50.8432655)
  253. Part16.Orientation = Vector3.new(2.37999988, 180, 0)
  254. Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  255. Part17.Parent = Tool0
  256. Part17.Material = Enum.Material.Wood
  257. Part17.BrickColor = BrickColor.new("Burnt Sienna")
  258. Part17.Rotation = Vector3.new(-177.099991, 0, -180)
  259. Part17.Anchored = true
  260. Part17.Size = Vector3.new(0.199999809, 0.919999719, 0.19999969)
  261. Part17.CFrame = CFrame.new(72.5999985, 1.80297112, -50.8531914, -1, 0, 0, 0, 0.998716116, 0.0506570078, 0, 0.0506570078, -0.998716116)
  262. Part17.BottomSurface = Enum.SurfaceType.Smooth
  263. Part17.TopSurface = Enum.SurfaceType.Smooth
  264. Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  265. Part17.Position = Vector3.new(72.5999985, 1.80297112, -50.8531914)
  266. Part17.Orientation = Vector3.new(-2.89999986, 180, 0)
  267. Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  268. Part18.Parent = Tool0
  269. Part18.BrickColor = BrickColor.new("Ghost grey")
  270. Part18.Rotation = Vector3.new(-180, 0, -180)
  271. Part18.Anchored = true
  272. Part18.Size = Vector3.new(0.200571179, 0.349999249, 0.200571075)
  273. Part18.CFrame = CFrame.new(72.6000061, 3.85656738, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  274. Part18.BottomSurface = Enum.SurfaceType.Smooth
  275. Part18.TopSurface = Enum.SurfaceType.Smooth
  276. Part18.Color = Color3.new(0.792157, 0.796079, 0.819608)
  277. Part18.Position = Vector3.new(72.6000061, 3.85656738, -50.8356361)
  278. Part18.Orientation = Vector3.new(0, 180, 0)
  279. Part18.Color = Color3.new(0.792157, 0.796079, 0.819608)
  280. Part19.Parent = Tool0
  281. Part19.Material = Enum.Material.Neon
  282. Part19.BrickColor = BrickColor.new("Maroon")
  283. Part19.Anchored = true
  284. Part19.Shape = Enum.PartType.Ball
  285. Part19.Size = Vector3.new(0.649999797, 0.649999797, 0.649999797)
  286. Part19.CFrame = CFrame.new(72.5800018, 5.6065712, -50.8699837, 1, 0, -0, 0, 1, -8.94069672e-08, 0, 8.94069672e-08, 1)
  287. Part19.BottomSurface = Enum.SurfaceType.Smooth
  288. Part19.TopSurface = Enum.SurfaceType.Smooth
  289. Part19.Color = Color3.new(0.458824, 0, 0)
  290. Part19.Position = Vector3.new(72.5800018, 5.6065712, -50.8699837)
  291. Part19.Color = Color3.new(0.458824, 0, 0)
  292. Part20.Name = "Handle"
  293. Part20.Parent = Tool0
  294. Part20.Material = Enum.Material.Wood
  295. Part20.BrickColor = BrickColor.new("Burnt Sienna")
  296. Part20.Transparency = 1
  297. Part20.Anchored = true
  298. Part20.Size = Vector3.new(0.199999809, 0.749999762, 0.19999969)
  299. Part20.CFrame = CFrame.new(72.6000061, 2.8165679, -50.8356361, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  300. Part20.BottomSurface = Enum.SurfaceType.Smooth
  301. Part20.TopSurface = Enum.SurfaceType.Smooth
  302. Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  303. Part20.Position = Vector3.new(72.6000061, 2.8165679, -50.8356361)
  304. Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  305. Script21.Name = "weld"
  306. Script21.Parent = Tool0
  307. table.insert(cors,sandbox(Script21,function()
  308. function weld()
  309. local parts,last = {}
  310. local function scan(parent)
  311. for _,v in pairs(parent:GetChildren()) do
  312. if (v:IsA("BasePart")) or (v:IsA("UnionOperation")) or (v:IsA("MeshPart")) then
  313. if (last) then
  314. local w = Instance.new("Weld")
  315. w.Name = ("%s_Weld"):format(v.Name)
  316. w.Part0,w.Part1 = last,v
  317. w.C0 = last.CFrame:inverse()
  318. w.C1 = v.CFrame:inverse()
  319. w.Parent = last
  320. end
  321. last = v
  322. table.insert(parts,v)
  323. end
  324. scan(v)
  325. end
  326. end
  327. scan(script.Parent)
  328. for _,v in pairs(parts) do
  329. v.Anchored = false
  330. v.CanCollide = false
  331. end
  332. end
  333.  
  334. weld()
  335. script:Remove()
  336. end))
  337. for i,v in pairs(mas:GetChildren()) do
  338. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  339. pcall(function() v:MakeJoints() end)
  340. end
  341. mas:Destroy()
  342. for i,v in pairs(cors) do
  343. spawn(function()
  344. pcall(v)
  345. end)
  346. end
  347.  
  348. local tool = Tool0
  349.  
  350. local GF = Vector3.new(0, 0.447, -0.894)
  351. local GR = Vector3.new(0.707, -0.707, 0)
  352. local oringalGF = tool.GripForward
  353. local oringalGR = tool.GripRight
  354.  
  355. local enabled = false
  356.  
  357. function boom(part)
  358.  
  359. local mesh = Instance.new('SpecialMesh')
  360. mesh.MeshType = "FileMesh"
  361. mesh.MeshId = "rbxassetid://3270017"
  362. mesh.Scale = Vector3.new(10,10,15)
  363.  
  364. local eff1 = Instance.new('Part',workspace)
  365. eff1.Position= part.Position
  366. eff1.Shape = "Ball"
  367. eff1.Anchored = true
  368. eff1.CanCollide = false
  369. eff1.Material = Enum.Material.Neon
  370. eff1.BrickColor = BrickColor.new('Gold')
  371. eff1.Transparency = 0
  372. eff1.Size = Vector3.new(5,5,5)
  373. eff1.Name = "eff1"
  374.  
  375. local eff2 = Instance.new('Part',workspace)
  376. eff2.Position= part.Position
  377. eff2.Shape = "Ball"
  378. eff2.Anchored = true
  379. eff2.CanCollide = false
  380. eff2.Material = Enum.Material.Neon
  381. eff2.BrickColor = BrickColor.new('Really red')
  382. eff2.Transparency = 0
  383. eff2.Size = Vector3.new(10,10,10)
  384. eff2.Name = "eff2"
  385.  
  386. local eff3 = Instance.new('Part',workspace)
  387. eff3.Position = part.Position
  388. eff3.Anchored = true
  389. eff3.CanCollide = false
  390. eff3.Orientation = Vector3.new(90,0,0)
  391. eff3.Name = "eff3"
  392. mesh.Parent = eff3
  393.  
  394. for i=1,75 do
  395. workspace.beam.Size = workspace.beam.Size + Vector3.new(6,0,6)
  396. workspace.beam.Transparency = workspace.beam.Transparency + 0.025
  397. eff1.Size = eff1.Size + Vector3.new(6,6,6)
  398. eff1.Transparency = eff1.Transparency + 0.03
  399. eff2.Size = eff2.Size + Vector3.new(6,6,6)
  400. eff2.Transparency = eff2.Transparency + 0.03
  401. eff3.Mesh.Scale = eff3.Mesh.Scale + Vector3.new(8.7,8.7,0)
  402. wait()
  403. end
  404.  
  405. eff1:Destroy()
  406. eff2:Destroy()
  407. eff3:Destroy()
  408. end
  409.  
  410. function click(mouse)
  411. if enabled == false then
  412. enabled = true
  413.  
  414. local sound = Instance.new('Sound')
  415. sound.SoundId = "rbxassetid://762570073"
  416. sound.Volume = 1.5
  417. sound.Parent = char.Head
  418. sound.Name = "talk"
  419.  
  420. tool.GripForward = GF
  421. tool.GripRight = GR
  422.  
  423. local target = Instance.new('Part')
  424. target.Transparency = 1
  425. target.Anchored = true
  426. target.CanCollide = false
  427. target.Position = mouse.hit.p
  428. target.Parent = workspace
  429. target.Name = "target"
  430.  
  431. local beam = Instance.new('Part')
  432. beam.Shape = "Cylinder"
  433. beam.Position = target.Position
  434. beam.BrickColor = BrickColor.new('Really red')
  435. beam.Material = Enum.Material.Neon
  436. beam.Anchored = true
  437. beam.CanCollide = false
  438. beam.Orientation = Vector3.new(0,0,90)
  439. beam.Size = Vector3.new(1000,1000,.2)
  440. beam.Parent = workspace
  441. beam.Name = "beam"
  442.  
  443. game:GetService("Chat"):Chat(char.Head, "EXPLOSION!!!")
  444. sound:Play()
  445.  
  446. wait(1.6)
  447.  
  448. local exps = Instance.new('Sound')
  449. exps.SoundId = "rbxassetid://165970126"
  450. exps.Parent = target
  451. exps.Volume = 2
  452. exps.Name = "expSFX"
  453.  
  454. local exp = Instance.new("Explosion")
  455. exp.Position = target.Position
  456. exp.Parent = game.Workspace
  457. exp.BlastRadius = 50
  458.  
  459. exps:play()
  460.  
  461. boom(target)
  462.  
  463. beam:Destroy()
  464. target:Destroy()
  465.  
  466. wait(1)
  467. sound:Destroy()
  468. exps:Destroy()
  469.  
  470. tool.GripForward = oringalGF
  471. tool.GripRight = oringalGR
  472.  
  473. enabled = false
  474. end
  475. end
  476.  
  477. function equipped(mouse)
  478. mouse.Button1Down:connect(function () click(mouse) end)
  479. end
  480. print('explosion loaded!!!!')
  481. tool.Equipped:connect(equipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement