Advertisement
sIendytubble

testigng

Mar 20th, 2020
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.84 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(),Button2Up=fakeEvent(),Button2Down=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. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  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.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v 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 rawget(self,s) or _rg:GetService(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. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"ErikysXmbra",g.Players.ErikysXmbra)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.ErikySxmbra
  135. end
  136. function NOOOOOOOO()
  137. print("Nuke Em' All")
  138.  
  139. local CloudID= "http://www.roblox.com/asset/?id=1095708"
  140. local ColorTexture = "http://www.roblox.com/asset/?ID=1361097"
  141. local RingID = "http://www.roblox.com/asset/?id=3270017"
  142. local SphereID = "http://www.roblox.com/asset/?id=1185246"
  143.  
  144. local BasePosition = owner.Character.Torso.Position
  145.  
  146. local Size = 1000
  147.  
  148. local Exp = Instance.new("Model")
  149. Exp.Name = "ATOMICEXPLOSION"
  150. Exp.Parent = game.Workspace
  151.  
  152. local BasePart = Instance.new("Part")
  153. BasePart.formFactor = 0
  154. BasePart.TopSurface = 0
  155. BasePart.BottomSurface = 0
  156. BasePart.Anchored = true
  157. BasePart.Locked = true
  158. BasePart.CanCollide = false
  159.  
  160. local BaseMesh = Instance.new("SpecialMesh")
  161. BaseMesh.MeshType = "FileMesh"
  162.  
  163. local CloudMesh = BaseMesh:clone()
  164. CloudMesh.MeshId = CloudID
  165. CloudMesh.TextureId = ColorTexture
  166. CloudMesh.VertexColor = Vector3.new(0.9,0.6,0)
  167.  
  168. local RingMesh = BaseMesh:clone()
  169. RingMesh.MeshId = RingID
  170.  
  171. local SphereMesh = BaseMesh:clone()
  172. SphereMesh.MeshId = SphereID
  173.  
  174. local Clouds = {}
  175. local ShockWave = {}
  176.  
  177.  
  178. function Effects()
  179. delay(0,function()
  180. for i = 5, 1,-0.01 do
  181. wait()
  182. game.Lighting.Brightness = i
  183. end
  184. end)
  185. end
  186.  
  187. function Destruction(Pos,Radius)
  188. local function Destroy(Model)
  189. for i ,v in ipairs(Model:getChildren()) do
  190. if v:isA("BasePart") then
  191. if (v.Position-Pos).magnitude < Radius then
  192. if v.Anchored == false then
  193. v:BreakJoints()
  194. v.Velocity = CFrame.new(v.Position,Pos):vectorToWorldSpace(Vector3.new(math.random(-5,5),5,1000))
  195. v.Material = "CorrodedMetal"
  196. end
  197. end
  198. end
  199. if #v:getChildren() > 0 then
  200. Destroy(v)
  201. end
  202. end
  203. end
  204. Destroy(game.Workspace)
  205. end
  206. function Explode(Pos)
  207.  
  208. local Base = BasePart:clone()
  209. Base.Position = Pos
  210.  
  211. local Mesh = CloudMesh:clone()
  212. Mesh.Parent = Base
  213. Mesh.Scale = Vector3.new(2.5,1,4.5)
  214.  
  215. local PoleBase = BasePart:clone()
  216. PoleBase.Position = Pos+Vector3.new(0,0.1,0)
  217.  
  218. local PoleBaseMesh = CloudMesh:clone()
  219. PoleBaseMesh.Scale = Vector3.new(1.25,2,2.5)
  220. PoleBaseMesh.Parent = PoleBase
  221.  
  222. local Cloud1 = BasePart:clone()
  223. Cloud1.Position = Pos+Vector3.new(0,0.75,0)
  224.  
  225. local Cloud1Mesh = CloudMesh:clone()
  226. Cloud1Mesh.Scale = Vector3.new(0.5,3,1)
  227. Cloud1Mesh.Parent = Cloud1
  228.  
  229. local Cloud2 = BasePart:clone()
  230. Cloud2.Position = Pos+Vector3.new(0,1.25,0)
  231.  
  232. local Cloud2Mesh = CloudMesh:clone()
  233. Cloud2Mesh.Scale = Vector3.new(0.5,1.5,1)
  234. Cloud2Mesh.Parent = Cloud2
  235.  
  236. local Cloud3 = BasePart:clone()
  237. Cloud3.Position = Pos+Vector3.new(0,1.7,0)
  238.  
  239. local Cloud3Mesh = CloudMesh:clone()
  240. Cloud3Mesh.Scale = Vector3.new(0.5,1.5,1)
  241. Cloud3Mesh.Parent = Cloud3
  242.  
  243. local PoleRing = BasePart:clone()
  244. PoleRing.Position = Pos+Vector3.new(0,1.3,0)
  245. PoleRing.Transparency = 0.2
  246. PoleRing.BrickColor = BrickColor.new("Dark stone grey")
  247. PoleRing.CFrame = PoleRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  248.  
  249. local Mesh = RingMesh:clone()
  250. Mesh.Scale = Vector3.new(1.2,1.2,1.2)
  251. Mesh.Parent = PoleRing
  252.  
  253. local MushCloud = BasePart:clone()
  254. MushCloud.Position = Pos+Vector3.new(0,2.3,0)
  255.  
  256. local MushMesh = CloudMesh:clone() -- lol
  257. MushMesh.Scale = Vector3.new(2.5,1.75,3.5)
  258. MushMesh.Parent = MushCloud
  259.  
  260. local TopCloud = BasePart:clone()
  261. TopCloud.Position = Pos+Vector3.new(0,2.7,0)
  262.  
  263. local TopMesh = CloudMesh:clone()
  264. TopMesh.Scale = Vector3.new(7.5,1.5,1.5)
  265. TopMesh.Parent = TopCloud
  266.  
  267. table.insert(Clouds,Base)
  268. table.insert(Clouds,TopCloud)
  269. table.insert(Clouds,MushCloud)
  270. table.insert(Clouds,Cloud1)
  271. table.insert(Clouds,Cloud2)
  272. table.insert(Clouds,Cloud3)
  273. table.insert(Clouds,PoleBase)
  274. table.insert(Clouds,PoleRing)
  275.  
  276.  
  277. local BigRing = BasePart:clone()
  278. BigRing.Position = Pos
  279. BigRing.CFrame = BigRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  280.  
  281. local BigMesh = RingMesh:clone()
  282. BigMesh.Scale = Vector3.new(5,5,1)
  283. BigMesh.Parent = BigRing
  284.  
  285. local SmallRing = BasePart:clone()
  286. SmallRing.Position = Pos
  287. SmallRing.BrickColor = BrickColor.new("Dark stone grey")
  288. SmallRing.CFrame = SmallRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  289.  
  290. local SmallMesh = RingMesh:clone()
  291. SmallMesh.Scale = Vector3.new(4.6,4.6,1.5)
  292. SmallMesh.Parent = SmallRing
  293.  
  294. local InnerSphere = BasePart:clone()
  295. InnerSphere.Position = Pos
  296. InnerSphere.BrickColor = BrickColor.new("Bright orange")
  297. InnerSphere.Transparency = 0.5
  298.  
  299. local InnerSphereMesh = SphereMesh:clone()
  300. InnerSphereMesh.Scale = Vector3.new(-6.5,-6.5,-6.5)
  301. InnerSphereMesh.Parent = InnerSphere
  302. print("Nuke Em' All")
  303.  
  304. local CloudID= "http://www.roblox.com/asset/?id=1095708"
  305. local ColorTexture = "http://www.roblox.com/asset/?ID=1361097"
  306. local RingID = "http://www.roblox.com/asset/?id=3270017"
  307. local SphereID = "http://www.roblox.com/asset/?id=1185246"
  308.  
  309. local BasePosition = owner.Character.Torso.Position
  310.  
  311. local Size = 1000
  312.  
  313. local Exp = Instance.new("Model")
  314. Exp.Name = "ATOMICEXPLOSION"
  315. Exp.Parent = game.Workspace
  316.  
  317. local BasePart = Instance.new("Part")
  318. BasePart.formFactor = 0
  319. BasePart.TopSurface = 0
  320. BasePart.BottomSurface = 0
  321. BasePart.Anchored = true
  322. BasePart.Locked = true
  323. BasePart.CanCollide = false
  324.  
  325. local BaseMesh = Instance.new("SpecialMesh")
  326. BaseMesh.MeshType = "FileMesh"
  327.  
  328. local CloudMesh = BaseMesh:clone()
  329. CloudMesh.MeshId = CloudID
  330. CloudMesh.TextureId = ColorTexture
  331. CloudMesh.VertexColor = Vector3.new(0.9,0.6,0)
  332.  
  333. local RingMesh = BaseMesh:clone()
  334. RingMesh.MeshId = RingID
  335.  
  336. local SphereMesh = BaseMesh:clone()
  337. SphereMesh.MeshId = SphereID
  338.  
  339. local Clouds = {}
  340. local ShockWave = {}
  341.  
  342.  
  343. function Effects()
  344. delay(0,function()
  345. for i = 5, 1,-0.01 do
  346. wait()
  347. game.Lighting.Brightness = i
  348. end
  349. end)
  350. end
  351.  
  352. function Destruction(Pos,Radius)
  353. local function Destroy(Model)
  354. for i ,v in ipairs(Model:getChildren()) do
  355. if v:isA("BasePart") then
  356. if (v.Position-Pos).magnitude < Radius then
  357. if v.Anchored == false then
  358. v:BreakJoints()
  359. v.Velocity = CFrame.new(v.Position,Pos):vectorToWorldSpace(Vector3.new(math.random(-5,5),5,1000))
  360. v.Material = "CorrodedMetal"
  361. end
  362. end
  363. end
  364. if #v:getChildren() > 0 then
  365. Destroy(v)
  366. end
  367. end
  368. end
  369. Destroy(game.Workspace)
  370. end
  371. function Explode(Pos)
  372.  
  373. local Base = BasePart:clone()
  374. Base.Position = Pos
  375.  
  376. local Mesh = CloudMesh:clone()
  377. Mesh.Parent = Base
  378. Mesh.Scale = Vector3.new(2.5,1,4.5)
  379.  
  380. local PoleBase = BasePart:clone()
  381. PoleBase.Position = Pos+Vector3.new(0,0.1,0)
  382.  
  383. local PoleBaseMesh = CloudMesh:clone()
  384. PoleBaseMesh.Scale = Vector3.new(1.25,2,2.5)
  385. PoleBaseMesh.Parent = PoleBase
  386.  
  387. local Cloud1 = BasePart:clone()
  388. Cloud1.Position = Pos+Vector3.new(0,0.75,0)
  389.  
  390. local Cloud1Mesh = CloudMesh:clone()
  391. Cloud1Mesh.Scale = Vector3.new(0.5,3,1)
  392. Cloud1Mesh.Parent = Cloud1
  393.  
  394. local Cloud2 = BasePart:clone()
  395. Cloud2.Position = Pos+Vector3.new(0,1.25,0)
  396.  
  397. local Cloud2Mesh = CloudMesh:clone()
  398. Cloud2Mesh.Scale = Vector3.new(0.5,1.5,1)
  399. Cloud2Mesh.Parent = Cloud2
  400.  
  401. local Cloud3 = BasePart:clone()
  402. Cloud3.Position = Pos+Vector3.new(0,1.7,0)
  403.  
  404. local Cloud3Mesh = CloudMesh:clone()
  405. Cloud3Mesh.Scale = Vector3.new(0.5,1.5,1)
  406. Cloud3Mesh.Parent = Cloud3
  407.  
  408. local PoleRing = BasePart:clone()
  409. PoleRing.Position = Pos+Vector3.new(0,1.3,0)
  410. PoleRing.Transparency = 0.2
  411. PoleRing.BrickColor = BrickColor.new("Dark stone grey")
  412. PoleRing.CFrame = PoleRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  413.  
  414. local Mesh = RingMesh:clone()
  415. Mesh.Scale = Vector3.new(1.2,1.2,1.2)
  416. Mesh.Parent = PoleRing
  417.  
  418. local MushCloud = BasePart:clone()
  419. MushCloud.Position = Pos+Vector3.new(0,2.3,0)
  420.  
  421. local MushMesh = CloudMesh:clone() -- lol
  422. MushMesh.Scale = Vector3.new(2.5,1.75,3.5)
  423. MushMesh.Parent = MushCloud
  424.  
  425. local TopCloud = BasePart:clone()
  426. TopCloud.Position = Pos+Vector3.new(0,2.7,0)
  427.  
  428. local TopMesh = CloudMesh:clone()
  429. TopMesh.Scale = Vector3.new(7.5,1.5,1.5)
  430. TopMesh.Parent = TopCloud
  431.  
  432. table.insert(Clouds,Base)
  433. table.insert(Clouds,TopCloud)
  434. table.insert(Clouds,MushCloud)
  435. table.insert(Clouds,Cloud1)
  436. table.insert(Clouds,Cloud2)
  437. table.insert(Clouds,Cloud3)
  438. table.insert(Clouds,PoleBase)
  439. table.insert(Clouds,PoleRing)
  440.  
  441.  
  442. local BigRing = BasePart:clone()
  443. BigRing.Position = Pos
  444. BigRing.CFrame = BigRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  445.  
  446. local BigMesh = RingMesh:clone()
  447. BigMesh.Scale = Vector3.new(5,5,1)
  448. BigMesh.Parent = BigRing
  449.  
  450. local SmallRing = BasePart:clone()
  451. SmallRing.Position = Pos
  452. SmallRing.BrickColor = BrickColor.new("Dark stone grey")
  453. SmallRing.CFrame = SmallRing.CFrame*CFrame.Angles(math.rad(90),0,0)
  454.  
  455. local SmallMesh = RingMesh:clone()
  456. SmallMesh.Scale = Vector3.new(4.6,4.6,1.5)
  457. SmallMesh.Parent = SmallRing
  458.  
  459. local InnerSphere = BasePart:clone()
  460. InnerSphere.Position = Pos
  461. InnerSphere.BrickColor = BrickColor.new("Bright orange")
  462. InnerSphere.Transparency = 0.5
  463.  
  464. local InnerSphereMesh = SphereMesh:clone()
  465. InnerSphereMesh.Scale = Vector3.new(-6.5,-6.5,-6.5)
  466. InnerSphereMesh.Parent = InnerSphere
  467.  
  468. local OutterSphere = BasePart:clone()
  469. OutterSphere.Position = Pos
  470. OutterSphere.BrickColor = BrickColor.new("Bright orange")
  471. OutterSphere.Transparency = 0.5
  472.  
  473. local OutterSphereMesh = SphereMesh:clone()
  474. OutterSphereMesh.Scale = Vector3.new(6.5,6.5,6.5)
  475. OutterSphereMesh.Parent = OutterSphere
  476.  
  477. table.insert(ShockWave,BigRing)
  478. table.insert(ShockWave,SmallRing)
  479. table.insert(ShockWave,OutterSphere)
  480. table.insert(ShockWave,InnerSphere)
  481. for i , v in ipairs(ShockWave) do
  482. v.Parent = Exp
  483. end
  484. for i , v in ipairs(Clouds) do
  485. v.Parent = Exp
  486. end
  487. Effects()
  488. delay(0,function()
  489. for resize = Size/2.5, Size*3, 2 do
  490. wait()
  491. BigRing.Mesh.Scale = Vector3.new(5*resize,5*resize,1*resize)
  492. SmallRing.Mesh.Scale = Vector3.new(4.6*resize,4.6*resize,1.5*resize)
  493. InnerSphere.Mesh.Scale = Vector3.new(-6.5*resize,-6.5*resize,-6.5*resize)
  494. OutterSphere.Mesh.Scale = Vector3.new(6.5*resize,6.5*resize,6.5*resize)
  495. Destruction(Pos,3*resize)
  496. end
  497. for fade = 0, 1, 0.01 do
  498. wait()
  499. pcall(function()
  500. for i ,v in ipairs(ShockWave) do
  501. v.Transparency = fade
  502. end
  503. end)
  504. end
  505. for i ,v in ipairs(ShockWave) do
  506. v:Remove()
  507. end
  508. done1 = true
  509. end)
  510. delay(0,function()
  511. for resize = Size/5, Size, 1 do
  512. wait()
  513. pcall(function()
  514. Base.Mesh.Scale = Vector3.new(2.5*resize,1*resize,4.5*resize)
  515. TopCloud.Mesh.Scale = Vector3.new(0.75*resize,1.5*resize,1.5*resize)
  516. MushCloud.Mesh.Scale = Vector3.new(2.5*resize,1.75*resize,3.5*resize)
  517. Cloud1.Mesh.Scale = Vector3.new(0.5*resize,3*resize,1*resize)
  518. Cloud2.Mesh.Scale = Vector3.new(0.5*resize,1.5*resize,1*resize)
  519. Cloud3.Mesh.Scale = Vector3.new(0.5*resize,1.5*resize,1*resize)
  520. PoleBase.Mesh.Scale = Vector3.new(1*resize,2*resize,2.5*resize)
  521. PoleRing.Mesh.Scale = Vector3.new(1.2*resize,1.2*resize,1.2*resize)
  522.  
  523. Base.Position = Pos+Vector3.new(0,0.05*resize,0)
  524. TopCloud.Position = Pos+Vector3.new(0,2.7*resize,0)
  525. MushCloud.Position = Pos+Vector3.new(0,2.3*resize,0)
  526. Cloud1.Position = Pos+Vector3.new(0,0.75*resize,0)
  527. Cloud2.Position = Pos+Vector3.new(0,1.25*resize,0)
  528. Cloud3.Position = Pos+Vector3.new(0,1.7*resize,0)
  529. PoleBase.Position = Pos+Vector3.new(0,0.1*resize,0)
  530. PoleRing.Position = Pos+Vector3.new(0,1.3*resize,0)
  531. end)
  532. end
  533. done2 = true
  534. end)
  535. wait(2)
  536. for y = 0.6,0,-0.0025 do
  537. wait()
  538. for i , v in ipairs(Clouds) do
  539. v.Mesh.VertexColor = Vector3.new(0.9,y,0)
  540. end
  541. end
  542. for r = 0.9,0.5,-0.01 do
  543. wait()
  544. for i , v in ipairs(Clouds) do
  545. v.Mesh.VertexColor = Vector3.new(r,0,0)
  546. end
  547. end
  548. for by = 0,0.5,0.005 do
  549. wait()
  550. for i , v in ipairs(Clouds) do
  551. v.Mesh.VertexColor = Vector3.new(0.5,by,by)
  552. v.Transparency = by*2
  553. end
  554. Base.Mesh.Scale = Base.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  555. TopCloud.Mesh.Scale = TopCloud.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  556. MushCloud.Mesh.Scale = MushCloud.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  557. Cloud1.Mesh.Scale = Cloud1.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  558. Cloud2.Mesh.Scale = Cloud2.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  559. Cloud3.Mesh.Scale = Cloud3.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  560. PoleBase.Mesh.Scale = PoleBase.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  561. PoleRing.Mesh.Scale = PoleRing.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  562. end
  563. done3 = true
  564. while true do wait(1) if done1 and done2 and done3 then break end end
  565. Exp:remove()
  566. wait(20)
  567. Sky:remove()
  568. end
  569.  
  570.  
  571.  
  572.  
  573. Explode(BasePosition)
  574.  
  575. script.Parent:remove()
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585. local OutterSphere = BasePart:clone()
  586. OutterSphere.Position = Pos
  587. OutterSphere.BrickColor = BrickColor.new("Bright orange")
  588. OutterSphere.Transparency = 0.5
  589.  
  590. local OutterSphereMesh = SphereMesh:clone()
  591. OutterSphereMesh.Scale = Vector3.new(6.5,6.5,6.5)
  592. OutterSphereMesh.Parent = OutterSphere
  593.  
  594. table.insert(ShockWave,BigRing)
  595. table.insert(ShockWave,SmallRing)
  596. table.insert(ShockWave,OutterSphere)
  597. table.insert(ShockWave,InnerSphere)
  598. for i , v in ipairs(ShockWave) do
  599. v.Parent = Exp
  600. end
  601. for i , v in ipairs(Clouds) do
  602. v.Parent = Exp
  603. end
  604. Effects()
  605. delay(0,function()
  606. for resize = Size/2.5, Size*3, 2 do
  607. wait()
  608. BigRing.Mesh.Scale = Vector3.new(5*resize,5*resize,1*resize)
  609. SmallRing.Mesh.Scale = Vector3.new(4.6*resize,4.6*resize,1.5*resize)
  610. InnerSphere.Mesh.Scale = Vector3.new(-6.5*resize,-6.5*resize,-6.5*resize)
  611. OutterSphere.Mesh.Scale = Vector3.new(6.5*resize,6.5*resize,6.5*resize)
  612. Destruction(Pos,3*resize)
  613. end
  614. for fade = 0, 1, 0.01 do
  615. wait()
  616. pcall(function()
  617. for i ,v in ipairs(ShockWave) do
  618. v.Transparency = fade
  619. end
  620. end)
  621. end
  622. for i ,v in ipairs(ShockWave) do
  623. v:Remove()
  624. end
  625. done1 = true
  626. end)
  627. delay(0,function()
  628. for resize = Size/5, Size, 1 do
  629. wait()
  630. pcall(function()
  631. Base.Mesh.Scale = Vector3.new(2.5*resize,1*resize,4.5*resize)
  632. TopCloud.Mesh.Scale = Vector3.new(0.75*resize,1.5*resize,1.5*resize)
  633. MushCloud.Mesh.Scale = Vector3.new(2.5*resize,1.75*resize,3.5*resize)
  634. Cloud1.Mesh.Scale = Vector3.new(0.5*resize,3*resize,1*resize)
  635. Cloud2.Mesh.Scale = Vector3.new(0.5*resize,1.5*resize,1*resize)
  636. Cloud3.Mesh.Scale = Vector3.new(0.5*resize,1.5*resize,1*resize)
  637. PoleBase.Mesh.Scale = Vector3.new(1*resize,2*resize,2.5*resize)
  638. PoleRing.Mesh.Scale = Vector3.new(1.2*resize,1.2*resize,1.2*resize)
  639.  
  640. Base.Position = Pos+Vector3.new(0,0.05*resize,0)
  641. TopCloud.Position = Pos+Vector3.new(0,2.7*resize,0)
  642. MushCloud.Position = Pos+Vector3.new(0,2.3*resize,0)
  643. Cloud1.Position = Pos+Vector3.new(0,0.75*resize,0)
  644. Cloud2.Position = Pos+Vector3.new(0,1.25*resize,0)
  645. Cloud3.Position = Pos+Vector3.new(0,1.7*resize,0)
  646. PoleBase.Position = Pos+Vector3.new(0,0.1*resize,0)
  647. PoleRing.Position = Pos+Vector3.new(0,1.3*resize,0)
  648. end)
  649. end
  650. done2 = true
  651. end)
  652. wait(2)
  653. for y = 0.6,0,-0.0025 do
  654. wait()
  655. for i , v in ipairs(Clouds) do
  656. v.Mesh.VertexColor = Vector3.new(0.9,y,0)
  657. end
  658. end
  659. for r = 0.9,0.5,-0.01 do
  660. wait()
  661. for i , v in ipairs(Clouds) do
  662. v.Mesh.VertexColor = Vector3.new(r,0,0)
  663. end
  664. end
  665. for by = 0,0.5,0.005 do
  666. wait()
  667. for i , v in ipairs(Clouds) do
  668. v.Mesh.VertexColor = Vector3.new(0.5,by,by)
  669. v.Transparency = by*2
  670. end
  671. Base.Mesh.Scale = Base.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  672. TopCloud.Mesh.Scale = TopCloud.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  673. MushCloud.Mesh.Scale = MushCloud.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  674. Cloud1.Mesh.Scale = Cloud1.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  675. Cloud2.Mesh.Scale = Cloud2.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  676. Cloud3.Mesh.Scale = Cloud3.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  677. PoleBase.Mesh.Scale = PoleBase.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  678. PoleRing.Mesh.Scale = PoleRing.Mesh.Scale+Vector3.new(0.1,0.1,0.1)
  679. end
  680. done3 = true
  681. while true do wait(1) if done1 and done2 and done3 then break end end
  682. Exp:remove()
  683. wait(20)
  684. Sky:remove()
  685. end
  686.  
  687.  
  688.  
  689.  
  690. Explode(BasePosition)
  691. end
  692. Player=game.Players.ErikysXmbra
  693. Character=Player.Character
  694. PlayerGui=Player.PlayerGui
  695. Backpack=Player.Backpack
  696. Torso=Character.Torso
  697. Head=Character.Head
  698. Humanoid=Character.Humanoid
  699. m=Instance.new('Model',Character)
  700. LeftArm=Character["Left Arm"]
  701. LeftLeg=Character["Left Leg"]
  702. RightArm=Character["Right Arm"]
  703. RightLeg=Character["Right Leg"]
  704. LS=Torso["Left Shoulder"]
  705. LH=Torso["Left Hip"]
  706. RS=Torso["Right Shoulder"]
  707. RH=Torso["Right Hip"]
  708. Face = Head.face
  709. Neck=Torso.Neck
  710. it=Instance.new
  711. attacktype=1
  712. vt=Vector3.new
  713. cf=CFrame.new
  714. euler=CFrame.fromEulerAnglesXYZ
  715. angles=CFrame.Angles
  716. cloaked=false
  717. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  718. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  719. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  720. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  721. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  722. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  723. RootPart=Character.HumanoidRootPart
  724. RootJoint=RootPart.RootJoint
  725. RootCF=euler(-1.57,0,3.14)
  726. attack = false
  727. attackdebounce = false
  728. deb=false
  729. equipped=true
  730. hand=false
  731. MMouse=nil
  732. combo=0
  733. mana=0
  734. trispeed=.2
  735. attackmode='none'
  736. local idle=0
  737. local Anim="Idle"
  738. local Effects={}
  739. local gun=false
  740. local shoot=false
  741. player=nil
  742. mana=0
  743.  
  744. mouse=Player:GetMouse()
  745. --save shoulders
  746. RSH, LSH=nil, nil
  747. --welds
  748. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  749. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  750. LH=Torso["Left Hip"]
  751. RH=Torso["Right Hip"]
  752. TorsoColor=Torso.BrickColor
  753. function NoOutline(Part)
  754. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  755. end
  756. player=Player
  757. ch=Character
  758. RSH=ch.Torso["Right Shoulder"]
  759. LSH=ch.Torso["Left Shoulder"]
  760. --
  761. RSH.Parent=nil
  762. LSH.Parent=nil
  763. --
  764. RW.Name="Right Shoulder"
  765. RW.Part0=ch.Torso
  766. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  767. RW.C1=cf(0, 0.5, 0)
  768. RW.Part1=ch["Right Arm"]
  769. RW.Parent=ch.Torso
  770. --
  771. LW.Name="Left Shoulder"
  772. LW.Part0=ch.Torso
  773. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  774. LW.C1=cf(0, 0.5, 0)
  775. LW.Part1=ch["Left Arm"]
  776. LW.Parent=ch.Torso
  777.  
  778. Player=game:GetService('Players').ErikysXmbra
  779. Character=Player.Character
  780. Mouse=Player:GetMouse()
  781. m=Instance.new('Model',Character)
  782.  
  783.  
  784. local function weldBetween(a, b)
  785. local weldd = Instance.new("ManualWeld")
  786. weldd.Part0 = a
  787. weldd.Part1 = b
  788. weldd.C0 = CFrame.new()
  789. weldd.C1 = b.CFrame:inverse() * a.CFrame
  790. weldd.Parent = a
  791. return weldd
  792. end
  793.  
  794. function swait(num)
  795. if num==0 or num==nil then
  796. game:service'RunService'.Stepped:wait(0)
  797. else
  798. for i=0,num do
  799. game:service'RunService'.Stepped:wait(0)
  800. end
  801. end
  802. end
  803.  
  804. function nooutline(part)
  805. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  806. end
  807.  
  808. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  809. local fp=it("Part")
  810. fp.formFactor=formfactor
  811. fp.Parent=parent
  812. fp.Reflectance=reflectance
  813. fp.Transparency=transparency
  814. fp.CanCollide=false
  815. fp.Locked=true
  816. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  817. fp.Name=name
  818. fp.Size=size
  819. fp.Position=Character.Torso.Position
  820. nooutline(fp)
  821. fp.Material=material
  822. fp:BreakJoints()
  823. return fp
  824. end
  825.  
  826. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  827. local mesh=it(Mesh)
  828. mesh.Parent=part
  829. if Mesh=="SpecialMesh" then
  830. mesh.MeshType=meshtype
  831. mesh.MeshId=meshid
  832. end
  833. mesh.Offset=offset
  834. mesh.Scale=scale
  835. return mesh
  836. end
  837.  
  838. function weld(parent,part0,part1,c0,c1)
  839. local weld=it("Weld")
  840. weld.Parent=parent
  841. weld.Part0=part0
  842. weld.Part1=part1
  843. weld.C0=c0
  844. weld.C1=c1
  845. return weld
  846. end
  847.  
  848.  
  849. local function CFrameFromTopBack(at, top, back)
  850. local right = top:Cross(back)
  851. return CFrame.new(at.x, at.y, at.z,
  852. right.x, top.x, back.x,
  853. right.y, top.y, back.y,
  854. right.z, top.z, back.z)
  855. end
  856.  
  857. function Triangle(a, b, c)
  858. local edg1 = (c-a):Dot((b-a).unit)
  859. local edg2 = (a-b):Dot((c-b).unit)
  860. local edg3 = (b-c):Dot((a-c).unit)
  861. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  862. a, b, c = a, b, c
  863. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  864. a, b, c = b, c, a
  865. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  866. a, b, c = c, a, b
  867. else
  868. assert(false, "unreachable")
  869. end
  870.  
  871. local len1 = (c-a):Dot((b-a).unit)
  872. local len2 = (b-a).magnitude - len1
  873. local width = (a + (b-a).unit*len1 - c).magnitude
  874.  
  875. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  876.  
  877. local list = {}
  878.  
  879. local TrailColor = ("Dark grey")
  880.  
  881. if len1 > 0.01 then
  882. local w1 = Instance.new('WedgePart', m)
  883. game:GetService("Debris"):AddItem(w1,5)
  884. w1.Material = "SmoothPlastic"
  885. w1.FormFactor = 'Custom'
  886. w1.BrickColor = BrickColor.new(TrailColor)
  887. w1.Transparency = 0
  888. w1.Reflectance = 0
  889. w1.Material = "SmoothPlastic"
  890. w1.CanCollide = false
  891. NoOutline(w1)
  892. local sz = Vector3.new(0.2, width, len1)
  893. w1.Size = sz
  894. local sp = Instance.new("SpecialMesh",w1)
  895. sp.MeshType = "Wedge"
  896. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  897. w1:BreakJoints()
  898. w1.Anchored = true
  899. w1.Parent = workspace
  900. w1.Transparency = 0.7
  901. table.insert(Effects,{w1,"Disappear",.01})
  902. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  903. table.insert(list,w1)
  904. end
  905.  
  906. if len2 > 0.01 then
  907. local w2 = Instance.new('WedgePart', m)
  908. game:GetService("Debris"):AddItem(w2,5)
  909. w2.Material = "SmoothPlastic"
  910. w2.FormFactor = 'Custom'
  911. w2.BrickColor = BrickColor.new(TrailColor)
  912. w2.Transparency = 0
  913. w2.Reflectance = 0
  914. w2.Material = "SmoothPlastic"
  915. w2.CanCollide = false
  916. NoOutline(w2)
  917. local sz = Vector3.new(0.2, width, len2)
  918. w2.Size = sz
  919. local sp = Instance.new("SpecialMesh",w2)
  920. sp.MeshType = "Wedge"
  921. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  922. w2:BreakJoints()
  923. w2.Anchored = true
  924. w2.Parent = workspace
  925. w2.Transparency = 0.7
  926. table.insert(Effects,{w2,"Disappear",.01})
  927. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  928. table.insert(list,w2)
  929. end
  930. return unpack(list)
  931. end
  932.  
  933.  
  934. so = function(id,par,vol,pit)
  935. coroutine.resume(coroutine.create(function()
  936. local sou = Instance.new("Sound",par or workspace)
  937. sou.Volume=vol
  938. sou.Pitch=pit or 1
  939. sou.SoundId=id
  940. swait()
  941. sou:play()
  942. game:GetService("Debris"):AddItem(sou,6)
  943. end))
  944. end
  945.  
  946. function clerp(a,b,t)
  947. local qa = {QuaternionFromCFrame(a)}
  948. local qb = {QuaternionFromCFrame(b)}
  949. local ax, ay, az = a.x, a.y, a.z
  950. local bx, by, bz = b.x, b.y, b.z
  951. local _t = 1-t
  952. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  953. end
  954.  
  955. function QuaternionFromCFrame(cf)
  956. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  957. local trace = m00 + m11 + m22
  958. if trace > 0 then
  959. local s = math.sqrt(1 + trace)
  960. local recip = 0.5/s
  961. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  962. else
  963. local i = 0
  964. if m11 > m00 then
  965. i = 1
  966. end
  967. if m22 > (i == 0 and m00 or m11) then
  968. i = 2
  969. end
  970. if i == 0 then
  971. local s = math.sqrt(m00-m11-m22+1)
  972. local recip = 0.5/s
  973. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  974. elseif i == 1 then
  975. local s = math.sqrt(m11-m22-m00+1)
  976. local recip = 0.5/s
  977. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  978. elseif i == 2 then
  979. local s = math.sqrt(m22-m00-m11+1)
  980. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  981. end
  982. end
  983. end
  984.  
  985. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  986. local xs, ys, zs = x + x, y + y, z + z
  987. local wx, wy, wz = w*xs, w*ys, w*zs
  988. local xx = x*xs
  989. local xy = x*ys
  990. local xz = x*zs
  991. local yy = y*ys
  992. local yz = y*zs
  993. local zz = z*zs
  994. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  995. end
  996.  
  997. function QuaternionSlerp(a, b, t)
  998. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  999. local startInterp, finishInterp;
  1000. if cosTheta >= 0.0001 then
  1001. if (1 - cosTheta) > 0.0001 then
  1002. local theta = math.acos(cosTheta)
  1003. local invSinTheta = 1/math.sin(theta)
  1004. startInterp = math.sin((1-t)*theta)*invSinTheta
  1005. finishInterp = math.sin(t*theta)*invSinTheta
  1006. else
  1007. startInterp = 1-t
  1008. finishInterp = t
  1009. end
  1010. else
  1011. if (1+cosTheta) > 0.0001 then
  1012. local theta = math.acos(-cosTheta)
  1013. local invSinTheta = 1/math.sin(theta)
  1014. startInterp = math.sin((t-1)*theta)*invSinTheta
  1015. finishInterp = math.sin(t*theta)*invSinTheta
  1016. else
  1017. startInterp = t-1
  1018. finishInterp = t
  1019. end
  1020. end
  1021. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1022. end
  1023.  
  1024. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1025.  
  1026.  
  1027. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1028. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1029. end
  1030.  
  1031. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1032. if hit.Parent==nil then
  1033. return
  1034. end
  1035. h=hit.Parent:FindFirstChild("Humanoid")
  1036. for _,v in pairs(hit.Parent:children()) do
  1037. if v:IsA("Humanoid") then
  1038. h=v
  1039. end
  1040. end
  1041. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1042. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1043. end
  1044. if hit.Parent.className=="Hat" then
  1045. hit=hit.Parent.Parent:findFirstChild("Head")
  1046. end
  1047. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1048. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1049. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1050. return
  1051. end]]
  1052. -- hs(hit,1.2)
  1053. c=Instance.new("ObjectValue")
  1054. c.Name="creator"
  1055. c.Value=game:service("Players").ErikysXmbra
  1056. c.Parent=h
  1057. game:GetService("Debris"):AddItem(c,.5)
  1058. Damage=math.random(minim,maxim)
  1059. -- h:TakeDamage(Damage)
  1060. blocked=false
  1061. block=hit.Parent:findFirstChild("Block")
  1062. if block~=nil then
  1063. print(block.className)
  1064. if block.className=="NumberValue" then
  1065. if block.Value>0 then
  1066. blocked=true
  1067. if decreaseblock==nil then
  1068. block.Value=block.Value-1
  1069. end
  1070. end
  1071. end
  1072. if block.className=="IntValue" then
  1073. if block.Value>0 then
  1074. blocked=true
  1075. if decreaseblock~=nil then
  1076. block.Value=block.Value-1
  1077. end
  1078. end
  1079. end
  1080. end
  1081. if blocked==false then
  1082. -- h:TakeDamage(Damage)
  1083. h.Health=h.Health-Damage
  1084. showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  1085. else
  1086. h.Health=h.Health-(Damage/2)
  1087. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1088. end
  1089. if Type=="Knockdown" then
  1090. hum=hit.Parent.Humanoid
  1091. hum.PlatformStand=true
  1092. coroutine.resume(coroutine.create(function(HHumanoid)
  1093. swait(1)
  1094. HHumanoid.PlatformStand=false
  1095. end),hum)
  1096. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1097. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1098. local bodvol=Instance.new("BodyVelocity")
  1099. bodvol.velocity=angle*knockback
  1100. bodvol.P=5000
  1101. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1102. bodvol.Parent=hit
  1103. rl=Instance.new("BodyAngularVelocity")
  1104. rl.P=3000
  1105. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1106. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1107. rl.Parent=hit
  1108. game:GetService("Debris"):AddItem(bodvol,.5)
  1109. game:GetService("Debris"):AddItem(rl,.5)
  1110. elseif Type=="Normal" then
  1111. vp=Instance.new("BodyVelocity")
  1112. vp.P=500
  1113. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1114. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1115. if KnockbackType==1 then
  1116. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1117. elseif KnockbackType==2 then
  1118. vp.velocity=Property.CFrame.lookVector*knockback
  1119. end
  1120. if knockback>0 then
  1121. vp.Parent=hit.Parent.Torso
  1122. end
  1123. game:GetService("Debris"):AddItem(vp,.5)
  1124. elseif Type=="Up" then
  1125. local bodyVelocity=Instance.new("BodyVelocity")
  1126. bodyVelocity.velocity=vt(0,60,0)
  1127. bodyVelocity.P=5000
  1128. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1129. bodyVelocity.Parent=hit
  1130. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1131. rl=Instance.new("BodyAngularVelocity")
  1132. rl.P=3000
  1133. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1134. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1135. rl.Parent=hit
  1136. game:GetService("Debris"):AddItem(rl,.5)
  1137. elseif Type=="Snare" then
  1138. bp=Instance.new("BodyPosition")
  1139. bp.P=2000
  1140. bp.D=100
  1141. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1142. bp.position=hit.Parent.Torso.Position
  1143. bp.Parent=hit.Parent.Torso
  1144. game:GetService("Debris"):AddItem(bp,1)
  1145. elseif Type=="Target" then
  1146. if Targetting==false then
  1147. ZTarget=hit.Parent.Torso
  1148. coroutine.resume(coroutine.create(function(Part)
  1149. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1150. swait(5)
  1151. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1152. end),ZTarget)
  1153. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1154. targetgui=Instance.new("BillboardGui")
  1155. targetgui.Parent=ZTarget
  1156. targetgui.Size=UDim2.new(10,100,10,100)
  1157. targ=Instance.new("ImageLabel")
  1158. targ.Parent=targetgui
  1159. targ.BackgroundTransparency=1
  1160. targ.Image="rbxassetid://4834067"
  1161. targ.Size=UDim2.new(1,0,1,0)
  1162. cam.CameraType="Scriptable"
  1163. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1164. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1165. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1166. Targetting=true
  1167. RocketTarget=ZTarget
  1168. for i=1,Property do
  1169. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1170. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1171. swait()
  1172. end
  1173. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1174. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1175. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1176. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1177. end
  1178. Targetting=false
  1179. RocketTarget=nil
  1180. targetgui.Parent=nil
  1181. cam.CameraType="Custom"
  1182. end
  1183. end
  1184. debounce=Instance.new("BoolValue")
  1185. debounce.Name="DebounceHit"
  1186. debounce.Parent=hit.Parent
  1187. debounce.Value=true
  1188. game:GetService("Debris"):AddItem(debounce,Delay)
  1189. c=Instance.new("ObjectValue")
  1190. c.Name="creator"
  1191. c.Value=Player
  1192. c.Parent=h
  1193. game:GetService("Debris"):AddItem(c,.5)
  1194. CRIT=false
  1195. hitDeb=true
  1196. AttackPos=6
  1197. end
  1198. end
  1199.  
  1200. showDamage=function(Char,Dealt,du,Color)
  1201. m=Instance.new("Model")
  1202. m.Name=tostring(Dealt)
  1203. h=Instance.new("Humanoid")
  1204. h.Health=0
  1205. h.MaxHealth=0
  1206. h.Parent=m
  1207. c=Instance.new("Part")
  1208. c.Transparency=0
  1209. c.BrickColor=Color
  1210. c.Name="Head"
  1211. c.TopSurface=0
  1212. c.BottomSurface=0
  1213. c.formFactor="Plate"
  1214. c.Size=Vector3.new(1,.4,1)
  1215. ms=Instance.new("CylinderMesh")
  1216. ms.Scale=Vector3.new(.8,.8,.8)
  1217. if CRIT==true then
  1218. ms.Scale=Vector3.new(1,1.25,1)
  1219. end
  1220. ms.Parent=c
  1221. c.Reflectance=0
  1222. Instance.new("BodyGyro").Parent=c
  1223. c.Parent=m
  1224. if Char:findFirstChild("Head")~=nil then
  1225. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1226. elseif Char.Parent:findFirstChild("Head")~=nil then
  1227. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1228. end
  1229. f=Instance.new("BodyPosition")
  1230. f.P=2000
  1231. f.D=100
  1232. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1233. f.position=c.Position+Vector3.new(0,3,0)
  1234. f.Parent=c
  1235. game:GetService("Debris"):AddItem(m,.5+du)
  1236. c.CanCollide=false
  1237. m.Parent=workspace
  1238. c.CanCollide=false
  1239. end
  1240.  
  1241. VestHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.01999998, 1.39999998, 1.01999998))
  1242. handleweld=weld(m,Character["Torso"],VestHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, 0.300115585, 3.05175781e-005, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
  1243. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
  1244. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, 0.200000286, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
  1245. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1246. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
  1247. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000152587891, -0.999994516, -0.200134277, -4.47035475e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, -4.4703544e-008))
  1248. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1249. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
  1250. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700012207, -1.00999117, 1.52587891e-005, 0.999999046, 0, 0, 0, 1, 0, 0, 0, 0.999999046))
  1251. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
  1252. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699127197, -1.00999379, 0.000549316406, 0.999997914, 6.38506317e-005, -2.78951497e-015, -6.38804122e-005, 1.00000012, 2.10474918e-015, 2.78942159e-015, 1.39239913e-015, 0.999997854))
  1253. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  1254. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609390259, 0.811340332, -0.0999908447, 3.08029073e-018, -2.69585922e-014, -0.999999642, -0.999999642, -6.39334685e-005, -1.35697087e-018, -6.39334467e-005, 1, -2.6958582e-014))
  1255. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1256. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  1257. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609359741, -0.788131714, -0.0999910831, 3.06354694e-018, -2.34616979e-014, -0.999999642, -0.999999642, -6.39629943e-005, -1.56279636e-018, -6.39629725e-005, 1, -2.34616895e-014))
  1258. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1259. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  1260. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609375, 0.0116882324, -0.0999908447, 3.06355067e-018, -2.34617301e-014, -0.999999642, -0.999999642, -6.39631544e-005, -1.56279822e-018, -6.39631326e-005, 1, -2.34617217e-014))
  1261. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1262. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  1263. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609313965, -0.388046265, -0.0999908447, 3.0635486e-018, -2.34617301e-014, -0.999998927, -0.999998927, -6.39631544e-005, -1.56279719e-018, -6.39630889e-005, 1, -2.34617047e-014))
  1264. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1265. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  1266. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609329224, 0.411483765, -0.0999908447, 3.08028867e-018, -2.69585922e-014, -0.999998927, -0.999998927, -6.39334685e-005, -1.35696984e-018, -6.3933403e-005, 1, -2.69585617e-014))
  1267. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1268. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1269. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000305175781, -0.800010204, 0.89906311, -4.47035724e-008, 6.26018334e-015, 0.999997854, -8.34552054e-008, 1.00000012, -5.15634779e-015, -0.999997914, -5.35364961e-008, -4.47035653e-008))
  1270. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1271. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
  1272. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000228881836, -0.99998498, -0.199783325, -4.47038211e-008, -2.85946115e-012, -0.999997854, -6.3955762e-005, 1.00000012, 1.77753083e-015, 0.999997914, 6.39259815e-005, -4.47038175e-008))
  1273. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1274. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 3.79999971, 0.200000003))
  1275. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356018066, -0.311279297, -0.609542847, 0.865768671, 0.500441432, 0, -0.5004403, 0.865770638, 3.55271241e-015, 3.55271241e-015, 3.02253882e-015, 0.999997854))
  1276. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1277. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  1278. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.799995899, 0.900177002, 1.49011559e-008, 0, -0.999995232, 0, 1, 0, 0.999995232, 0, 1.49011559e-008))
  1279. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1280. FlagLogo=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FlagLogo",Vector3.new(3, 1.99999988, 0.200000003))
  1281. FlagLogoweld=weld(m,VestHandle,FlagLogo,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14234924, -3.41108704, -0.610244751, 0.865850091, 0.500302911, -3.55240239e-015, -0.500302792, 0.865850449, 9.79956736e-019, 3.07633938e-015, 1.77642947e-015, 0.999999642))
  1282. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  1283. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356628418, -2.31108093, -0.620269775, 0.865850091, 0.500302911, 7.10581953e-015, -0.500302792, 0.865850449, 9.79956736e-019, 6.15238443e-015, 3.55382075e-015, 0.999999642))
  1284. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1285. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
  1286. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.354736328, -4.51108551, -0.620117188, 0.865849495, 0.500302911, 1.77640292e-014, -0.500302434, 0.865850449, 9.79956115e-019, 9.22842142e-015, 5.33121097e-015, 0.999998927))
  1287. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1288. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 1.99999964, 0.200000003))
  1289. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356216431, -3.41107178, -0.610137939, 0.865848899, 0.500302911, 1.77639292e-014, -0.500302076, 0.865850449, 9.79955495e-019, 1.53807173e-014, 8.88612016e-015, 0.999998212))
  1290. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1291. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  1292. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356292725, 1.6887207, -0.619628906, 0.865768075, 0.500441432, 0, -0.500439942, 0.865770638, 3.55270987e-015, 3.55270987e-015, 3.02253882e-015, 0.999997139))
  1293. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1294. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  1295. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589828491, 0.808547974, -0.0999956131, -3.90798369e-014, 8.06646416e-017, -0.999997854, -0.999997914, -6.36497934e-005, 3.90798369e-014, -6.36795739e-005, 1.00000012, 3.58011901e-015))
  1296. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1297. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
  1298. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, -0.399998188, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
  1299. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  1300. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 1.4000001))
  1301. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10011411, -1.52587891e-005, 0.999999404, -4.47034765e-008, 0, -4.47034836e-008, -0.999999285, 0, 0, 0, -1))
  1302. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=74322546",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.5, 1.5))
  1303. local Decal1 = Instance.new("Decal",FlagLogo)
  1304. Decal1.Texture = "http://www.roblox.com/asset/?id=147337085"
  1305. Decal1.Face = "Front"
  1306. local Decal2 = Instance.new("Decal",FlagLogo)
  1307. Decal2.Texture = "http://www.roblox.com/asset/?id=147337085"
  1308. Decal2.Face = "Back"
  1309. Humanoid.WalkSpeed = 50
  1310.  
  1311. function ALLAHUAKBAR()
  1312. attack = true
  1313. local speak = {"ALLAHUAKBAR"}
  1314. local colors = {"Red","Red","Red"} -- The only 3 colors, adding more will error.
  1315. local chat = game:GetService("Chat")
  1316. chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
  1317. for i = 0,1,0.05 do
  1318. swait()
  1319. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1320. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1321. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1322. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1323. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1324. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1325. end
  1326. for i = 0,1,0.05 do
  1327. swait()
  1328. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1329. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1330. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(50)), 0.3)
  1331. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1332. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1333. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1334. end
  1335. for i = 1,20 do
  1336. NOOOOOOOO()
  1337. --so("http://roblox.com/asset/?id=197815953",workspace,1,1)
  1338. so("rbxassetid://134854740",Torso,1,1.3)
  1339. so("rbxassetid://247893371",workspace,1,1)
  1340. so("rbxassetid://137994058",Torso,1,1)
  1341. so("rbxassetid://165969964",Torso,1,1)
  1342. end
  1343. attack = false
  1344. end
  1345.  
  1346. mouse.Button1Down:connect(function()
  1347. ALLAHUAKBAR()
  1348. end)
  1349.  
  1350. mouse.KeyDown:connect(function(k)
  1351. k=k:lower()
  1352.  
  1353. end)
  1354.  
  1355.  
  1356. local sine = 0
  1357. local change = 1
  1358. local val = 0
  1359.  
  1360. while true do
  1361. swait()
  1362. sine = sine + change
  1363. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1364. local velderp=RootPart.Velocity.y
  1365. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1366. if equipped==true or equipped==false then
  1367. if attack==false then
  1368. idle=idle+1
  1369. else
  1370. idle=0
  1371. end
  1372. if idle>=500 then
  1373. if attack==false then
  1374. --Sheath()
  1375. end
  1376. end
  1377. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1378. Anim="Jump"
  1379. if attack==false then
  1380. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1381. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1382. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  1383. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1384. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1385. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  1386. end
  1387. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1388. Anim="Fall"
  1389. if attack==false then
  1390. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1391. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1392. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
  1393. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1394. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1395. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1396. end
  1397. elseif torvel<1 and hitfloor~=nil then
  1398. Anim="Idle"
  1399. if attack==false then
  1400. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(10)),.3)
  1401. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  1402. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.3)
  1403. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1404. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1405. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1406. end
  1407. elseif torvel>2 and hitfloor~=nil then
  1408. Anim="Walk"
  1409. if attack==false then
  1410. change=3
  1411. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1412. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1413. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50*math.cos(sine/20)), math.rad(0), math.rad(10)), 0.3)
  1414. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50*math.cos(sine/20)), math.rad(0), math.rad(-10)), 0.3)
  1415. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1416. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1417. end
  1418. end
  1419. end
  1420. if #Effects>0 then
  1421. --table.insert(Effects,{prt,"Block1",delay})
  1422. for e=1,#Effects do
  1423. if Effects[e]~=nil then
  1424. --for j=1,#Effects[e] do
  1425. local Thing=Effects[e]
  1426. if Thing~=nil then
  1427. local Part=Thing[1]
  1428. local Mode=Thing[2]
  1429. local Delay=Thing[3]
  1430. local IncX=Thing[4]
  1431. local IncY=Thing[5]
  1432. local IncZ=Thing[6]
  1433. if Thing[1].Transparency<=1 then
  1434. if Thing[2]=="Block1" then
  1435. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1436. Mesh=Thing[1].Mesh
  1437. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1438. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1439. elseif Thing[2]=="Cylinder" then
  1440. Mesh=Thing[1].Mesh
  1441. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1442. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1443. elseif Thing[2]=="Blood" then
  1444. Mesh=Thing[7]
  1445. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1446. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1447. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1448. elseif Thing[2]=="Elec" then
  1449. Mesh=Thing[1].Mesh
  1450. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1451. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1452. elseif Thing[2]=="Disappear" then
  1453. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1454. end
  1455. else
  1456. Part.Parent=nil
  1457. table.remove(Effects,e)
  1458. end
  1459. end
  1460. --end
  1461. end
  1462. end
  1463. end
  1464. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement