hecknes

Lightning Field

Nov 7th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  2. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  3. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  4. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  5. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  6. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  7. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  8. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  9. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  10. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  11. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  12. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  13. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  14. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  15. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  16. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  17. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  18. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  19. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  20. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  21. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  22. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  23. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  24. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  25. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  26. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  27. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800
  28. -- hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,hecknes1800,
  29.  
  30.  
  31. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  32. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  33. do
  34. print("FE Compatibility code by Mokiros")
  35. script.Parent = Player.Character
  36.  
  37. --RemoteEvent for communicating
  38. local Event = Instance.new("RemoteEvent")
  39. Event.Name = "UserInput_Event"
  40.  
  41. --Fake event to make stuff like Mouse.KeyDown work
  42. local function fakeEvent()
  43. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  44. t.connect = t.Connect
  45. return t
  46. end
  47.  
  48. --Creating fake input objects with fake variables
  49. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  50. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  51. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  52. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  53. end}
  54. --Merged 2 functions into one by checking amount of arguments
  55. CAS.UnbindAction = CAS.BindAction
  56.  
  57. --This function will trigger the events that have been :Connect()'ed
  58. local function te(self,ev,...)
  59. local t = m[ev]
  60. if t and t._fakeEvent and t.Function then
  61. t.Function(...)
  62. end
  63. end
  64. m.TrigEvent = te
  65. UIS.TrigEvent = te
  66.  
  67. Event.OnServerEvent:Connect(function(plr,io)
  68. if plr~=Player then return end
  69. if io.isMouse then
  70. m.Target = io.Target
  71. m.Hit = io.Hit
  72. else
  73. local b = io.UserInputState == Enum.UserInputState.Begin
  74. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  75. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  76. end
  77. for _,t in pairs(CAS.Actions) do
  78. for _,k in pairs(t.Keys) do
  79. if k==io.KeyCode then
  80. t.Function(t.Name,io.UserInputState,io)
  81. end
  82. end
  83. end
  84. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  85. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  86. end
  87. end)
  88. Event.Parent = NLS([==[
  89. local Player = game:GetService("Players").LocalPlayer
  90. local Event = script:WaitForChild("UserInput_Event")
  91.  
  92. local UIS = game:GetService("UserInputService")
  93. local input = function(io,a)
  94. if a then return end
  95. --Since InputObject is a client-side instance, we create and pass table instead
  96. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  97. end
  98. UIS.InputBegan:Connect(input)
  99. UIS.InputEnded:Connect(input)
  100.  
  101. local Mouse = Player:GetMouse()
  102. local h,t
  103. --Give the server mouse data 30 times every second, but only if the values changed
  104. --If player is not moving their mouse, client won't fire events
  105. while wait(1/30) do
  106. if h~=Mouse.Hit or t~=Mouse.Target then
  107. h,t=Mouse.Hit,Mouse.Target
  108. Event:FireServer({isMouse=true,Target=t,Hit=h})
  109. end
  110. end]==],Player.Character)
  111. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  112. end
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. wait(1)
  131.  
  132. local h = Instance.new("Part")
  133.  
  134. h.BrickColor = BrickColor.new("Toothpaste")
  135.  
  136. h.Material = ("Neon")
  137.  
  138. h.Transparency = 1
  139.  
  140. h.Shape = ("Ball")
  141.  
  142. h.Name = ("Handle")
  143.  
  144. local plr = owner
  145. local char = plr.Character
  146. local hum = char:WaitForChild("Humanoid")
  147.  
  148. local tool = Instance.new("Tool")
  149.  
  150. tool.Parent = plr.Backpack
  151. tool.Name = ("Explosion")
  152.  
  153. h.Parent = tool
  154.  
  155.  
  156. local en = true
  157. tool.Activated:connect(function()
  158. if not en then return end
  159. en = false
  160. hum.WalkSpeed = 0
  161. local bg = Instance.new("BillboardGui")
  162. bg.Parent = h
  163. local il = Instance.new("ImageLabel")
  164. il.Parent = bg
  165. il.Image = ("http://www.roblox.com/asset/?id=259835200")
  166. il.BackgroundTransparency = 1
  167. bg.MaxDistance = 30
  168. bg.Size = UDim2.new(0,100,0,100)
  169. il.Size = UDim2.new(0,100,0,100)
  170. print("activated")
  171. local animation = Instance.new("Animation")
  172. animation.Parent = tool
  173. animation.AnimationId = "https://roblox.com/Asset?ID=2549108767"
  174. local ani = hum:LoadAnimation(animation)
  175. ani:Play()
  176.  
  177.  
  178. wait(0.65)
  179. tool.Unequipped:connect(function()
  180. il.ImageTransparency = 1
  181. end)
  182. local blastring = Instance.new("Part",game.Workspace)
  183. local impact = Instance.new("Part",game.Workspace)
  184. impact.Position = char["Right Arm"].Position
  185. impact.Shape = ("Ball")
  186. impact.CanCollide = true
  187. impact.Anchored = true
  188. impact.BrickColor = BrickColor.new("Toothpaste")
  189. impact.Transparency = 1
  190. impact.Material = ("Neon")
  191. local ten = true
  192.  
  193.  
  194.  
  195. blastring.CFrame = char["Right Arm"].CFrame
  196. local mesh = Instance.new("SpecialMesh",blastring)
  197. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  198. blastring.Transparency = 0.6
  199. blastring.CanCollide = false
  200. blastring.Anchored = true
  201. blastring.BrickColor = BrickColor.new("Toothpaste")
  202. blastring.Orientation = Vector3.new(0,0,0)
  203.  
  204.  
  205. -- blast ring explosion
  206. impact.Transparency = 0.5
  207. local tweeningService = game:GetService("TweenService")
  208.  
  209. local tweeningInfo = TweenInfo.new(
  210. 3,
  211. Enum.EasingStyle.Linear,
  212. Enum.EasingDirection.InOut,
  213. 0,
  214. false,
  215. 2
  216.  
  217.  
  218.  
  219. )
  220.  
  221. local PartPR = {
  222.  
  223.  
  224. Scale = Vector3.new(100,25,100)
  225.  
  226. }
  227.  
  228. local tween = tweeningService:Create(mesh,tweeningInfo,PartPR)
  229. tween:Play()
  230.  
  231.  
  232.  
  233.  
  234. -- blast ring fading
  235. local tweeningService = game:GetService("TweenService")
  236.  
  237. local tweeningInfo = TweenInfo.new(
  238. 3,
  239. Enum.EasingStyle.Linear,
  240. Enum.EasingDirection.InOut,
  241. 0,
  242. false,
  243. 2
  244.  
  245.  
  246.  
  247. )
  248.  
  249. local PartPR = {
  250.  
  251.  
  252. Transparency = 1
  253.  
  254. }
  255.  
  256. local tween = tweeningService:Create(blastring,tweeningInfo,PartPR)
  257. tween:Play()
  258.  
  259.  
  260. -- impact
  261. local tweeningService = game:GetService("TweenService")
  262.  
  263. local tweeningInfo = TweenInfo.new(
  264. 3,
  265. Enum.EasingStyle.Linear,
  266. Enum.EasingDirection.InOut,
  267. 0,
  268. false,
  269. 2
  270.  
  271.  
  272.  
  273. )
  274.  
  275. local PartPR = {
  276.  
  277.  
  278. Size = Vector3.new(100,50,100)
  279.  
  280. }
  281.  
  282. local tween = tweeningService:Create(impact,tweeningInfo,PartPR)
  283. tween:Play()
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290. -- impact fade
  291. local tweeningService = game:GetService("TweenService")
  292.  
  293. local tweeningInfo = TweenInfo.new(
  294. 3,
  295. Enum.EasingStyle.Linear,
  296. Enum.EasingDirection.InOut,
  297. 0,
  298. false,
  299. 2
  300.  
  301.  
  302.  
  303. )
  304.  
  305. local PartPR = {
  306.  
  307.  
  308. Transparency = 1
  309.  
  310. }
  311.  
  312. local tween = tweeningService:Create(impact,tweeningInfo,PartPR)
  313. tween:Play()
  314. impact.Touched:Connect(function(hit)
  315. local ehum = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  316. if ehum and ehum ~= hum then
  317. ehum:TakeDamage(math.huge)
  318. end
  319. end)
  320. impact.CanCollide = false
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. wait(1)
  336. hum.WalkSpeed = 16
  337.  
  338. wait(5)
  339. impact:Destroy()
  340. blastring:Destroy()
  341.  
  342. en = true
  343. end)
Advertisement
Add Comment
Please, Sign In to add comment