Advertisement
sneakydodge123

megnium

Aug 1st, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.17 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. wait(1/60)
  145.  
  146. local plr = game.Players.LocalPlayer
  147. local char = plr.Character
  148.  
  149. function sandbox(var,func)
  150. local env = getfenv(func)
  151. local newenv = setmetatable({},{
  152. __index = function(self,k)
  153. if k=="script" then
  154. return var
  155. else
  156. return env[k]
  157. end
  158. end,
  159. })
  160. setfenv(func,newenv)
  161. return func
  162. end
  163. cors = {}
  164. mas = Instance.new("Model",game:GetService("Lighting"))
  165. Tool0 = Instance.new("Tool")
  166. Part1 = Instance.new("Part")
  167. Part2 = Instance.new("Part")
  168. Part3 = Instance.new("Part")
  169. Part4 = Instance.new("Part")
  170. Part5 = Instance.new("Part")
  171. Part6 = Instance.new("Part")
  172. Part7 = Instance.new("Part")
  173. Part8 = Instance.new("Part")
  174. Part9 = Instance.new("Part")
  175. Part10 = Instance.new("Part")
  176. Part11 = Instance.new("Part")
  177. Part12 = Instance.new("Part")
  178. Part13 = Instance.new("Part")
  179. Part14 = Instance.new("Part")
  180. Part15 = Instance.new("Part")
  181. Part16 = Instance.new("Part")
  182. Part17 = Instance.new("Part")
  183. Part18 = Instance.new("Part")
  184. Part19 = Instance.new("Part")
  185. Part20 = Instance.new("Part")
  186. Script21 = Instance.new("Script")
  187. Tool0.Name = "Explosion Staff"
  188. Tool0.Parent = mas
  189. Tool0.ToolTip = "EXPLOSIONNN!!!!"
  190. Part1.Parent = Tool0
  191. Part1.Material = Enum.Material.Wood
  192. Part1.BrickColor = BrickColor.new("Burnt Sienna")
  193. Part1.Rotation = Vector3.new(77.9599991, 0, -180)
  194. Part1.Anchored = true
  195. Part1.Size = Vector3.new(0.199999809, 0.199998945, 0.310000032)
  196. Part1.CFrame = CFrame.new(72.6000061, 5.65559053, -50.4499931, -1, 0, 0, 0, -0.208563015, -0.978008986, 0, -0.978008986, 0.208563015)
  197. Part1.BottomSurface = Enum.SurfaceType.Smooth
  198. Part1.TopSurface = Enum.SurfaceType.Smooth
  199. Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  200. Part1.Position = Vector3.new(72.6000061, 5.65559053, -50.4499931)
  201. Part1.Orientation = Vector3.new(77.9599991, 0, 180)
  202. Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  203. Part2.Parent = Tool0
  204. Part2.Material = Enum.Material.Wood
  205. Part2.BrickColor = BrickColor.new("Burnt Sienna")
  206. Part2.Rotation = Vector3.new(106.119995, 0, -180)
  207. Part2.Anchored = true
  208. Part2.Size = Vector3.new(0.199999809, 0.199998945, 0.310000002)
  209. Part2.CFrame = CFrame.new(72.6000061, 5.42558908, -50.4499855, -1, 0, 0, 0, 0.277650088, -0.960682333, 0, -0.960682333, -0.277650088)
  210. Part2.BottomSurface = Enum.SurfaceType.Smooth
  211. Part2.TopSurface = Enum.SurfaceType.Smooth
  212. Part2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  213. Part2.Position = Vector3.new(72.6000061, 5.42558908, -50.4499855)
  214. Part2.Orientation = Vector3.new(73.8799973, 180, 0)
  215. Part2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  216. Part3.Parent = Tool0
  217. Part3.Material = Enum.Material.Wood
  218. Part3.BrickColor = BrickColor.new("Burnt Sienna")
  219. Part3.Rotation = Vector3.new(10.1599998, 0, -180)
  220. Part3.Anchored = true
  221. Part3.Size = Vector3.new(0.179999813, 0.0700000003, 0.160000041)
  222. Part3.CFrame = CFrame.new(72.5900116, 6.1364584, -50.8448219, -1, 0, 0, 0, -0.984318376, -0.176401064, 0, -0.176401064, 0.984318376)
  223. Part3.BottomSurface = Enum.SurfaceType.Smooth
  224. Part3.TopSurface = Enum.SurfaceType.Smooth
  225. Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  226. Part3.Position = Vector3.new(72.5900116, 6.1364584, -50.8448219)
  227. Part3.Orientation = Vector3.new(10.1599998, 0, 180)
  228. Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  229. Part4.Parent = Tool0
  230. Part4.Material = Enum.Material.Wood
  231. Part4.BrickColor = BrickColor.new("Burnt Sienna")
  232. Part4.Rotation = Vector3.new(116.209999, 0, -180)
  233. Part4.Anchored = true
  234. Part4.Size = Vector3.new(0.199999809, 0.259998947, 0.19999969)
  235. Part4.CFrame = CFrame.new(72.6000061, 5.05251026, -50.9067726, -1, 0, 0, 0, 0.441644162, -0.897190273, 0, -0.897190273, -0.441644162)
  236. Part4.BottomSurface = Enum.SurfaceType.Smooth
  237. Part4.TopSurface = Enum.SurfaceType.Smooth
  238. Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  239. Part4.Position = Vector3.new(72.6000061, 5.05251026, -50.9067726)
  240. Part4.Orientation = Vector3.new(63.7899971, 180, 0)
  241. Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  242. Part5.Parent = Tool0
  243. Part5.Material = Enum.Material.Wood
  244. Part5.BrickColor = BrickColor.new("Burnt Sienna")
  245. Part5.Rotation = Vector3.new(125.860001, 0, -180)
  246. Part5.Anchored = true
  247. Part5.Size = Vector3.new(0.189999804, 0.269998908, 0.129999653)
  248. Part5.CFrame = CFrame.new(72.5950089, 5.13980055, -51.0601616, -1, 0, 0, 0, 0.585875213, -0.81040132, 0, -0.81040132, -0.585875213)
  249. Part5.BottomSurface = Enum.SurfaceType.Smooth
  250. Part5.TopSurface = Enum.SurfaceType.Smooth
  251. Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  252. Part5.Position = Vector3.new(72.5950089, 5.13980055, -51.0601616)
  253. Part5.Orientation = Vector3.new(54.1399994, 180, 0)
  254. Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  255. Part6.Parent = Tool0
  256. Part6.Material = Enum.Material.Wood
  257. Part6.BrickColor = BrickColor.new("Burnt Sienna")
  258. Part6.Rotation = Vector3.new(45.7000008, 0, -180)
  259. Part6.Anchored = true
  260. Part6.Size = Vector3.new(0.199999809, 0.139998943, 0.499999881)
  261. Part6.CFrame = CFrame.new(72.6000061, 5.95947552, -50.6225662, -1, 0, 0, 0, -0.698380172, -0.715727091, 0, -0.715727091, 0.698380172)
  262. Part6.BottomSurface = Enum.SurfaceType.Smooth
  263. Part6.TopSurface = Enum.SurfaceType.Smooth
  264. Part6.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  265. Part6.Position = Vector3.new(72.6000061, 5.95947552, -50.6225662)
  266. Part6.Orientation = Vector3.new(45.7000008, 0, 180)
  267. Part6.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  268. Part7.Parent = Tool0
  269. Part7.Material = Enum.Material.Wood
  270. Part7.BrickColor = BrickColor.new("Burnt Sienna")
  271. Part7.Rotation = Vector3.new(125.360001, 0, -180)
  272. Part7.Anchored = true
  273. Part7.Size = Vector3.new(0.199999809, 0.139999986, 0.669999599)
  274. Part7.CFrame = CFrame.new(72.6000061, 5.22756338, -50.6340942, -1, 0, 0, 0, 0.578651071, -0.815575242, 0, -0.815575242, -0.578651071)
  275. Part7.BottomSurface = Enum.SurfaceType.Smooth
  276. Part7.TopSurface = Enum.SurfaceType.Smooth
  277. Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  278. Part7.Position = Vector3.new(72.6000061, 5.22756338, -50.6340942)
  279. Part7.Orientation = Vector3.new(54.6399994, 180, 0)
  280. Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  281. Part8.Parent = Tool0
  282. Part8.Material = Enum.Material.Wood
  283. Part8.BrickColor = BrickColor.new("Burnt Sienna")
  284. Part8.Rotation = Vector3.new(89.5599976, 0, -180)
  285. Part8.Anchored = true
  286. Part8.Size = Vector3.new(0.199999809, 0.149998948, 0.439999938)
  287. Part8.CFrame = CFrame.new(72.6000061, 5.61545324, -50.4791603, -1, 0, 0, 0, -0.00771899521, -0.999970257, 0, -0.999970257, 0.00771899521)
  288. Part8.BottomSurface = Enum.SurfaceType.Smooth
  289. Part8.TopSurface = Enum.SurfaceType.Smooth
  290. Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  291. Part8.Position = Vector3.new(72.6000061, 5.61545324, -50.4791603)
  292. Part8.Orientation = Vector3.new(89.5599976, 0, 180)
  293. Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  294. Part9.Parent = Tool0
  295. Part9.Material = Enum.Material.Wood
  296. Part9.BrickColor = BrickColor.new("Burnt Sienna")
  297. Part9.Rotation = Vector3.new(133.660004, 0, -180)
  298. Part9.Anchored = true
  299. Part9.Size = Vector3.new(0.199999809, 0.199998945, 0.549999654)
  300. Part9.CFrame = CFrame.new(72.6000061, 5.12030411, -50.6632805, -1, 0, 0, 0, 0.690404534, -0.723423481, 0, -0.723423481, -0.690404534)
  301. Part9.BottomSurface = Enum.SurfaceType.Smooth
  302. Part9.TopSurface = Enum.SurfaceType.Smooth
  303. Part9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  304. Part9.Position = Vector3.new(72.6000061, 5.12030411, -50.6632805)
  305. Part9.Orientation = Vector3.new(46.3400002, 180, 0)
  306. Part9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  307. Part10.Parent = Tool0
  308. Part10.Material = Enum.Material.Wood
  309. Part10.BrickColor = BrickColor.new("Burnt Sienna")
  310. Part10.Rotation = Vector3.new(160.440002, 0, -180)
  311. Part10.Anchored = true
  312. Part10.Size = Vector3.new(0.189999804, 0.289999992, 0.190000027)
  313. Part10.CFrame = CFrame.new(72.5949936, 0.168441296, -50.7875595, -1, 0, 0, 0, 0.942295253, -0.334783107, 0, -0.334783077, -0.942295253)
  314. Part10.BottomSurface = Enum.SurfaceType.Smooth
  315. Part10.TopSurface = Enum.SurfaceType.Smooth
  316. Part10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  317. Part10.Position = Vector3.new(72.5949936, 0.168441296, -50.7875595)
  318. Part10.Orientation = Vector3.new(19.5599995, 180, 0)
  319. Part10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  320. Part11.Parent = Tool0
  321. Part11.BrickColor = BrickColor.new("Ghost grey")
  322. Part11.Rotation = Vector3.new(-180, 0, -180)
  323. Part11.Anchored = true
  324. Part11.Size = Vector3.new(0.200571179, 0.569999278, 0.200571075)
  325. Part11.CFrame = CFrame.new(72.6000061, 2.43656635, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  326. Part11.BottomSurface = Enum.SurfaceType.Smooth
  327. Part11.TopSurface = Enum.SurfaceType.Smooth
  328. Part11.Color = Color3.new(0.792157, 0.796079, 0.819608)
  329. Part11.Position = Vector3.new(72.6000061, 2.43656635, -50.8356361)
  330. Part11.Orientation = Vector3.new(0, 180, 0)
  331. Part11.Color = Color3.new(0.792157, 0.796079, 0.819608)
  332. Part12.Parent = Tool0
  333. Part12.BrickColor = BrickColor.new("Ghost grey")
  334. Part12.Rotation = Vector3.new(-180, 0, -180)
  335. Part12.Anchored = true
  336. Part12.Size = Vector3.new(0.200571179, 0.319999456, 0.200571075)
  337. Part12.CFrame = CFrame.new(72.6000061, 4.21157122, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  338. Part12.BottomSurface = Enum.SurfaceType.Smooth
  339. Part12.TopSurface = Enum.SurfaceType.Smooth
  340. Part12.Color = Color3.new(0.792157, 0.796079, 0.819608)
  341. Part12.Position = Vector3.new(72.6000061, 4.21157122, -50.8356361)
  342. Part12.Orientation = Vector3.new(0, 180, 0)
  343. Part12.Color = Color3.new(0.792157, 0.796079, 0.819608)
  344. Part13.Parent = Tool0
  345. Part13.BrickColor = BrickColor.new("Ghost grey")
  346. Part13.Rotation = Vector3.new(-180, 0, -180)
  347. Part13.Anchored = true
  348. Part13.Size = Vector3.new(0.200571179, 0.499999523, 0.200571075)
  349. Part13.CFrame = CFrame.new(72.6000061, 2.99156809, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  350. Part13.BottomSurface = Enum.SurfaceType.Smooth
  351. Part13.TopSurface = Enum.SurfaceType.Smooth
  352. Part13.Color = Color3.new(0.792157, 0.796079, 0.819608)
  353. Part13.Position = Vector3.new(72.6000061, 2.99156809, -50.8356361)
  354. Part13.Orientation = Vector3.new(0, 180, 0)
  355. Part13.Color = Color3.new(0.792157, 0.796079, 0.819608)
  356. Part14.Parent = Tool0
  357. Part14.Material = Enum.Material.Wood
  358. Part14.BrickColor = BrickColor.new("Burnt Sienna")
  359. Part14.Rotation = Vector3.new(-180, 0, -180)
  360. Part14.Anchored = true
  361. Part14.Size = Vector3.new(0.199999809, 2.90999842, 0.19999969)
  362. Part14.CFrame = CFrame.new(72.6000061, 3.5665679, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  363. Part14.BottomSurface = Enum.SurfaceType.Smooth
  364. Part14.TopSurface = Enum.SurfaceType.Smooth
  365. Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  366. Part14.Position = Vector3.new(72.6000061, 3.5665679, -50.8356361)
  367. Part14.Orientation = Vector3.new(0, 180, 0)
  368. Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  369. Part15.Parent = Tool0
  370. Part15.BrickColor = BrickColor.new("Ghost grey")
  371. Part15.Rotation = Vector3.new(-180, 0, -180)
  372. Part15.Anchored = true
  373. Part15.Size = Vector3.new(0.200571179, 0.409999192, 0.200571075)
  374. Part15.CFrame = CFrame.new(72.6000061, 3.45656633, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  375. Part15.BottomSurface = Enum.SurfaceType.Smooth
  376. Part15.TopSurface = Enum.SurfaceType.Smooth
  377. Part15.Color = Color3.new(0.792157, 0.796079, 0.819608)
  378. Part15.Position = Vector3.new(72.6000061, 3.45656633, -50.8356361)
  379. Part15.Orientation = Vector3.new(0, 180, 0)
  380. Part15.Color = Color3.new(0.792157, 0.796079, 0.819608)
  381. Part16.Parent = Tool0
  382. Part16.Material = Enum.Material.Wood
  383. Part16.BrickColor = BrickColor.new("Burnt Sienna")
  384. Part16.Rotation = Vector3.new(177.619995, 0, -180)
  385. Part16.Anchored = true
  386. Part16.Size = Vector3.new(0.199999809, 1.15999949, 0.19999969)
  387. Part16.CFrame = CFrame.new(72.5999985, 0.803365231, -50.8432655, -1, 0, 0, 0, 0.999136627, -0.0415469855, 0, -0.0415469855, -0.999136627)
  388. Part16.BottomSurface = Enum.SurfaceType.Smooth
  389. Part16.TopSurface = Enum.SurfaceType.Smooth
  390. Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  391. Part16.Position = Vector3.new(72.5999985, 0.803365231, -50.8432655)
  392. Part16.Orientation = Vector3.new(2.37999988, 180, 0)
  393. Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  394. Part17.Parent = Tool0
  395. Part17.Material = Enum.Material.Wood
  396. Part17.BrickColor = BrickColor.new("Burnt Sienna")
  397. Part17.Rotation = Vector3.new(-177.099991, 0, -180)
  398. Part17.Anchored = true
  399. Part17.Size = Vector3.new(0.199999809, 0.919999719, 0.19999969)
  400. Part17.CFrame = CFrame.new(72.5999985, 1.80297112, -50.8531914, -1, 0, 0, 0, 0.998716116, 0.0506570078, 0, 0.0506570078, -0.998716116)
  401. Part17.BottomSurface = Enum.SurfaceType.Smooth
  402. Part17.TopSurface = Enum.SurfaceType.Smooth
  403. Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  404. Part17.Position = Vector3.new(72.5999985, 1.80297112, -50.8531914)
  405. Part17.Orientation = Vector3.new(-2.89999986, 180, 0)
  406. Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  407. Part18.Parent = Tool0
  408. Part18.BrickColor = BrickColor.new("Ghost grey")
  409. Part18.Rotation = Vector3.new(-180, 0, -180)
  410. Part18.Anchored = true
  411. Part18.Size = Vector3.new(0.200571179, 0.349999249, 0.200571075)
  412. Part18.CFrame = CFrame.new(72.6000061, 3.85656738, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  413. Part18.BottomSurface = Enum.SurfaceType.Smooth
  414. Part18.TopSurface = Enum.SurfaceType.Smooth
  415. Part18.Color = Color3.new(0.792157, 0.796079, 0.819608)
  416. Part18.Position = Vector3.new(72.6000061, 3.85656738, -50.8356361)
  417. Part18.Orientation = Vector3.new(0, 180, 0)
  418. Part18.Color = Color3.new(0.792157, 0.796079, 0.819608)
  419. Part19.Parent = Tool0
  420. Part19.Material = Enum.Material.Neon
  421. Part19.BrickColor = BrickColor.new("Maroon")
  422. Part19.Anchored = true
  423. Part19.Shape = Enum.PartType.Ball
  424. Part19.Size = Vector3.new(0.649999797, 0.649999797, 0.649999797)
  425. Part19.CFrame = CFrame.new(72.5800018, 5.6065712, -50.8699837, 1, 0, -0, 0, 1, -8.94069672e-08, 0, 8.94069672e-08, 1)
  426. Part19.BottomSurface = Enum.SurfaceType.Smooth
  427. Part19.TopSurface = Enum.SurfaceType.Smooth
  428. Part19.Color = Color3.new(0.458824, 0, 0)
  429. Part19.Position = Vector3.new(72.5800018, 5.6065712, -50.8699837)
  430. Part19.Color = Color3.new(0.458824, 0, 0)
  431. Part20.Name = "Handle"
  432. Part20.Parent = Tool0
  433. Part20.Material = Enum.Material.Wood
  434. Part20.BrickColor = BrickColor.new("Burnt Sienna")
  435. Part20.Transparency = 1
  436. Part20.Anchored = true
  437. Part20.Size = Vector3.new(0.199999809, 0.749999762, 0.19999969)
  438. Part20.CFrame = CFrame.new(72.6000061, 2.8165679, -50.8356361, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  439. Part20.BottomSurface = Enum.SurfaceType.Smooth
  440. Part20.TopSurface = Enum.SurfaceType.Smooth
  441. Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  442. Part20.Position = Vector3.new(72.6000061, 2.8165679, -50.8356361)
  443. Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
  444. Script21.Name = "weld"
  445. Script21.Parent = Tool0
  446. table.insert(cors,sandbox(Script21,function()
  447. function weld()
  448. local parts,last = {}
  449. local function scan(parent)
  450. for _,v in pairs(parent:GetChildren()) do
  451. if (v:IsA("BasePart")) or (v:IsA("UnionOperation")) or (v:IsA("MeshPart")) then
  452. if (last) then
  453. local w = Instance.new("Weld")
  454. w.Name = ("%s_Weld"):format(v.Name)
  455. w.Part0,w.Part1 = last,v
  456. w.C0 = last.CFrame:inverse()
  457. w.C1 = v.CFrame:inverse()
  458. w.Parent = last
  459. end
  460. last = v
  461. table.insert(parts,v)
  462. end
  463. scan(v)
  464. end
  465. end
  466. scan(script.Parent)
  467. for _,v in pairs(parts) do
  468. v.Anchored = false
  469. v.CanCollide = false
  470. end
  471. end
  472.  
  473. weld()
  474. script:Remove()
  475. end))
  476. for i,v in pairs(mas:GetChildren()) do
  477. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  478. pcall(function() v:MakeJoints() end)
  479. end
  480. mas:Destroy()
  481. for i,v in pairs(cors) do
  482. spawn(function()
  483. pcall(v)
  484. end)
  485. end
  486.  
  487. local tool = Tool0
  488.  
  489. local GF = Vector3.new(0, 0.447, -0.894)
  490. local GR = Vector3.new(0.707, -0.707, 0)
  491. local oringalGF = tool.GripForward
  492. local oringalGR = tool.GripRight
  493.  
  494. local enabled = false
  495.  
  496. function boom(part)
  497.  
  498. local mesh = Instance.new('SpecialMesh')
  499. mesh.MeshType = "FileMesh"
  500. mesh.MeshId = "rbxassetid://3270017"
  501. mesh.Scale = Vector3.new(10,10,15)
  502.  
  503. local eff1 = Instance.new('Part',workspace)
  504. eff1.Position= part.Position
  505. eff1.Shape = "Ball"
  506. eff1.Anchored = true
  507. eff1.CanCollide = false
  508. eff1.Material = Enum.Material.Neon
  509. eff1.BrickColor = BrickColor.new('Gold')
  510. eff1.Transparency = 0
  511. eff1.Size = Vector3.new(5,5,5)
  512. eff1.Name = "eff1"
  513.  
  514. local eff2 = Instance.new('Part',workspace)
  515. eff2.Position= part.Position
  516. eff2.Shape = "Ball"
  517. eff2.Anchored = true
  518. eff2.CanCollide = false
  519. eff2.Material = Enum.Material.Neon
  520. eff2.BrickColor = BrickColor.new('Really red')
  521. eff2.Transparency = 0
  522. eff2.Size = Vector3.new(10,10,10)
  523. eff2.Name = "eff2"
  524.  
  525. local eff3 = Instance.new('Part',workspace)
  526. eff3.Position = part.Position
  527. eff3.Anchored = true
  528. eff3.CanCollide = false
  529. eff3.Orientation = Vector3.new(90,0,0)
  530. eff3.Name = "eff3"
  531. mesh.Parent = eff3
  532.  
  533. for i=1,75 do
  534. workspace.beam.Size = workspace.beam.Size + Vector3.new(6,0,6)
  535. workspace.beam.Transparency = workspace.beam.Transparency + 0.025
  536. eff1.Size = eff1.Size + Vector3.new(6,6,6)
  537. eff1.Transparency = eff1.Transparency + 0.03
  538. eff2.Size = eff2.Size + Vector3.new(6,6,6)
  539. eff2.Transparency = eff2.Transparency + 0.03
  540. eff3.Mesh.Scale = eff3.Mesh.Scale + Vector3.new(8.7,8.7,0)
  541. wait()
  542. end
  543.  
  544. eff1:Destroy()
  545. eff2:Destroy()
  546. eff3:Destroy()
  547. end
  548.  
  549. function click(mouse)
  550. if enabled == false then
  551. enabled = true
  552.  
  553. local sound = Instance.new('Sound')
  554. sound.SoundId = "rbxassetid://762570073"
  555. sound.Volume = 1.5
  556. sound.Parent = char.Head
  557. sound.Name = "talk"
  558.  
  559. tool.GripForward = GF
  560. tool.GripRight = GR
  561.  
  562. local target = Instance.new('Part')
  563. target.Transparency = 1
  564. target.Anchored = true
  565. target.CanCollide = false
  566. target.Position = mouse.hit.p
  567. target.Parent = workspace
  568. target.Name = "target"
  569.  
  570. local beam = Instance.new('Part')
  571. beam.Shape = "Cylinder"
  572. beam.Position = target.Position
  573. beam.BrickColor = BrickColor.new('Really red')
  574. beam.Material = Enum.Material.Neon
  575. beam.Anchored = true
  576. beam.CanCollide = false
  577. beam.Orientation = Vector3.new(0,0,90)
  578. beam.Size = Vector3.new(1000,1000,.2)
  579. beam.Parent = workspace
  580. beam.Name = "beam"
  581.  
  582. game:GetService("Chat"):Chat(char.Head, "EXPLOSION!!!")
  583. sound:Play()
  584.  
  585. wait(1.6)
  586.  
  587. local exps = Instance.new('Sound')
  588. exps.SoundId = "rbxassetid://165970126"
  589. exps.Parent = target
  590. exps.Volume = 2
  591. exps.Name = "expSFX"
  592.  
  593. local exp = Instance.new("Explosion")
  594. exp.Position = target.Position
  595. exp.Parent = game.Workspace
  596. exp.BlastRadius = 50
  597.  
  598. exps:play()
  599.  
  600. boom(target)
  601.  
  602. beam:Destroy()
  603. target:Destroy()
  604.  
  605. wait(1)
  606. sound:Destroy()
  607. exps:Destroy()
  608.  
  609. tool.GripForward = oringalGF
  610. tool.GripRight = oringalGR
  611.  
  612. enabled = false
  613. end
  614. end
  615.  
  616. function equipped(mouse)
  617. mouse.Button1Down:connect(function () click(mouse) end)
  618. end
  619. print('explosion loaded!!!!')
  620. tool.Equipped:connect(equipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement