Advertisement
Ironsight7

Laser world

Jun 23rd, 2018
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  2. --[[the different world by Windowsxd_Infinite
  3. __ __ __ __
  4. /\ \ __/\ \ __ /\ \ /\ \
  5. \ \ \/\ \ \ \/\_\ ___ \_\ \ ___ __ __ __ ____ __ _ \_\ \
  6. \ \ \ \ \ \ \/\ \ /' _ `\ /'_` \ / __`\/\ \/\ \/\ \ /',__\/\ \/'\ /'_` \
  7. \ \ \_/ \_\ \ \ \/\ \/\ \/\ \L\ \/\ \L\ \ \ \_/ \_/ \/\__, `\/> <//\ \L\ \
  8. \ `\___x___/\ \_\ \_\ \_\ \___,_\ \____/\ \___x___/'\/\____//\_/\_\ \___,_\
  9. '\/__//__/ \/_/\/_/\/_/\/__,_ /\/___/ \/__//__/ \/___/ \//\/_/\/__,_ /
  10. ]]
  11. wait(1 / 60)
  12. Effects = { }
  13. script.Name = 'different world'
  14. local Player = game.Players.localPlayer
  15. local Character = Player.Character
  16.  
  17. local Humanoid = Character:FindFirstChildOfClass('Humanoid')
  18. local hum = Humanoid
  19. local Mouse = Player:GetMouse()
  20. local jumppower = 150
  21. local LeftArm = Character["Left Arm"]
  22. local RightArm = Character["Right Arm"]
  23. local LeftLeg = Character["Left Leg"]
  24. local RightLeg = Character["Right Leg"]
  25. local Head = Character.Head
  26. local Torso = Character.Torso
  27. local limited = false
  28. local Camera = game.Workspace.CurrentCamera
  29. local cmon = false
  30. local dying = false
  31. local RootPart = Character.HumanoidRootPart
  32. local RootJoint = RootPart.RootJoint
  33. local jumping = false
  34. local attack = false
  35. local Anim = 'Idle'
  36. local nomusic = false
  37. local soundid = '1494452913'
  38. local pit = 1
  39. local form = false
  40. local gunout = false
  41. local attacktype = 1
  42. local amount = 12
  43. local par = Head
  44. if limited == false then
  45. amount = math.huge
  46. end
  47.  
  48. print(amount..' is the maximum amount of lasers')
  49. local bullets = amount
  50. local kicking = false
  51. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  52. local velocity = RootPart.Velocity.y
  53. local sine = 0
  54. local change = 1
  55. local Create = LoadLibrary("RbxUtility").Create
  56.  
  57. local col = Character['Body Colors']
  58. New = function(Object, Parent, Name, Data)
  59. local Object = Instance.new(Object)
  60. for Index, Value in pairs(Data or {}) do
  61. Object[Index] = Value
  62. end
  63. Object.Parent = Parent
  64. Object.Name = Name
  65. return Object
  66. end
  67. for i, v in pairs(Character:GetChildren()) do
  68. if v:IsA("Accessory") then
  69. v:Destroy()
  70. end
  71. end
  72.  
  73. Head:WaitForChild('face', true):Destroy()
  74. Mesh = New("SpecialMesh",LeftLeg,"Mesh",{Offset = Vector3.new(0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
  75. Mesh = New("SpecialMesh",LeftArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
  76. Mesh = New("SpecialMesh",RightArm,"Mesh",{MeshId = "rbxassetid://1875724217",MeshType = Enum.MeshType.FileMesh,})
  77. Mesh = New("SpecialMesh",Torso,"Mesh",{Offset = Vector3.new(0, 0.0599999987, 0),MeshId = "rbxassetid://1875749311",MeshType = Enum.MeshType.FileMesh,})
  78. Mesh = New("SpecialMesh",RightLeg,"Mesh",{Offset = Vector3.new(-0.100000001, 0, -0.100000001),MeshId = "rbxassetid://1875778314",MeshType = Enum.MeshType.FileMesh,})
  79. Mesh = New("SpecialMesh",Head,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshId = "rbxassetid://754068440",TextureId = "rbxassetid://754068486",MeshType = Enum.MeshType.FileMesh,})
  80.  
  81. decals = function()
  82. Decal = New("Decal",Head,"Decal",{Texture = "http://www.roblox.com/asset/?id=1901415828",})
  83. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=1901488661",})
  84. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Left,Texture = "http://www.roblox.com/asset/?id=1901527294",})
  85. Decal = New("Decal",Head,"Decal",{Face = Enum.NormalId.Back,Texture = "http://www.roblox.com/asset/?id=1901566530",})
  86. end
  87. --[[
  88. gun = New("Part",RightArm,"gun",{Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),Transparency = 1,CFrame = CFrame.new(1.55999994, 1.82999897, -0.115000002, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  89. Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.2, -0.5),Scale = Vector3.new(0.6, 0.6, 0.6),MeshId = "rbxassetid://139121396",TextureId = "rbxassetid://216355613",MeshType = Enum.MeshType.FileMesh,})
  90. mot = New("Weld",gun,"mot",{Part0 = gun,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -1.17000008, 0.0149999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  91. ]]
  92. gun = New("Part",RightArm,"gun",{CanCollide = false,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(1.55999994, 1.82999992, 0.0149999931, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  93. Mesh = New("SpecialMesh",gun,"Mesh",{Offset = Vector3.new(0, 0.200000003, -0.5),Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024),MeshId = "rbxassetid://139121396",TextureId = "rbxassetid://216355613",MeshType = Enum.MeshType.FileMesh,})
  94. mot = New("Weld",gun,"mot",{Part0 = gun,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -1.17000008, 0.0149999931, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  95. tip = New("Part",RightArm,"tip",{CanCollide = false,Transparency = 1,Transparency = 1,Size = Vector3.new(0.359999955, 0.340000063, 0.409999967),CFrame = CFrame.new(1.55999994, 0.0300002098, -0.675000012, 1, 0, 0, 0, 0, 1, 0, -1, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  96. mot = New("Weld",tip,"mot",{Part0 = tip,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(0.0599999428, -2.96999979, -0.675000012, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  97.  
  98. coroutine.wrap(function()
  99. RightLeg.Touched:connect(function(prt)
  100. if prt.Name == 'extra' and prt.ClassName == 'Part' then
  101. local thing = prt:WaitForChild('amount')
  102. if thing ~= nil and thing.Value < 50 then
  103. print('added '.. thing.Value ..' extra energy')
  104. bullets = bullets + thing.Value
  105. prt:Destroy()
  106. end
  107. end
  108. end)
  109. --dab
  110. end)()
  111.  
  112.  
  113.  
  114. col.HeadColor = BrickColor.new('Really black')
  115. col.LeftArmColor = BrickColor.new('Crimson')
  116. col.RightArmColor = BrickColor.new('Really black')
  117. col.LeftLegColor = BrickColor.new('Really black')
  118. col.RightLegColor = BrickColor.new('Crimson')
  119. col.TorsoColor = BrickColor.new('Really black')
  120.  
  121. local ff = Instance.new('ForceField', Character)
  122. ff.Visible = false
  123.  
  124. hum.Name = '32ytd7284y6985y24805yn2839n5298'
  125. hum.MaxHealth = 1000
  126. wait()
  127. hum.Health = 1000
  128. function startm()
  129. if nomusic == false then
  130. local b = Instance.new('Sound', par)
  131. b.SoundId = 'rbxassetid://' ..soundid
  132. b.Looped = true
  133. b.Volume = 3
  134. b.Name = 'lol'
  135. b.Pitch = pit
  136. b:Play()
  137. coroutine.wrap(function()
  138. while true do
  139. timepos = b.TimePosition
  140. if par:FindFirstChild("lol") == nil then
  141. local b = Instance.new('Sound', par)
  142. b.SoundId = 'rbxassetid://'..soundid
  143. b.Looped = true
  144. b.Name = 'lol'
  145. b.Volume = 3
  146. b.Pitch = pit
  147. b.TimePosition = timepos
  148. b:Play()
  149. end
  150. wait()
  151. end
  152. end)()
  153. end
  154. end
  155. local m = Create("Model"){
  156. Parent = Character,
  157. Name = "WeaponModel",
  158. }
  159.  
  160. Humanoid.Animator.Parent = nil
  161. Character.Animate.Parent = nil
  162.  
  163. local newMotor = function(part0, part1, c0, c1)
  164. local w = Create('Motor'){
  165. Parent = part0,
  166. Part0 = part0,
  167. Part1 = part1,
  168. C0 = c0,
  169. C1 = c1,
  170. }
  171. return w
  172. end
  173.  
  174. function clerp(a, b, t)
  175. return a:lerp(b, t)
  176. end
  177.  
  178. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  179. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  180.  
  181. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  182. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  183. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  184. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  185. RootJoint.C1 = CFrame.new(0, 0, 0)
  186. RootJoint.C0 = CFrame.new(0, 0, 0)
  187. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  188. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  189.  
  190. local rarmc1 = RW.C1
  191. local larmc1 = LW.C1
  192. local rlegc1 = RH.C1
  193. local llegc1 = LH.C1
  194.  
  195. local resetc1 = false
  196.  
  197. function PlayAnimationFromTable(table, speed, bool)
  198. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  199. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  200. RW.C0 = clerp(RW.C0, table[3], speed)
  201. LW.C0 = clerp(LW.C0, table[4], speed)
  202. RH.C0 = clerp(RH.C0, table[5], speed)
  203. LH.C0 = clerp(LH.C0, table[6], speed)
  204. if bool == true then
  205. if resetc1 == false then
  206. resetc1 = true
  207. RootJoint.C1 = RootJoint.C1
  208. Torso.Neck.C1 = Torso.Neck.C1
  209. RW.C1 = rarmc1
  210. LW.C1 = larmc1
  211. RH.C1 = rlegc1
  212. LH.C1 = llegc1
  213. end
  214. end
  215. end
  216.  
  217. ArtificialHB = Create("BindableEvent", script){
  218. Parent = script,
  219. Name = "Heartbeat",
  220. }
  221.  
  222. script:WaitForChild("Heartbeat")
  223.  
  224. frame = 1 / 60
  225. tf = 0
  226. allowframeloss = false
  227. tossremainder = false
  228. lastframe = tick()
  229. script.Heartbeat:Fire()
  230.  
  231. game:GetService("RunService").Heartbeat:connect(function(s, p)
  232. tf = tf + s
  233. if tf >= frame then
  234. if allowframeloss then
  235. script.Heartbeat:Fire()
  236. lastframe = tick()
  237. else
  238. for i = 1, math.floor(tf / frame) do
  239. script.Heartbeat:Fire()
  240. end
  241. lastframe = tick()
  242. end
  243. if tossremainder then
  244. tf = 0
  245. else
  246. tf = tf - frame * math.floor(tf / frame)
  247. end
  248. end
  249. end)
  250.  
  251. function swait(num)
  252. if num == 0 or num == nil then
  253. ArtificialHB.Event:wait()
  254. else
  255. for i = 0, num do
  256. ArtificialHB.Event:wait()
  257. end
  258. end
  259. end
  260.  
  261. function RemoveOutlines(part)
  262. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  263. end
  264.  
  265. CFuncs = {
  266. ["Part"] = {
  267. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  268. local Part = Create("Part"){
  269. Parent = Parent,
  270. Reflectance = Reflectance,
  271. Transparency = Transparency,
  272. CanCollide = false,
  273. Locked = true,
  274. BrickColor = BrickColor.new(tostring(BColor)),
  275. Name = Name,
  276. Size = Size,
  277. Material = Material,
  278. }
  279. RemoveOutlines(Part)
  280. return Part
  281. end;
  282. };
  283.  
  284. ["Mesh"] = {
  285. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  286. local Msh = Create(Mesh){
  287. Parent = Part,
  288. Offset = OffSet,
  289. Scale = Scale,
  290. }
  291. if Mesh == "SpecialMesh" then
  292. Msh.MeshType = MeshType
  293. Msh.MeshId = MeshId
  294. end
  295. return Msh
  296. end;
  297. };
  298.  
  299. ["Mesh"] = {
  300. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  301. local Msh = Create(Mesh){
  302. Parent = Part,
  303. Offset = OffSet,
  304. Scale = Scale,
  305. }
  306. if Mesh == "SpecialMesh" then
  307. Msh.MeshType = MeshType
  308. Msh.MeshId = MeshId
  309. end
  310. return Msh
  311. end;
  312. };
  313.  
  314. ["Weld"] = {
  315. Create = function(Parent, Part0, Part1, C0, C1)
  316. local Weld = Create("Weld"){
  317. Parent = Parent,
  318. Part0 = Part0,
  319. Part1 = Part1,
  320. C0 = C0,
  321. C1 = C1,
  322. }
  323. return Weld
  324. end;
  325. };
  326.  
  327. ["Sound"] = {
  328. Create = function(id, par, vol, pit)
  329. coroutine.resume(coroutine.create(function()
  330. local S = Create("Sound"){
  331. Volume = vol,
  332. Pitch = pit or 1,
  333. SoundId = id,
  334. Parent = par or workspace,
  335. }
  336. wait()
  337. S:play()
  338. game:GetService("Debris"):AddItem(S, 6)
  339. end))
  340. end;
  341. };
  342.  
  343. ["ParticleEmitter"] = {
  344. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  345. local fp = Create("ParticleEmitter"){
  346. Parent = Parent,
  347. Color = ColorSequence.new(Color1, Color2),
  348. LightEmission = LightEmission,
  349. Size = Size,
  350. Texture = Texture,
  351. Transparency = Transparency,
  352. ZOffset = ZOffset,
  353. Acceleration = Accel,
  354. Drag = Drag,
  355. LockedToPart = LockedToPart,
  356. VelocityInheritance = VelocityInheritance,
  357. EmissionDirection = EmissionDirection,
  358. Enabled = Enabled,
  359. Lifetime = LifeTime,
  360. Rate = Rate,
  361. Rotation = Rotation,
  362. RotSpeed = RotSpeed,
  363. Speed = Speed,
  364. VelocitySpread = VelocitySpread,
  365. }
  366. return fp
  367. end;
  368. };
  369.  
  370. CreateTemplate = {
  371.  
  372. };
  373. }
  374.  
  375. function rayCast(Position, Direction, Range, Ignore)
  376. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  377. end
  378.  
  379. FindNearestTorso = function(pos)
  380. local list = (game.Workspace:children())
  381. local torso = nil
  382. local dist = 1000
  383. local temp, human, temp2 = nil, nil, nil
  384. for x = 1, #list do
  385. temp2 = list[x]
  386. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  387. temp = temp2:findFirstChild("Torso")
  388. human = temp2:findFirstChild("Humanoid")
  389. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  390. local dohit = true
  391. if dohit == true then
  392. torso = temp
  393. dist = (temp.Position - pos).magnitude
  394. end
  395. end
  396. end
  397. end
  398. return torso, dist
  399. end
  400.  
  401. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  402. if hit.Parent == nil then
  403. return
  404. end
  405. local h = hit.Parent:FindFirstChild("Humanoid")
  406. for _, v in pairs(hit.Parent:children()) do
  407. if v:IsA("Humanoid") then
  408. h = v
  409. end
  410. end
  411. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  412. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  413. if hit.Parent.DebounceHit.Value == true then
  414. return
  415. end
  416. end
  417. local c = Create("ObjectValue"){
  418. Name = "creator",
  419. Value = game:service("Players").LocalPlayer,
  420. Parent = h,
  421. }
  422. game:GetService("Debris"):AddItem(c, .5)
  423. if HitSound ~= nil and HitPitch ~= nil then
  424. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  425. end
  426. local Damage = math.random(minim, maxim)
  427. local blocked = false
  428. local block = hit.Parent:findFirstChild("Block")
  429. if block ~= nil then
  430. if block.className == "IntValue" then
  431. if block.Value > 0 then
  432. blocked = true
  433. block.Value = block.Value - 1
  434. print(block.Value)
  435. end
  436. end
  437. end
  438. if blocked == false then
  439. h.Health = h.Health - Damage
  440. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  441. else
  442. h.Health = h.Health - (Damage / 2)
  443. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  444. end
  445. if Type == "Knockdown" then
  446. local hum = hit.Parent.Humanoid
  447. hum.PlatformStand = true
  448. coroutine.resume(coroutine.create(function(HHumanoid)
  449. swait(1)
  450. HHumanoid.PlatformStand = false
  451. end), hum)
  452. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  453. local bodvol = Create("BodyVelocity"){
  454. velocity = angle * knockback,
  455. P = 5000,
  456. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  457. Parent = hit,
  458. }
  459. local rl = Create("BodyAngularVelocity"){
  460. P = 3000,
  461. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  462. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  463. Parent = hit,
  464. }
  465. game:GetService("Debris"):AddItem(bodvol, .5)
  466. game:GetService("Debris"):AddItem(rl, .5)
  467. elseif Type == "Normal" then
  468. local vp = Create("BodyVelocity"){
  469. P = 500,
  470. maxForce = Vector3.new(math.huge, 0, math.huge),
  471. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  472. }
  473. if knockback > 0 then
  474. vp.Parent = hit.Parent.Torso
  475. end
  476. game:GetService("Debris"):AddItem(vp, .5)
  477. elseif Type == "Up" then
  478. local bodyVelocity = Create("BodyVelocity"){
  479. velocity = Vector3.new(0, 20, 0),
  480. P = 5000,
  481. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  482. Parent = hit,
  483. }
  484. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  485. elseif Type == "DarkUp" then
  486. coroutine.resume(coroutine.create(function()
  487. for i = 0, 1, 0.1 do
  488. swait()
  489. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 25, 25, 25, 1, 1, 1, .08, 1)
  490. end
  491. end))
  492. local bodyVelocity = Create("BodyVelocity"){
  493. velocity = Vector3.new(0, 20, 0),
  494. P = 5000,
  495. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  496. Parent = hit,
  497. }
  498. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  499. elseif Type == "Snare" then
  500. local bp = Create("BodyPosition"){
  501. P = 2000,
  502. D = 100,
  503. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  504. position = hit.Parent.Torso.Position,
  505. Parent = hit.Parent.Torso,
  506. }
  507. game:GetService("Debris"):AddItem(bp, 1)
  508. elseif Type == "Freeze" then
  509. local BodPos = Create("BodyPosition"){
  510. P = 50000,
  511. D = 1000,
  512. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  513. position = hit.Parent.Torso.Position,
  514. Parent = hit.Parent.Torso,
  515. }
  516. local BodGy = Create("BodyGyro") {
  517. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  518. P = 20e+003,
  519. Parent = hit.Parent.Torso,
  520. cframe = hit.Parent.Torso.CFrame,
  521. }
  522. hit.Parent.Torso.Anchored = true
  523. coroutine.resume(coroutine.create(function(Part)
  524. swait(1.5)
  525. Part.Anchored = false
  526. end), hit.Parent.Torso)
  527. game:GetService("Debris"):AddItem(BodPos, 3)
  528. game:GetService("Debris"):AddItem(BodGy, 3)
  529. end
  530. local debounce = Create("BoolValue"){
  531. Name = "DebounceHit",
  532. Parent = hit.Parent,
  533. Value = true,
  534. }
  535. game:GetService("Debris"):AddItem(debounce, Delay)
  536. c = Create("ObjectValue"){
  537. Name = "creator",
  538. Value = Player,
  539. Parent = h,
  540. }
  541. game:GetService("Debris"):AddItem(c, .5)
  542. end
  543. end
  544.  
  545. function ShowDamage(Pos, Text, Time, Color, wid)
  546. local Rate = (1 / 30)
  547. local Pos = (Pos or Vector3.new(0, 0, 0))
  548. local Text = (Text or "")
  549. local wid = (wid or 1)
  550. local Time = (Time or 2)
  551. local Color = (Color or Color3.new(1, 0, 1))
  552. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  553. EffectPart.Anchored = true
  554. local BillboardGui = Create("BillboardGui"){
  555. Size = UDim2.new(5, 0, 5, 0),
  556. Adornee = EffectPart,
  557. Parent = EffectPart,
  558. }
  559. local TextLabel = Create("TextLabel"){
  560. BackgroundTransparency = 1,
  561. Size = UDim2.new(1, 0, 1, 0),
  562. Text = Text,
  563. Font = "Arcade",
  564. TextColor3 = Color,
  565. TextScaled = true,
  566. Parent = BillboardGui,
  567. }
  568. game.Debris:AddItem(EffectPart, (Time))
  569. EffectPart.Parent = game:GetService("Workspace")
  570. delay(0, function()
  571. local Frames = (Time / Rate)
  572. for Frame = 1, Frames do
  573. wait(Rate)
  574. local Percent = (Frame / Frames)
  575. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  576. TextLabel.TextTransparency = Percent
  577. end
  578. if EffectPart and EffectPart.Parent then
  579. EffectPart:Destroy()
  580. end
  581. end)
  582. end
  583.  
  584. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  585. for _, c in pairs(workspace:children()) do
  586. local hum = c:findFirstChildOfClass("Humanoid")
  587. if hum ~= nil then
  588. local head = c:findFirstChild("Head")
  589. if head ~= nil then
  590. local targ = head.Position - Part.Position
  591. local mag = targ.magnitude
  592. if mag <= Magnitude and c.Name ~= Player.Name then
  593. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  594. end
  595. end
  596. end
  597. end
  598. end
  599.  
  600. EffectModel = Create("Model"){
  601. Parent = Character,
  602. Name = "Effects",
  603. }
  604.  
  605. Effects = {
  606. Block = {
  607. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  608. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  609. prt.Anchored = true
  610. prt.CFrame = cframe
  611. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  612. game:GetService("Debris"):AddItem(prt, 10)
  613. if Type == 1 or Type == nil then
  614. table.insert(Effects, {
  615. prt,
  616. "Block1",
  617. delay,
  618. x3,
  619. y3,
  620. z3,
  621. msh
  622. })
  623. elseif Type == 2 then
  624. table.insert(Effects, {
  625. prt,
  626. "Block2",
  627. delay,
  628. x3,
  629. y3,
  630. z3,
  631. msh
  632. })
  633. end
  634. end;
  635. };
  636.  
  637. Implode = {
  638. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  639. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  640. prt.Anchored = true
  641. prt.CFrame = cframe
  642. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  643. game:GetService("Debris"):AddItem(prt, 10)
  644. if Type == 1 or Type == nil then
  645. table.insert(Effects, {
  646. prt,
  647. "Block1",
  648. delay,
  649. x3,
  650. y3,
  651. z3,
  652. msh
  653. })
  654. elseif Type == 2 then
  655. table.insert(Effects, {
  656. prt,
  657. "Block2",
  658. delay,
  659. x3,
  660. y3,
  661. z3,
  662. msh
  663. })
  664. end
  665. end;
  666. };
  667.  
  668. Cylinder = {
  669. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  670. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  671. prt.Anchored = true
  672. prt.CFrame = cframe
  673. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  674. game:GetService("Debris"):AddItem(prt, 10)
  675. table.insert(Effects, {
  676. prt,
  677. "Cylinder",
  678. delay,
  679. x3,
  680. y3,
  681. z3,
  682. msh
  683. })
  684. end;
  685. };
  686. Rect = {
  687. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  688. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  689. prt.Anchored = true
  690. prt.CFrame = cframe
  691. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  692. game:GetService("Debris"):AddItem(prt, 10)
  693. table.insert(Effects, {
  694. prt,
  695. "Cylinder",
  696. delay,
  697. x3,
  698. y3,
  699. z3,
  700. msh
  701. })
  702. end;
  703. };
  704.  
  705. Head = {
  706. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  707. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  708. prt.Anchored = true
  709. prt.CFrame = cframe
  710. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  711. game:GetService("Debris"):AddItem(prt, 10)
  712. table.insert(Effects, {
  713. prt,
  714. "Cylinder",
  715. delay,
  716. x3,
  717. y3,
  718. z3,
  719. msh
  720. })
  721. end;
  722. };
  723.  
  724. Sphere = {
  725. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  726. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  727. prt.Anchored = true
  728. prt.CFrame = cframe
  729. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  730. game:GetService("Debris"):AddItem(prt, 10)
  731. table.insert(Effects, {
  732. prt,
  733. "Cylinder",
  734. delay,
  735. x3,
  736. y3,
  737. z3,
  738. msh
  739. })
  740. end;
  741. };
  742.  
  743. Elect = {
  744. Create = function(cff, x, y, z)
  745. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  746. prt.Anchored = true
  747. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  748. prt.CFrame = CFrame.new(prt.Position)
  749. game:GetService("Debris"):AddItem(prt, 2)
  750. local xval = math.random() / 2
  751. local yval = math.random() / 2
  752. local zval = math.random() / 2
  753. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  754. table.insert(Effects, {
  755. prt,
  756. "Elec",
  757. 0.1,
  758. x,
  759. y,
  760. z,
  761. xval,
  762. yval,
  763. zval
  764. })
  765. end;
  766.  
  767. };
  768.  
  769. Ring = {
  770. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  771. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  772. prt.Anchored = true
  773. prt.CFrame = cframe
  774. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  775. game:GetService("Debris"):AddItem(prt, 10)
  776. table.insert(Effects, {
  777. prt,
  778. "Cylinder",
  779. delay,
  780. x3,
  781. y3,
  782. z3,
  783. msh
  784. })
  785. end;
  786. };
  787.  
  788.  
  789. Wave = {
  790. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  791. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  792. prt.Anchored = true
  793. prt.CFrame = cframe
  794. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  795. game:GetService("Debris"):AddItem(prt, 10)
  796. table.insert(Effects, {
  797. prt,
  798. "Cylinder",
  799. delay,
  800. x3,
  801. y3,
  802. z3,
  803. msh
  804. })
  805. end;
  806. };
  807.  
  808. Break = {
  809. Create = function(brickcolor, cframe, x1, y1, z1)
  810. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  811. prt.Anchored = true
  812. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  813. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  814. local num = math.random(10, 50) / 1000
  815. game:GetService("Debris"):AddItem(prt, 10)
  816. table.insert(Effects, {
  817. prt,
  818. "Shatter",
  819. num,
  820. prt.CFrame,
  821. math.random() - math.random(),
  822. 0,
  823. math.random(50, 100) / 100
  824. })
  825. end;
  826. };
  827.  
  828. Fire = {
  829. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  830. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  831. prt.Anchored = true
  832. prt.CFrame = cframe
  833. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  834. game:GetService("Debris"):AddItem(prt, 10)
  835. table.insert(Effects, {
  836. prt,
  837. "Fire",
  838. delay,
  839. 1,
  840. 1,
  841. 1,
  842. msh
  843. })
  844. end;
  845. };
  846.  
  847. FireWave = {
  848. Create = function(brickcolor, cframe, x1, y1, z1)
  849. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  850. prt.Anchored = true
  851. prt.CFrame = cframe
  852. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  853. local d = Create("Decal"){
  854. Parent = prt,
  855. Texture = "rbxassetid://26356434",
  856. Face = "Top",
  857. }
  858. local d = Create("Decal"){
  859. Parent = prt,
  860. Texture = "rbxassetid://26356434",
  861. Face = "Bottom",
  862. }
  863. game:GetService("Debris"):AddItem(prt, 10)
  864. table.insert(Effects, {
  865. prt,
  866. "FireWave",
  867. 1,
  868. 30,
  869. math.random(400, 600) / 100,
  870. msh
  871. })
  872. end;
  873. };
  874.  
  875. Lightning = {
  876. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  877. local magz = (p0 - p1).magnitude
  878. local curpos = p0
  879. local trz = {
  880. -ofs,
  881. ofs
  882. }
  883. for i = 1, tym do
  884. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  885. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  886. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  887. li.Material = "Neon"
  888. if tym == i then
  889. local magz2 = (curpos - p1).magnitude
  890. li.Size = Vector3.new(th, th, magz2)
  891. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  892. table.insert(Effects, {
  893. li,
  894. "Disappear",
  895. last
  896. })
  897. else
  898. do
  899. do
  900. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  901. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  902. game.Debris:AddItem(li, 10)
  903. table.insert(Effects, {
  904. li,
  905. "Disappear",
  906. last
  907. })
  908. end
  909. end
  910. end
  911. end
  912. end
  913. };
  914.  
  915. EffectTemplate = {
  916.  
  917. };
  918. }
  919. script.Name = 'different world'
  920. local speed = 15
  921.  
  922. local anims = {
  923. punch1 = {
  924. play = function()
  925. for i = 0, 1, 0.1 do
  926. swait()
  927. PlayAnimationFromTable({
  928. CFrame.new(-0.0107449368, -0.216572553, 0.265849799, 0.950212896, -0.0244924892, 0.310632408, 1.02195258e-07, 0.996908247, 0.0786035731, -0.311596483, -0.0746901631, 0.947272837) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  929. CFrame.new(0.0950279012, 1.517524, -0.082502462, 0.920527458, 0.0699283779, -0.384364873, -0.0458012633, 0.996384859, 0.0715831444, 0.387980074, -0.0482893325, 0.920400321) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  930. CFrame.new(1.38422894, 0.673871636, -0.86930716, 0.929277241, -0.323129416, -0.178972647, -0.235611483, -0.145362675, -0.960914612, 0.28448388, 0.935124099, -0.211215228) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  931. CFrame.new(-1.23638797, 0.32926473, -0.458237767, 0.867408514, 0.318191469, -0.382565975, -0.477318794, 0.314822704, -0.82039845, -0.140603334, 0.894226551, 0.424958616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  932. CFrame.new(0.607390761, -1.89009023, -0.202257693, 0.997992873, -0.0622570924, 0.0115969777, 0.0631325841, 0.963713706, -0.25936541, 0.00497117639, 0.259576976, 0.965709627) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  933. CFrame.new(-0.604592323, -1.83469141, 0.0555542186, 0.99391377, 0.10894423, 0.0163347721, -0.109823957, 0.991517901, 0.0695070401, -0.00862380862, -0.0708779395, 0.997447789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  934. }, .3, false)
  935. end
  936. end
  937. };
  938. ball = {
  939. play = function()
  940. for i = 0, 1, 0.1 do
  941. swait()
  942. PlayAnimationFromTable({
  943. CFrame.new(-2.86102272e-06, 1.71999931, -6.86055819e-06, 1, 4.7224965e-22, -4.37113883e-08, -1.95405131e-14, 1.00000751, -4.47034836e-07, 4.37117151e-08, 4.47034836e-07, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  944. CFrame.new(2.85228111e-06, 1.35999703, -0.199992567, 1, -1.53786814e-08, 4.09167669e-08, 0, 0.936066508, 0.35182327, -4.37113883e-08, -0.351823241, 0.936066508) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  945. CFrame.new(0.840003788, 0.460014343, -0.810002446, 0.704639971, 0.675280571, 0.217897713, 0.044140093, 0.26477614, -0.963299215, -0.708191872, 0.688397229, 0.156764656) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  946. CFrame.new(-0.839995861, 0.529998541, -0.750000954, 0.729142547, -0.631132126, -0.264619231, -0.230401143, 0.137709707, -0.963302374, 0.644411743, 0.763353288, -0.045003552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  947. CFrame.new(0.57000345, -0.669976175, -1.2000035, 0.999722004, -0.0225840099, 0.00678592594, 0.0235446021, 0.972025096, -0.2336943, -0.00131833623, 0.233789101, 0.972286463) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  948. CFrame.new(-0.439997494, -0.69998008, -1.14999986, 0.999720931, -0.0226266459, 0.0067881369, 0.0235864632, 0.972043037, -0.233615071, -0.00131243642, 0.233709991, 0.972305417) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  949. }, .3, false)
  950. end
  951. end
  952. };
  953. smash = {
  954. play = function()
  955. for i = 0, 1, 0.1 do
  956. swait()
  957. PlayAnimationFromTable({
  958. CFrame.new(1.94293195e-21, -1.11999965, -0.549994707, 1, 2.44334653e-21, -3.80156538e-21, -4.72245409e-22, 0.893125892, 0.449806929, 4.49431016e-21, -0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  959. CFrame.new(0, 1.5119648, -0.134260774, 1, 0, 0, 0, 0.940229893, 0.34054032, 0, -0.34054032, 0.940229893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  960. CFrame.new(1.5, -0.235795826, -0.421078861, 1, -4.72245409e-22, 4.49431016e-21, 2.44334653e-21, 0.893125892, -0.449806929, -3.80156538e-21, 0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  961. CFrame.new(-1.5, 0.110703774, 0.380448788, 1, 0, 0, 0, 0.830427766, 0.557126522, 0, -0.557126522, 0.830427766) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  962. CFrame.new(0.5, -1.47771955, 0.666540802, 1, 0, 0, 0, 0.850484967, 0.525999546, 0, -0.525999546, 0.850484967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  963. CFrame.new(-0.5, -0.623993754, -0.717353463, 1, -4.72245409e-22, 4.49431016e-21, 2.44334653e-21, 0.893125892, -0.449806929, -3.80156538e-21, 0.449806929, 0.893125892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  964. }, .3, false)
  965. end
  966. end
  967. };
  968. punch2 = {
  969. play = function()
  970. for i = 0, 1, 0.1 do
  971. swait()
  972. PlayAnimationFromTable({
  973. CFrame.new(-0.0684909746, -0.216571167, 0.000430204906, 0.984477103, 0.0137971267, -0.174969882, 0, 0.996905446, 0.0786102712, 0.175513014, -0.0773900151, 0.98143059) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  974. CFrame.new(0.0175101534, 1.52462602, -0.172688439, 0.984477103, -0.0555305742, 0.166496783, 0.0137971267, 0.970179021, 0.241996571, -0.174969882, -0.2359429, 0.955885291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  975. CFrame.new(1.48930418, 0.0307573248, -0.473314196, 0.980572164, -0.188258171, 0.0551109985, 0.0806958377, 0.131063491, -0.988084316, 0.17879191, 0.973335207, 0.14370887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  976. CFrame.new(-1.66090941, 0.636517406, -0.920002699, 0.982567489, 0.185122967, 0.0170512684, 0.0498865768, -0.174197271, -0.9834463, -0.179088235, 0.967153013, -0.180395678) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  977. CFrame.new(0.607360065, -1.89008546, -0.202268928, 0.997992814, -0.0622575581, 0.0115943104, 0.0631323084, 0.963711381, -0.259373635, 0.00497439504, 0.259584963, 0.965707421) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  978. CFrame.new(-0.604580641, -1.83468735, 0.0555345044, 0.993913651, 0.10894455, 0.0163322985, -0.109824024, 0.991518378, 0.0694989488, -0.008622244, -0.070869647, 0.997448444) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  979. }, .3, false)
  980. end
  981. end
  982. };
  983. kick = {
  984. play = function()
  985. for i = 0, 1, 0.1 do
  986. swait()
  987. PlayAnimationFromTable({
  988. CFrame.new(-0.131061807, -0.222323433, 0.0731982589, -0.0407249853, 0.0785460323, -0.996078312, -0.0807319731, 0.993387222, 0.0816345736, 0.995903611, 0.0837399364, -0.0341144986) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  989. CFrame.new(-0.184342384, 1.50759327, -0.00515897386, -0.0407249853, -0.131115511, 0.990530372, 0.0785460323, 0.987864733, 0.133992031, -0.996078312, 0.0832590461, -0.0299321674) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  990. CFrame.new(1.66859376, 0.0138811618, -0.00489595532, 0.981350243, -0.191684797, 0.0144488961, 0.192214325, 0.979416251, -0.0616246685, -0.00233896822, 0.0632526651, 0.997994781) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  991. CFrame.new(-1.27853525, -0.0793156773, -0.463598907, 0.997092485, -0.0716068894, 0.0260639321, 0.0757341236, 0.893313289, -0.443007529, 0.00843913853, 0.44369331, 0.896138966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  992. CFrame.new(0.705335557, -1.8330934, -0.201769322, 0.989622712, -0.141240016, 0.0264280811, 0.143219218, 0.954648972, -0.261024535, 0.0116375685, 0.262100786, 0.96497035) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  993. CFrame.new(-1.60584366, -1.35878396, 0.133992612, 0.166210294, 0.970306695, 0.175724834, -0.985117137, 0.171303824, -0.0141165629, -0.0437997244, -0.170763195, 0.984338164) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  994. }, .3, false)
  995. end
  996. end
  997. };
  998. idle = {
  999. play = function()
  1000. PlayAnimationFromTable({
  1001. CFrame.new(-0.14138256, -0.216571495, 0.237950996, 0.77377969, 0.0497951508, -0.631494582, 0, 0.996905565, 0.0786088556, 0.63345474, -0.0608259365, 0.771385252) * CFrame.new(0, 0 - 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0),
  1002. CFrame.new(-2.36225314e-05, 1.52129841, -0.130490974, 0.824229062, -0.0689957589, 0.562037528, 0.0293807425, 0.996423066, 0.0792340413, -0.565493941, -0.0487939045, 0.823307931) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0, 0),
  1003. CFrame.new(1.04215145, 0.583002925, -0.988996744, 0.927035332, 0.248969361, -0.280392349, -0.0585250594, -0.642532051, -0.764020622, -0.370378822, 0.72468406, -0.581078827) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0 + 0.1 * math.cos(sine/speed), 0),
  1004. CFrame.new(-1.26441777, 0.322543621, -0.372986406, 0.900779247, 0.295904487, -0.317863494, -0.36590445, 0.122910969, -0.922500432, -0.23390314, 0.947276831, 0.218988389) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(sine/speed), 0 + 0.1 * math.cos(sine/speed), 0),
  1005. CFrame.new(0.607379138, -1.89008486, -0.202270091, 0.997992814, -0.0622573122, 0.0115959346, 0.0631324649, 0.963711858, -0.259372175, 0.0049726367, 0.259583652, 0.965707898) * CFrame.new(0, 0 + 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0),
  1006. CFrame.new(-0.604592443, -1.83468843, 0.0555417985, 0.993913651, 0.108944699, 0.0163314939, -0.109824121, 0.991518497, 0.0694983602, -0.00862157345, -0.0708689541, 0.997448444) * CFrame.new(0, 0 + 0.1 * math.cos(sine/speed), 0) * CFrame.Angles(0, 0, 0),
  1007. }, .3, false)
  1008.  
  1009. end
  1010. };
  1011.  
  1012. walk = {
  1013. play = function()
  1014. PlayAnimationFromTable({
  1015. CFrame.new(0.109261587, -0.173913926, 0.279077232, 0.997577667, -0.0686017871, 0.0115215462, 0.0659179762, 0.985163212, 0.15845634, -0.0222209934, -0.157313049, 0.987298727) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1016. CFrame.new(0.0151925227, 1.53362715, -0.213461131, 0.991616547, 0.0963014811, -0.0861558393, -0.087993823, 0.991530597, 0.0955212787, 0.0946249887, -0.0871393085, 0.991691887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1017. CFrame.new(1.04216635, 0.58300662, -0.988999605, 0.927035213, 0.248969764, -0.280392677, -0.058524631, -0.642532647, -0.764020205, -0.370379329, 0.724683344, -0.581079423) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1018. CFrame.new(-1.26442409, 0.322548211, -0.372982204, 0.900780141, 0.295904756, -0.317861229, -0.365901619, 0.12290898, -0.922501862, -0.23390463, 0.947277129, 0.21898596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1019. CFrame.new(0.467722356, -1.88047636, -0.203902811, 0.998356521, 0.0572995394, -0.00115422346, -0.0555915311, 0.963307917, -0.262579054, -0.0139337815, 0.262211591, 0.964909732)* CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 35 * math.cos((sine) / 5)), 0, 0),
  1020. CFrame.new(-0.604593396, -1.83468795, 0.0555359796, 0.990936041, 0.124458492, -0.0505571477, -0.120545976, 0.989930212, 0.0742101893, 0.0592841208, -0.0674430802, 0.995960236) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 35 * math.cos((sine) / 5)), 0, 0),
  1021. }, .3, false)
  1022. end
  1023. };
  1024.  
  1025. jump = {
  1026. play = function()
  1027. PlayAnimationFromTable({
  1028. CFrame.new(-0, -0.0699987784, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1029. CFrame.new(0, 1.49996114, -0.0999985784, 1, 0, 0, 0, 0.976393402, 0.216000035, 0, -0.216000021, 0.976393461) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1030. CFrame.new(1.96005464, 0.614818871, 0, -0.0459600165, -0.998943329, 0, 0.998943329, -0.0459600128, 0, 0, -0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1031. CFrame.new(-1.95485854, 0.615261137, 0, -0.157674044, 0.98749125, 0, -0.98749125, -0.157674044, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1032. CFrame.new(0.59998256, -1.92995512, 0, 0.99373585, -0.111754626, 0, 0.111754619, 0.993735909, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1033. CFrame.new(-0.510072351, -1.11883473, -0.515735626, 0.993913114, 0.110166967, 0, -0.110166967, 0.993913114, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1034. }, .3, false)
  1035. end
  1036. };
  1037. }
  1038. spawn(function()
  1039. attack = true
  1040. Humanoid.JumpPower = 0
  1041. Humanoid.WalkSpeed = 0
  1042. RightArm.Transparency = 1
  1043. LeftArm.Transparency = 1
  1044. Torso.Transparency = 1
  1045. Head.Transparency = 1
  1046. RightLeg.Transparency = 1
  1047. LeftLeg.Transparency = 1
  1048. anims.smash.play()
  1049. wait(2)
  1050. Effects.Rect.Create(BrickColor.new'Crimson',RootPart.CFrame, math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05)
  1051. Humanoid.JumpPower = jumppower
  1052. RightArm.Transparency = 0
  1053. LeftArm.Transparency = 0
  1054. Torso.Transparency = 0
  1055. Head.Transparency = 0
  1056. RightLeg.Transparency = 0
  1057. LeftLeg.Transparency = 0
  1058. Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 200, 200, 200, -0.8, -0.8, -0.8, 0.05)
  1059. Effects.Wave.Create(BrickColor.new'Crimson', RootPart.CFrame - Vector3.new(0,3,0), 5, 1, 5, 0.1, 0.01, 0.1, 0.06)
  1060.  
  1061. CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1062. startm()
  1063. wait(0.5)
  1064. Humanoid.WalkSpeed = 16
  1065. attack = false
  1066. end)
  1067. trans = function()
  1068. form = true
  1069. attack = true
  1070. decals()
  1071. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1072. MagnitudeDamage(RootPart, 20, 10, 20, 10, "Normal", "388826051", 3)
  1073. Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 200, 200, 200, 2, 2, 2, 0.05)
  1074. Effects.Wave.Create(BrickColor.new'Crimson', RootPart.CFrame - Vector3.new(0,3,0), 8, 1, 8, 0.1, 0.01, 0.1, 0.06)
  1075. pit = 0.9
  1076. if nomusic == false then
  1077. --soundid = '321467240'
  1078. par:WaitForChild'lol':Destroy()
  1079. par = Character
  1080. par:WaitForChild'lol'.Pitch = 0.9
  1081. end
  1082. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'Enough!', 1.5, BrickColor.new("Really red").Color,string.len('Enough!')/4)
  1083. hum.MaxHealth = 2000
  1084. wait()
  1085. hum.Health = 2000
  1086. attack = false
  1087. end
  1088. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1089. coroutine.wrap(function()
  1090. while true do wait()
  1091. if form == true and attack == false then
  1092. --RootPart.CFrame*CFrame.new(math.random(-25,25))
  1093. Effects.Block.Create(BrickColor.new'Crimson',RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)), math.random(16,30), math.random(16,30), math.random(16,30), -0.8, -0.8, -0.8, 0.05)
  1094. elseif cmon == true then
  1095.  
  1096. Effects.Block.Create(BrickColor.new'Crimson',RootPart.CFrame*CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)), math.random(200,300), math.random(200,300), math.random(200,300), -0.8, -0.8, -0.8, 0.05)
  1097. Effects.Rect.Create(BrickColor.new'Crimson',RootPart.CFrame*CFrame.new(math.random(-200,200),math.random(-200,200),math.random(-200,200)), math.random(200,300), 20000, math.random(200,300), -0.8, -0.8, -0.8, 0.05)
  1098. end
  1099. end
  1100. end)()
  1101. coroutine.wrap(function()
  1102. while true do wait()
  1103. if Humanoid.Health < 500 and form == false and attack == false then
  1104. trans()
  1105. elseif Humanoid.Health < 400 and form == true and attack == false then
  1106. attack = true
  1107. dying = true
  1108. anims.ball.play()
  1109. Humanoid.MaxHealth = math.huge
  1110. wait()
  1111. Humanoid.Health = math.huge
  1112. Humanoid.JumpPower = 0
  1113. Humanoid.HipHeight = 16
  1114. Humanoid.WalkSpeed = 0
  1115. cmon = true
  1116. wait(5)
  1117. cmon = false
  1118. wait(2)
  1119. for i, v in pairs(Head:GetChildren()) do
  1120. if v:IsA("Decal") then
  1121. v:Destroy()
  1122. end
  1123. end
  1124. RightArm.Transparency = 1
  1125. LeftArm.Transparency = 1
  1126. Torso.Transparency = 1
  1127. Head.Transparency = 1
  1128. RightLeg.Transparency = 1
  1129. LeftLeg.Transparency = 1
  1130. RightArm.Anchored = true
  1131. LeftArm.Anchored = true
  1132. Torso.Anchored = true
  1133. Head.Anchored = true
  1134. RightLeg.Anchored = true
  1135. LeftLeg.Anchored = true
  1136.  
  1137. coroutine.wrap(function()
  1138. local f = CFuncs['Sound'].Create("rbxassetid://995908246",Character,10,0.5)
  1139. local echo = Instance.new('EchoSoundEffect', f)
  1140. echo.Delay = 0.4
  1141. echo.Enabled = true
  1142. echo.Feedback = 0.2
  1143. end)()
  1144. MagnitudeDamage(RootPart, 100, 40, 50, 10, "DarkUp", "388826051", 3)
  1145. Effects.Rect.Create(BrickColor.new'Crimson',Torso.CFrame, 200, 20000, 200, -0.8, -0.8, -0.8, 0.05)
  1146. Effects.Rect.Create(BrickColor.new'Crimson',Torso.CFrame, 100, 20000, 100, -0.8, -0.8, -0.8, 0.05)
  1147. Effects.Rect.Create(BrickColor.new'Crimson',Torso.CFrame, 300, 20000, 300, -0.8, -0.8, -0.8, 0.05)
  1148. Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 500, 500, 500, 30, 30, 30, 0.006)
  1149. Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 300, 300, 300, 30, 30, 30, 0.006)
  1150. Effects.Block.Create(BrickColor.new'Crimson', Torso.CFrame, 100, 100, 100, 30, 30, 30, 0.006)
  1151. Humanoid.MaxHealth = 0
  1152. wait()
  1153. Humanoid.Health = 0
  1154. end
  1155. end
  1156. end)()
  1157. script.Name = 'different world'
  1158. function attackone()
  1159. attack = true
  1160. anims.punch1.play()
  1161. if gunout == false then
  1162. if form == false then
  1163. MagnitudeDamage(RightArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1164. else
  1165. MagnitudeDamage(RightArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1166. Effects.Block.Create(BrickColor.new'Crimson', RightArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1167. end
  1168. elseif gunout == true and bullets ~= 0 then
  1169. local a = Create("Part"){
  1170. Parent = Character,
  1171. Anchored = true,
  1172. CanCollide = false,
  1173. Transparency = 1,
  1174. Size = Vector3.new(0.5,0.2,0.5),
  1175. Position = Mouse.hit.p,
  1176. }
  1177.  
  1178. local p = Create("PointLight"){
  1179. Parent = gun,
  1180. Brightness = 16,
  1181. Range = 8,
  1182. Color = Color3.new(0,0,255)
  1183. }
  1184. local ray = Ray.new(tip.CFrame.p, (Mouse.Hit.p - tip.CFrame.p).unit * 300)
  1185. local part, position = workspace:FindPartOnRay(ray, Character, false, true)
  1186. local distance = (tip.CFrame.p - position).magnitude
  1187. local beam = Create('Part'){
  1188. Parent = Character,
  1189. BrickColor = BrickColor.new("Crimson"),
  1190. FormFactor = "Custom",
  1191. Material = "Neon",
  1192. Transparency = 0.25,
  1193. Anchored = true,
  1194. Locked = true,
  1195. CanCollide = false,
  1196. Size = Vector3.new(0.3, 0.3, distance),
  1197. CFrame = CFrame.new(tip.CFrame.p, position) * CFrame.new(0, 0, -distance / 2),
  1198. }
  1199.  
  1200. --http://www.roblox.com/asset/?id=359667865
  1201. CFuncs['Sound'].Create("rbxassetid://995908246",RightArm,5,1)
  1202. if form == false then
  1203. MagnitudeDamage(a, 5, 50, 90, 10, "Normal", "388826051", 3)
  1204. else
  1205. MagnitudeDamage(a, 5, 90, 1000, 10, "Normal", "388826051", 3)
  1206. Effects.Block.Create(BrickColor.new'Crimson', a.CFrame, 30, 30, 30, -0.8, -0.8, -0.8, 0.1)
  1207. end
  1208. bullets = bullets - 1
  1209. Effects.Block.Create(BrickColor.new'Crimson', tip.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1210. --Effects.Block.Create(BrickColor.new'Crimson', a.CFrame, 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1211. game:service'Debris':AddItem(p,0.1)
  1212. game:service'Debris':AddItem(a,0.1)
  1213. coroutine.wrap(function()
  1214. for i = 0, 1.4, 0.2 do
  1215. swait()
  1216. beam.Transparency = beam.Transparency + 0.1
  1217. beam.Size = beam.Size + Vector3.new(0.1,0.1,0.1)
  1218. end
  1219. game:service'Debris':AddItem(beam,0.1)
  1220. end)()
  1221. elseif bullets == 0 then
  1222. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'No energy!', 1.5, BrickColor.new("Really black").Color,string.len('No energy!')/4)
  1223. end
  1224.  
  1225. attack = false
  1226. end
  1227.  
  1228.  
  1229. function attacktwo()
  1230. attack = true
  1231. anims.punch2.play()
  1232. if form == false then
  1233. MagnitudeDamage(LeftArm, 5, 10, 20, 10, "Normal", "388826051", 3)
  1234. else
  1235. MagnitudeDamage(LeftArm, 5, 20, 30, 10, "Normal", "388826051", 3)
  1236. Effects.Block.Create(BrickColor.new'Crimson', LeftArm.CFrame * CFrame.new(0,-1,0), 16, 16, 16, -0.8, -0.8, -0.8, 0.1)
  1237. end
  1238. attack = false
  1239. end
  1240. function reload()
  1241. if bullets == 0 and gunout == true then
  1242. attack = true
  1243. anims.punch2.play()
  1244. wait(2)
  1245. bullets = amount
  1246. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 1.6, 0)), 'Recharged', 1.5, BrickColor.new("Really black").Color,string.len('Recharged')/4)
  1247. attack = false
  1248. end
  1249. end
  1250. function attackthree() -- kick
  1251. attack = true
  1252. kicking = true
  1253. hum.WalkSpeed = 40
  1254. anims.kick.play()
  1255. end
  1256.  
  1257. coroutine.wrap(function()
  1258. while true do
  1259. wait()
  1260. if kicking == true then
  1261. if form == false then
  1262. MagnitudeDamage(LeftLeg, 5, 20, 35, 10, "Normal", "388826051", 3)
  1263. else
  1264. MagnitudeDamage(LeftLeg, 5, 35, 45, 10, "Normal", "388826051", 3)
  1265. end
  1266. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-2)
  1267. end
  1268. end
  1269. end)()
  1270.  
  1271. function atk3end()
  1272. attack = false
  1273. hum.WalkSpeed = 16
  1274. kicking = false
  1275. end
  1276.  
  1277. Mouse.Button1Down:connect(function()
  1278. if attack == false and dying == false and attacktype == 1 then
  1279. attackone()
  1280. if gunout == false then
  1281. attacktype = 2
  1282. end
  1283. elseif attack == false and dying == false and attacktype == 2 then
  1284. attacktwo()
  1285. attacktype = 1
  1286. end
  1287. end)
  1288.  
  1289. hum.Died:connect(function()
  1290. Player.CameraMaxZoomDistance = 400
  1291. Player.CameraMinZoomDistance = 0.5
  1292. end)
  1293. Mouse.KeyDown:connect(function(k)
  1294. k = k:lower()
  1295. if attack == false and dying == false and k == 'z' then
  1296.  
  1297. attackthree()
  1298. elseif attack == false and dying == false and k == 'r' then
  1299. reload()
  1300. elseif attack == false and dying == false and k == 'g' then
  1301. if gunout == true then
  1302. gunout = false
  1303. gun.Transparency = 1
  1304. elseif gunout == false then
  1305. gun.Transparency = 0
  1306.  
  1307. gunout = true
  1308. end
  1309. end
  1310. end)
  1311. script.Name = 'different world'
  1312.  
  1313. Mouse.KeyUp:connect(function(k)
  1314. k = k:lower()
  1315. if k == 'z' and dying == false then
  1316. atk3end()
  1317. end
  1318. end)
  1319. script.Name = 'different world'
  1320. while true do
  1321. swait()
  1322. for i, v in pairs(Character:GetChildren()) do
  1323. if v:IsA("Part") then
  1324. v.Material = "SmoothPlastic"
  1325. elseif v:IsA("Accessory") then
  1326. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1327. end
  1328. end
  1329. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1330. velocity = RootPart.Velocity.y
  1331. sine = sine + change
  1332. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1333. if RootPart.Velocity.y > 1 and hit == nil then
  1334. Anim = "Jump"
  1335. if attack == false then
  1336. if jumping == false then
  1337. --CFuncs['Sound'].Create("rbxassetid://995908246",Torso,10,0.8)
  1338. jumping = true
  1339. end
  1340. anims.jump.play()
  1341. script.Name = 'different world'
  1342. end
  1343. elseif RootPart.Velocity.y < -1 and hit == nil then
  1344. Anim = "Fall"
  1345. if attack == false then
  1346. jumping = false
  1347. anims.jump.play()
  1348. script.Name = 'different world'
  1349. end
  1350. elseif Torsovelocity < 1 and hit ~= nil then
  1351. Anim = "Idle"
  1352. if attack == false then
  1353. change = 1
  1354. anims.idle.play()
  1355. script.Name = 'different world'
  1356.  
  1357. end
  1358. elseif Torsovelocity > 2 and hit ~= nil then
  1359. Anim = "Walk"
  1360. if attack == false then
  1361. anims.walk.play()
  1362. script.Name = 'different world'
  1363. end
  1364. end
  1365. if 0 < #Effects then
  1366. for e = 1, #Effects do
  1367. if Effects[e] ~= nil then
  1368. local Thing = Effects[e]
  1369. if Thing ~= nil then
  1370. local Part = Thing[1]
  1371. local Mode = Thing[2]
  1372. local Delay = Thing[3]
  1373. local IncX = Thing[4]
  1374. local IncY = Thing[5]
  1375. local IncZ = Thing[6]
  1376. if Thing[2] == "Shoot" then
  1377. local Look = Thing[1]
  1378. local move = 30
  1379. if Thing[8] == 3 then
  1380. move = 10
  1381. end
  1382. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1383. if Thing[10] ~= nil then
  1384. da = pos
  1385. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1386. cfa = CFrame.new(Thing[4], pos)
  1387. tehCF = cfa:lerp(cf2, 0.2)
  1388. Thing[1] = tehCF.lookVector
  1389. end
  1390. local mag = (Thing[4] - pos).magnitude
  1391. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1392. if Thing[8] == 2 then
  1393. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1394. end
  1395. Thing[4] = Thing[4] + Look * move
  1396. Thing[3] = Thing[3] - 1
  1397. if 2 < Thing[5] then
  1398. Thing[5] = Thing[5] - 0.3
  1399. Thing[6] = Thing[6] - 0.3
  1400. end
  1401. if hit ~= nil then
  1402. Thing[3] = 0
  1403. if Thing[8] == 1 or Thing[8] == 3 then
  1404. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1405. else
  1406. if Thing[8] == 2 then
  1407. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1408. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1409. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1410. ref.Anchored = true
  1411. ref.CFrame = CFrame.new(pos)
  1412. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1413. game:GetService("Debris"):AddItem(ref, 0.2)
  1414. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1415. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1416. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1417. end
  1418. end
  1419. end
  1420. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1421. ref.Anchored = true
  1422. ref.CFrame = CFrame.new(pos)
  1423. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1424. game:GetService("Debris"):AddItem(ref, 1)
  1425. end
  1426. if Thing[3] <= 0 then
  1427. table.remove(Effects, e)
  1428. end
  1429. end
  1430. do
  1431. do
  1432. if Thing[2] == "FireWave" then
  1433. if Thing[3] <= Thing[4] then
  1434. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1435. Thing[3] = Thing[3] + 1
  1436. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1437. else
  1438. Part.Parent = nil
  1439. table.remove(Effects, e)
  1440. end
  1441. end
  1442. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1443. if Thing[1].Transparency <= 1 then
  1444. if Thing[2] == "Block1" then
  1445. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1446. Mesh = Thing[7]
  1447. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1448. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1449.  
  1450. else
  1451. if Thing[2] == "Block2" then
  1452. Thing[1].CFrame = Thing[1].CFrame
  1453. Mesh = Thing[7]
  1454. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1455. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1456. else
  1457. if Thing[2] == "Fire" then
  1458. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1459. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1460. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1461. else
  1462. if Thing[2] == "Cylinder" then
  1463. Mesh = Thing[7]
  1464. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1465. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1466. else
  1467. if Thing[2] == "Blood" then
  1468. Mesh = Thing[7]
  1469. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1470. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1471. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1472. else
  1473. if Thing[2] == "Elec" then
  1474. Mesh = Thing[10]
  1475. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1476. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1477. else
  1478. if Thing[2] == "Disappear" then
  1479. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1480. else
  1481. if Thing[2] == "Shatter" then
  1482. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1483. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1484. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1485. Thing[6] = Thing[6] + Thing[5]
  1486. end
  1487. end
  1488. end
  1489. end
  1490. end
  1491. end
  1492. end
  1493. end
  1494. else
  1495. Part.Parent = nil
  1496. table.remove(Effects, e)
  1497. end
  1498. end
  1499. end
  1500. end
  1501. end
  1502. end
  1503. end
  1504. end
  1505. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement