hecknes

NebulaBomb

Jun 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.98 KB | None | 0 0
  1. --[[hecknes1800]]--
  2. -- This script has been converted to FE by iPxter
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  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})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87. --[[hecknes1800]]--
  88.  
  89.  
  90. local plr = owner
  91. local char = plr.Character
  92. local hum = char:WaitForChild("Humanoid")
  93. print("Do Not Point Up! Reset If You Did!")
  94. local ani = Instance.new("Animation")
  95. ani.Parent = workspace
  96. ani.AnimationId = ("http://www.roblox.com/Asset?ID=3365765115")
  97.  
  98. local loani = game.Workspace[plr.Name].Humanoid:LoadAnimation(ani)
  99.  
  100.  
  101. en = true
  102. ButtonDown = true
  103.  
  104. mouse.KeyDown:connect(function(key)
  105. if en == false then return end
  106. key = key:lower()
  107. if key == "q" then
  108.  
  109. loani:Play()
  110. loani:AdjustSpeed(0.1)
  111. en = false
  112. local val = Instance.new("IntValue",workspace)
  113. local sounds = Instance.new("Sound",workspace)
  114. local pa = Instance.new("Part")
  115. pa.Transparency = 1
  116. local ma = Instance.new("Part")
  117. local weld = Instance.new("Weld")
  118. local shine = Instance.new("Part",ma)
  119.  
  120.  
  121. sounds.Looped = false
  122. sounds.Volume = 10
  123. sounds.SoundId = ("rbxassetid://340505360")
  124. sounds:Play()
  125. local Fr = Instance.new("Part")
  126.  
  127. local woosh = Instance.new("Sound",Fr)
  128. woosh.SoundId = "rbxassetid://1846550529"
  129. shine.Anchored = true
  130. shine.CanCollide = false
  131. shine.Transparency = 1
  132.  
  133.  
  134. local rarm = char["Right Arm"]
  135. ma.CFrame = rarm.CFrame * CFrame.new(0,-1.75,0)
  136. weld.Part0 = rarm
  137. weld.C0 = rarm.CFrame:Inverse()
  138. weld.Part1 = ma
  139. weld.C1 = ma.CFrame:Inverse()
  140. ma.Parent = rarm
  141. weld.Parent = ma
  142.  
  143. shine.CFrame = ma.CFrame
  144. local bbg = Instance.new("BillboardGui",shine)
  145. bbg.MaxDistance = 100
  146. bbg.Size = UDim2.new(0,250,0,250)
  147. local shiner = Instance.new("ImageLabel",bbg)
  148. shiner.Image = ("rbxassetid://313951123")
  149. ma.Anchored = false
  150. ma.CanCollide = false
  151. ma.Transparency = 1
  152. local dec = Instance.new("Decal",ma)
  153. dec.Texture = ("http://www.roblox.com/asset/?id=1003309602")
  154. dec.Face = ("Top")
  155. local dec2 = dec:Clone()
  156. dec2.Parent = ma
  157. dec2.Face = ("Bottom")
  158. shiner.ImageColor3 = Color3.fromRGB(102,0,255)
  159. shiner.BackgroundTransparency = 1
  160. shiner.BorderSizePixel = 0
  161. shiner.Size = UDim2.new(0,250,0,250)
  162. ma.Size = Vector3.new(2,0.000001,2)
  163. pa.Parent = Fr
  164.  
  165. Fr.Shape = ("Ball")
  166. Fr.Transparency = 1
  167. Fr.Material = ("Neon")
  168. Fr.Parent = char
  169. Fr.Anchored = true
  170. Fr.CFrame = char.Torso.CFrame*CFrame.new(0,5,0)
  171. Fr.BrickColor = BrickColor.new("Really black")
  172. Fr.Name = ("NebulaBomb")
  173. Fr.CanCollide = false
  174. for i = 1,20 do
  175. char.Torso.Anchored = true
  176. bbg.Size = bbg.Size + UDim2.new(0,25,0,25)
  177. shiner.Size = shiner.Size + UDim2.new(0,25,0,25)
  178. shiner.ImageTransparency = shiner.ImageTransparency + 0.05
  179. ma.Size = ma.Size + Vector3.new(0.2,0,0.2)
  180. wait(0.05)
  181. end
  182.  
  183. Fr.Transparency = 1
  184.  
  185. ---Forces---
  186. local BG = Instance.new("BodyGyro", char.Torso)
  187. BG.Name = "SkillGyro"
  188. BG.D = 100
  189. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  190. local BP = Instance.new("BodyPosition", char.Torso)
  191. BP.Position = char.HumanoidRootPart.Position
  192. BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  193. pa.Anchored = true
  194. pa.CFrame = Fr.CFrame
  195. ------------
  196.  
  197. --Charging
  198. wait(2)
  199. char.Torso.Anchored = false
  200. while ButtonDown == true do
  201. local pos = mouse.Hit.p
  202. val.Value = val.Value + 1
  203. BG.CFrame = CFrame.new(char.Torso.Position, pos)
  204. Fr.Size = Fr.Size+Vector3.new(0.008,0.008,0.008)
  205. Fr.CFrame = Fr.CFrame*CFrame.new(0,0.008,0)
  206. pa.CFrame = pa.CFrame*CFrame.new(0,0.01,0)
  207. pa.Orientation = pa.Orientation+Vector3.new(0.5,0.5,0.5)
  208. ma.Size = ma.Size+Vector3.new(0.01,0,0.01)
  209. ma.CFrame = ma.CFrame*CFrame.new(0,0.005,0)
  210. wait()
  211. end
  212.  
  213. woosh:Play()
  214. local fire = Instance.new("Fire",Fr)
  215. fire.Heat = 9
  216. fire.Size = 7
  217. fire.Color = Color3.fromRGB(15,7,236)
  218. fire.SecondaryColor = Color3.fromRGB(255,8,0)
  219. Fr.Transparency = 0
  220. wait(1)
  221. ma:Destroy()
  222. char.Torso.Anchored = false
  223. pa.Anchored = false
  224. --
  225.  
  226.  
  227.  
  228.  
  229. Fr.CFrame = char.Torso.CFrame*CFrame.new(0,0, -5)
  230. Fr.Anchored = false
  231. local BV = Instance.new("BodyVelocity")
  232. BV.Parent = Fr
  233. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  234. BV.Velocity = char.Torso.CFrame.lookVector*100
  235. pa.Transparency = 0.7
  236. wait()
  237. pa.Transparency = 0.8
  238. wait()
  239. pa.Transparency = 0.9
  240. wait()
  241. pa.Transparency = 1
  242. local ten = true
  243.  
  244.  
  245. ---Damaging--
  246. Fr.Touched:connect(function(hit)
  247. if ten == false then return end
  248. ten = false
  249. local ehum = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  250. if ehum and ehum ~= hum then
  251. ehum:TakeDamage(20+val.Value)
  252. Fr.Transparency = 1
  253. Fr.Anchored = true
  254. Fr.CanCollide = false
  255. local sound = Instance.new("Sound",workspace)
  256. sound.SoundId = ("rbxassetid://138186576")
  257. sound:Play()
  258. elseif hit.Anchored == true and hit.CanCollide == true then
  259. local sound = Instance.new("Sound",workspace)
  260. sound.SoundId = ("rbxassetid://138186576")
  261. sound:Play()
  262. hit.Color = Color3.fromRGB(2,2,2)
  263. hit.Material = ("Neon")
  264. Fr.Transparency = 1
  265. fire:Destroy()
  266. Fr.Anchored = true
  267. Fr.CanCollide = false
  268. local cloud = Instance.new("Part",Fr)
  269. local ESpike = Instance.new("Part",Fr)
  270.  
  271. cloud.CanCollide = true
  272. ESpike.CanCollide = false
  273. cloud.Anchored = true
  274. ESpike.Anchored = true
  275. local clm = Instance.new("SpecialMesh",cloud)
  276. ESpike.Shape = ("Cylinder")
  277. clm.Parent = cloud
  278. clm.MeshId = ("rbxassetid://700927324")
  279. clm.Scale = Vector3.new(10,10,10)
  280. ESpike.Size = Vector3.new(700,30,30)
  281. cloud.Position = Fr.Position
  282. ESpike.Position = Fr.Position + Vector3.new(0,50,0)
  283. ESpike.Material = ("Neon")
  284. ESpike.BrickColor = BrickColor.new("Dark stone grey")
  285. ESpike.Orientation = Vector3.new(0, 180, -90)
  286. cloud.BrickColor = BrickColor.new("Dark stone grey")
  287. for i = 1, 20 do
  288. clm.Scale = clm.Scale+Vector3.new(0.05,0.05,0.05)
  289. ESpike.Size = ESpike.Size + Vector3.new(0.06,10,0.06)
  290. wait()
  291. end
  292. for i = 1,10 do
  293. ESpike.Transparency = ESpike.Transparency + 0.1
  294. cloud.Transparency = cloud.Transparency + 0.3
  295. wait()
  296. end
  297. ESpike:Destroy()
  298. cloud:Destroy()
  299. end
  300. Fr:Destroy()
  301. BG:remove()
  302. BP:remove()
  303. sounds:Stop()
  304. hit.Color = Color3.fromRGB(2,2,2)
  305. wait(0.1)
  306. hit.Color = Color3.fromRGB(5,5,5)
  307. wait(0.1)
  308. hit.Color = Color3.fromRGB(8,8,8)
  309. wait(0.1)
  310. hit.Color = Color3.fromRGB(11,11,11)
  311. wait(0.1)
  312. hit.Color = Color3.fromRGB(14,14,14)
  313.  
  314. ten = true
  315. end)
  316.  
  317. wait(3)
  318. ButtonDown = true
  319.  
  320. en = true
  321. end
  322.  
  323. end)
  324.  
  325.  
  326. mouse.KeyUp:connect(function(key)
  327. key = key:lower()
  328. if key == "q" then
  329. wait(0.5)
  330. loani:Stop()
  331. ButtonDown = false
  332.  
  333. end
  334. end)
Add Comment
Please, Sign In to add comment