Advertisement
WagnerJunio07

BOOM

Feb 17th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.52 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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 UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  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. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. Ply = owner
  88. --FIXED WITH TRIGECTORY's CheatSheet--
  89. cheatsheetplr = owner
  90. i = Instance.new("NumberValue", cheatsheetplr )
  91. i.Name = "FPSCH"
  92. Bin = Instance.new("HopperBin", cheatsheetplr .Backpack)
  93. script.Parent = Bin
  94. local cf = CFrame.new
  95. local RbxUtility = LoadLibrary("RbxUtility")
  96. local Create = RbxUtility.Create
  97. RW = Create("Weld")({Name = "Right Shoulder", Part0 = Tor, C0 = CFrame.new(1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
  98.  
  99. 0), Part1 = RA, Parent = Tor})
  100. LW = Create("Weld")({Name = "Left Shoulder", Part0 = Tor, C0 = CFrame.new(-1.5, 0.5, 0), C1 = CFrame.new(0, 0.5,
  101.  
  102. 0), Part1 = LA, Parent = Tor})
  103. wait(.05)
  104. --Saz
  105.  
  106. debounce=true
  107. etime=0
  108. etimem=20
  109. down=false
  110.  
  111. vPlayer=owner
  112. cPlayer=nil
  113. Humanoid=nil
  114.  
  115. Welds={}
  116.  
  117. stopVictoly=function()
  118.  
  119. for _,v in pairs(Welds) do
  120. v.Parent = cPlayer.Torso
  121. end
  122.  
  123. wait(.2)
  124.  
  125. g1:Remove() g2:Remove() g3:Remove() g4:Remove() g5:Remove()
  126.  
  127. b1:Remove() b2:Remove()
  128.  
  129. p1:Remove() p2:Remove()
  130.  
  131. bpos:Remove()
  132. brot:Remove()
  133.  
  134. Head.Anchored=false
  135.  
  136. Humanoid.PlatformStand=false
  137.  
  138. end
  139. startVictoly=function()
  140.  
  141. Welds={}
  142.  
  143. cPlayer=vPlayer.Character
  144. Humanoid = nil
  145. for _,v in pairs(cPlayer:children()) do
  146. if v.className=="Humanoid" then
  147. Humanoid=v
  148. end
  149. if v.Name=="Torso" then
  150. for __,vv in pairs(v:children()) do
  151. if vv:IsA("JointInstance") then
  152. table.insert(Welds,vv)
  153. end
  154. end
  155. end
  156. end
  157.  
  158. Torso = cPlayer.Torso
  159. Head = cPlayer.Head
  160. RightArm = cPlayer["Right Arm"]
  161. LeftArm = cPlayer["Left Arm"]
  162. RightLeg = cPlayer["Right Leg"]
  163. LeftLeg = cPlayer["Left Leg"]
  164.  
  165. Head.Anchored=true
  166.  
  167. headpos = Head.CFrame.p
  168.  
  169. print("DEAD")
  170.  
  171. Humanoid.PlatformStand=true
  172.  
  173. Torso.Anchored=true
  174.  
  175. p1=Instance.new("Part",cPlayer)
  176. p1.Anchored=true
  177. p1.formFactor="Custom"
  178. p1.Size=Vector3.new(1,1,1)
  179. p1.TopSurface=0
  180. p1.BottomSurface=0
  181. p1.CanCollide=false
  182. p1.Name="AnchorR"
  183. p1.CFrame = Torso.CFrame * CFrame.new(.5,-3.5,0)
  184. p1.Transparency=1
  185.  
  186. p2=Instance.new("Part",cPlayer)
  187. p2.Anchored=true
  188. p2.formFactor="Custom"
  189. p2.Size=Vector3.new(1,1,1)
  190. p2.TopSurface=0
  191. p2.BottomSurface=0
  192. p2.CanCollide=false
  193. p2.Name="AnchorL"
  194. p2.CFrame = Torso.CFrame * CFrame.new(-.5,-3.5,0)
  195. p2.Transparency=1
  196.  
  197. g1=Instance.new("Glue",RightLeg)
  198. g1.Part0 = Torso
  199. g1.Part1 = RightLeg
  200. g1.C0 = CFrame.new(.5,-2,0)
  201. g1.C1 = CFrame.new(0,0,0)
  202. g1.F0 = Vector3.new(0,1,0)
  203. g1.F1 = Vector3.new(0,1,0)
  204. g1.F2 = Vector3.new(0,1,0)
  205. g1.F3 = Vector3.new(0,1,0)
  206.  
  207. g2=Instance.new("Glue",p1)
  208. g2.Part0 = p1
  209. g2.Part1 = RightLeg
  210. g2.C0 = CFrame.new(0,1.5,0)
  211. g2.C1 = CFrame.new(0,0,0)
  212. g2.F0 = Vector3.new(.25,-1,.25)
  213. g2.F1 = Vector3.new(.25,-1,-.25)
  214. g2.F2 = Vector3.new(-.25,-1,.25)
  215. g2.F3 = Vector3.new(-.25,-1,-.25)
  216.  
  217. g3=Instance.new("Glue",LeftLeg)
  218. g3.Part0 = Torso
  219. g3.Part1 = LeftLeg
  220. g3.C0 = CFrame.new(-.5,-2,0)
  221. g3.C1 = CFrame.new(0,0,0)
  222. g3.F0 = Vector3.new(0,1,0)
  223. g3.F1 = Vector3.new(0,1,0)
  224. g3.F2 = Vector3.new(0,1,0)
  225. g3.F3 = Vector3.new(0,1,0)
  226.  
  227. g4=Instance.new("Glue",p2)
  228. g4.Part0 = p2
  229. g4.Part1 = LeftLeg
  230. g4.C0 = CFrame.new(0,1.5,0)
  231. g4.C1 = CFrame.new(0,0,0)
  232. g4.F0 = Vector3.new(.25,-1,.25)
  233. g4.F1 = Vector3.new(.25,-1,-.25)
  234. g4.F2 = Vector3.new(-.25,-1,.25)
  235. g4.F3 = Vector3.new(-.25,-1,-.25)
  236.  
  237. g5=Instance.new("Glue",Torso)
  238. g5.Part0 = Head
  239. g5.Part1 = Torso
  240. g5.C0 = CFrame.new(0,0,0)
  241. g5.C1 = CFrame.new(0,1.5,0)
  242. g5.F0 = Vector3.new(0,0,0)
  243. g5.F1 = Vector3.new(0,0,0)
  244. g5.F2 = Vector3.new(0,0,0)
  245. g5.F3 = Vector3.new(0,0,0)
  246.  
  247. for _,v in pairs(Welds) do
  248. if v.Name~="Neck" then
  249. print(v.Name)
  250. v.Parent = nil
  251. if v.Name=="Right Shoulder" then
  252. RSC0 = v.C0
  253. RSC1 = v.C1
  254. elseif v.Name=="Left Shoulder" then
  255. LSC0 = v.C0
  256. LSC1 = v.C1
  257. end
  258. end
  259. end
  260.  
  261. b1=Instance.new("Motor6D",RightArm)
  262. b1.Part0 = Torso
  263. b1.Part1 = RightArm
  264. b1.C0 = RSC0
  265. b1.C1 = RSC1 * CFrame.new(0,.25,0)
  266.  
  267. b2=Instance.new("Motor6D",LeftArm)
  268. b2.Part0 = Torso
  269. b2.Part1 = LeftArm
  270. b2.C0 = LSC0
  271. b2.C1 = LSC1 * CFrame.new(0,.25,0)
  272.  
  273. pos=Torso.Position
  274. brot=Instance.new("BodyAngularVelocity",Torso)
  275. brot.P=2250
  276. brot.maxTorque=Vector3.new(8000000,8000000,8000000)
  277. bpos=Instance.new("BodyPosition",Torso)
  278. bpos.P=4250
  279. bpos.D=150
  280. bpos.maxForce=Vector3.new(8000000000,0,8000000000)
  281. bpos.position=Torso.Position
  282.  
  283. Torso.RotVelocity=Vector3.new()
  284. Torso.Velocity=Vector3.new()
  285.  
  286.  
  287. for i=1, 5 do
  288. for _,v in pairs(cPlayer:children()) do
  289. if v:IsA("BasePart") then
  290. v.Velocity=Vector3.new()
  291. v.RotVelocity=Vector3.new()
  292. end
  293. end
  294. wait(.05)
  295. end
  296.  
  297. Torso.Neck.Parent=nil
  298. Torso.Anchored=false
  299.  
  300. ex=0
  301. em = 0
  302. elo = 0
  303.  
  304. local mus = Instance.new("Sound",Torso)
  305. mus.Volume = 1
  306. mus.SoundId="http://www.roblox.com/asset/?id=230597205"
  307. mus:Play()
  308.  
  309. ded=false
  310.  
  311. wait()
  312.  
  313. li=Instance.new("PointLight",Torso)
  314. li.Range=25
  315. li.Brightness=5
  316. li.Shadows=true
  317.  
  318. pos=Torso.CFrame
  319.  
  320. while down do
  321. game:GetService("RunService").Heartbeat:wait()
  322. em = em+1
  323. elo = elo+1
  324. if em == 11 then
  325. brot.angularvelocity=Vector3.new(math.random(-26,26),math.random(-20,20)/6,math.random(-26,26)/2)
  326. bpos.position = (pos * CFrame.new(math.random(-20,20)/10,0,math.random(-20,20)/20)).p
  327. em = math.random(0,4)
  328. li.Color=Color3.new(math.random(100,255)/255,math.random(100,255)/255,math.random(100,255)/255)
  329. end
  330.  
  331. b1.C0 = RSC0 * CFrame.new(math.cos(math.rad(elo*15))/20,.5,math.sin(math.rad(elo*15))/30) * CFrame.Angles(math.rad(ex/8)*elo - math.pi/3,math.cos(math.rad(elo*15))/100,math.sin(elo/8)*7)
  332. b2.C0 = LSC0 * CFrame.new(math.cos(math.rad(elo*15))/20,.5,math.sin(math.rad(elo*15))/30) * CFrame.Angles(math.rad(-ex/8)*elo - math.pi/3,math.sin(math.rad(elo*15))/100,-math.cos(elo/8)*7)
  333.  
  334. ex = ex + math.random(-5,5)/5
  335. if ex > 50 then
  336. ex = 50
  337. elseif ex < 10 then
  338. ex = 20
  339. end
  340.  
  341. if elo > 15 then
  342.  
  343. if g1.Parent==nil or g2.Parent==nil or g3.Parent==nil or g4.Parent==nil or g5.Parent==nil or Humanoid.Health <= 0 then
  344. ded = true
  345. break
  346. end
  347. if g1.Part0==nil or g2.Part0==nil or g3.Part0==nil or g4.Part0==nil or g5.Part0==nil then
  348. ded = true
  349. break
  350. end
  351. if RightArm.Parent == nil or LeftArm.Parent == nil or LeftLeg.Parent==nil or RightLeg.Parent==nil then
  352. ded=true
  353. break
  354. end
  355.  
  356. end
  357.  
  358. end
  359.  
  360. li:Remove()
  361.  
  362. mus:Stop()
  363.  
  364. if ded then
  365. Head.Anchored=false
  366.  
  367. for _,v in pairs(cPlayer:children()) do
  368. if v:IsA("BasePart") then
  369. v:BreakJoints()
  370. v.CFrame = CFrame.new(Torso.Position + Vector3.new(math.random(-2,2),math.random(-1,2),math.random(-2,2))) * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  371. v.Velocity=Vector3.new(0,0,0)
  372. end
  373. end
  374.  
  375. e=Instance.new("Explosion",workspace)
  376. e.BlastRadius=10
  377. e.BlastPressure=0
  378. e.Position=Torso.Position
  379. e.Hit:connect(function(hit) if hit.Parent == cPlayer and hit.Name~="AnchorR" and hit.Name~="AnchorL" then if hit:FindFirstChild("Fire") == nil then Instance.new("Fire",hit) end hit:BreakJoints() hit.Velocity = (e.Position - hit.Position).unit * 80 hit.RotVelocity = hit.Velocity end end)
  380.  
  381. s=Instance.new("Sound",Head)
  382. s.SoundId="http://www.roblox.com/asset/?id=230597277"
  383. s.Volume=1
  384. s:Play()
  385.  
  386. s=Instance.new("Sound",p1)
  387. s.SoundId="http://www.roblox.com/asset/?id=221920821"
  388. s.Volume=1
  389. s.Pitch=1.25
  390. s:Play()
  391. end
  392.  
  393. wait(.5)
  394. mus:Remove()
  395.  
  396. end
  397.  
  398. onEquip=function(mouse)
  399. mouse.Button1Down:connect(function() down=true startVictoly() end)
  400. mouse.Button1Up:connect(function() down=false stopVictoly() end)
  401. end
  402. script.Parent.Selected:connect(onEquip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement