Advertisement
memberhero

Untitled

Feb 9th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.29 KB | None | 0 0
  1. --[[ -Ruin IV
  2. -By makhail07.
  3. -Discord: Superthumb#2958
  4. __- -__
  5. --_M_--
  6.  
  7. Nebula Will finish the rest i'm done with this script ¯\_(ツ)_/¯
  8. --]]
  9.  
  10. print'By makhail07'
  11. print'Gauntlet by NoobyGames12'
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. function clerp(c1,c2,al)
  22. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  23. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  24. for i,v in pairs(com1) do
  25. com1[i] = v+(com2[i]-v)*al
  26. end
  27. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  28. end
  29. Personality = "HOLY SHIT ANOTHER RUIN AAAAAAAAAAAAAAAA"
  30. vt = Vector3.new
  31. Effects = { }
  32. bc = BrickColor.new
  33. plr = game:service'Players'.LocalPlayer
  34. char = plr.Character
  35. Player = game.Players.LocalPlayer
  36. Character = Player.Character
  37. mouse = plr:GetMouse()
  38. humanoid = char:findFirstChild("Humanoid")
  39. torso = char:findFirstChild("Torso")
  40. if torso == nil then
  41. print'no r15 skr0d xd'
  42. end
  43. head = char.Head
  44. Head = char.Head
  45. ra = char:findFirstChild("Right Arm")
  46. la = char:findFirstChild("Left Arm")
  47. rl = char:findFirstChild("Right Leg")
  48. ll = char:findFirstChild("Left Leg")
  49. rs = torso:findFirstChild("Right Shoulder")
  50. ls = torso:findFirstChild("Left Shoulder")
  51. rh = torso:findFirstChild("Right Hip")
  52. lh = torso:findFirstChild("Left Hip")
  53. neck = torso:findFirstChild("Neck")
  54. rss = game:GetService("RunService").RenderStepped
  55. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  56. RootPart = Character.HumanoidRootPart
  57. RootJoint = RootPart.RootJoint
  58. anim = char:findFirstChild("Animate")
  59. root = char.HumanoidRootPart
  60. rootpart = char:findFirstChild("HumanoidRootPart")
  61. RootPart = char:findFirstChild("HumanoidRootPart")
  62. attack = false
  63. drinks = 0
  64. local RbxUtility = LoadLibrary("RbxUtility")
  65. local Create = RbxUtility.Create
  66. Rmode = "1"
  67. local maincolor = torso.BrickColor
  68. local maincolor2 = BrickColor.new("Really black")
  69.  
  70.  
  71. New = function(Object, Parent, Name, Data)
  72. local Object = Instance.new(Object)
  73. for Index, Value in pairs(Data or {}) do
  74. Object[Index] = Value
  75. end
  76. Object.Parent = Parent
  77. Object.Name = Name
  78. return Object
  79. end
  80.  
  81. function newPart(Parent, brickcolor, transparency, anchored, cancollide, size, name)
  82. local fp = Instance.new("Part")
  83. fp.Parent = Parent
  84. fp.Transparency = transparency
  85. fp.Anchored = anchored
  86. fp.CanCollide = cancollide
  87. fp.Locked = true
  88. fp.BrickColor = brickcolor
  89. fp.Name = name
  90. fp.Size = size
  91. fp.Position = torso.Position
  92. NoOutline(fp)
  93. fp.Material = "SmoothPlastic"
  94. fp:BreakJoints()
  95. return fp
  96. end
  97. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  98. local mesh = Instance.new(Mesh)
  99. mesh.Parent = part
  100. if Mesh == "SpecialMesh" then
  101. mesh.MeshType = meshtype
  102. if meshid then
  103. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  104. end
  105. end
  106. if offset then
  107. mesh.Offset = offset
  108. end
  109. mesh.Scale = scale
  110. return mesh
  111. end
  112. function weld(parent, part0, part1, c0)
  113. local weld = Instance.new("Weld")
  114. weld.Parent = parent
  115. weld.Part0 = part0
  116. weld.Part1 = part1
  117. weld.C0 = c0
  118. return weld
  119. end
  120. function weld5(part0, part1, c0, c1)
  121. weeld=Instance.new("Weld", part0)
  122. weeld.Part0=part0
  123. weeld.Part1=part1
  124. weeld.C0=c0
  125. weeld.C1=c1
  126. return weeld
  127. end
  128. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  129. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  130. end
  131.  
  132. function swait(num)
  133. if num==0 or num==nil then
  134. game:service'RunService'.Stepped:wait(0)
  135. else
  136. for i=0,num do
  137. game:service'RunService'.Stepped:wait(0)
  138. end
  139. end
  140. end
  141. function thread(f)
  142. coroutine.resume(coroutine.create(f))
  143. end
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156. --Very important stuff--
  157. Player=game:GetService("Players").LocalPlayer
  158. Character=Player.Character
  159. PlayerGui=Player.PlayerGui
  160. Backpack=Player.Backpack
  161. Torso=Character.Torso
  162. Head=Character.Head
  163. Humanoid=Character.Humanoid
  164. m=Instance.new('Model',Character)
  165. LeftArm=Character["Left Arm"]
  166. LeftLeg=Character["Left Leg"]
  167. RightArm=Character["Right Arm"]
  168. RightLeg=Character["Right Leg"]
  169. LS=Torso["Left Shoulder"]
  170. LH=Torso["Left Hip"]
  171. RS=Torso["Right Shoulder"]
  172. RH=Torso["Right Hip"]
  173. Face = Head.face
  174. Neck=Torso.Neck
  175. it=Instance.new
  176. attacktype=1
  177. vt=Vector3.new
  178. cf=CFrame.new
  179. euler=CFrame.fromEulerAnglesXYZ
  180. angles=CFrame.Angles
  181. cloaked=false
  182. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  183. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  184. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  185. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  186. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  187. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  188. RootPart=Character.HumanoidRootPart
  189. RootJoint=RootPart.RootJoint
  190. RootCF=euler(-1.57,0,3.14)
  191. attack = false
  192. attackdebounce = false
  193. deb=false
  194. equipped=true
  195. hand=false
  196. MMouse=nil
  197. combo=0
  198. mana=0
  199. trispeed=.2
  200. attackmode=false
  201. local idle=0
  202. local Anim="Idle"
  203. local gun=false
  204. local shoot=false
  205. local sine = 0
  206. local change = 1
  207. player=nil
  208.  
  209. mouse=Player:GetMouse()
  210. --save shoulders
  211. RSH, LSH=nil, nil
  212. --welds
  213. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  214. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  215. LH=Torso["Left Hip"]
  216. RH=Torso["Right Hip"]
  217. TorsoColor=Torso.BrickColor
  218. function NoOutline(Part)
  219. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  220. end
  221. player=Player
  222. ch=Character
  223. RSH=ch.Torso["Right Shoulder"]
  224. LSH=ch.Torso["Left Shoulder"]
  225. --
  226. RSH.Parent=nil
  227. LSH.Parent=nil
  228. --
  229. RW.Name="Right Shoulder"
  230. RW.Part0=ch.Torso
  231. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  232. RW.C1=cf(0, 0.5, 0)
  233. RW.Part1=ch["Right Arm"]
  234. RW.Parent=ch.Torso
  235. --
  236. LW.Name="Left Shoulder"
  237. LW.Part0=ch.Torso
  238. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  239. LW.C1=cf(0, 0.5, 0)
  240. LW.Part1=ch["Left Arm"]
  241. LW.Parent=ch.Torso
  242.  
  243.  
  244. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  245. local wld = Instance.new("Weld", wp1)
  246. wld.Part0 = wp0
  247. wld.Part1 = wp1
  248. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  249. end
  250.  
  251.  
  252. newWeld(RootPart, Torso, 0, -1, 0)
  253. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  254. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  255. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  256. newWeld(Torso, RightLeg, 0.5, -1, 0)
  257. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  258.  
  259. Player=game:GetService('Players').LocalPlayer
  260. Character=Player.Character
  261. mouse=Player:GetMouse()
  262. m=Instance.new('Model',Character)
  263.  
  264.  
  265. local function weldBetween(a, b)
  266. local weldd = Instance.new("ManualWeld")
  267. weldd.Part0 = a
  268. weldd.Part1 = b
  269. weldd.C0 = CFrame.new()
  270. weldd.C1 = b.CFrame:inverse() * a.CFrame
  271. weldd.Parent = a
  272. return weldd
  273. end
  274.  
  275. ArtificialHB = Instance.new("BindableEvent", script)
  276. ArtificialHB.Name = "Heartbeat"
  277.  
  278. script:WaitForChild("Heartbeat")
  279.  
  280. frame = 1 / 60
  281. tf = 0
  282. allowframeloss = false
  283. tossremainder = false
  284. lastframe = tick()
  285. script.Heartbeat:Fire()
  286.  
  287. game:GetService("RunService").Heartbeat:connect(function(s, p)
  288. tf = tf + s
  289. if tf >= frame then
  290. if allowframeloss then
  291. script.Heartbeat:Fire()
  292. lastframe = tick()
  293. else
  294. for i = 1, math.floor(tf / frame) do
  295. script.Heartbeat:Fire()
  296. end
  297. lastframe = tick()
  298. end
  299. if tossremainder then
  300. tf = 0
  301. else
  302. tf = tf - frame * math.floor(tf / frame)
  303. end
  304. end
  305. end)
  306.  
  307.  
  308.  
  309. CFuncs = {
  310. ["Part"] = {
  311. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  312. local Part = Create("Part"){
  313. Parent = Parent,
  314. Reflectance = Reflectance,
  315. Transparency = Transparency,
  316. CanCollide = false,
  317. Locked = true,
  318. BrickColor = BrickColor.new(tostring(BColor)),
  319. Name = Name,
  320. Size = Size,
  321. Material = Material,
  322. }
  323. RemoveOutlines(Part)
  324. return Part
  325. end;
  326. };
  327.  
  328. ["Mesh"] = {
  329. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  330. local Msh = Create(Mesh){
  331. Parent = Part,
  332. Offset = OffSet,
  333. Scale = Scale,
  334. }
  335. if Mesh == "SpecialMesh" then
  336. Msh.MeshType = MeshType
  337. Msh.MeshId = MeshId
  338. end
  339. return Msh
  340. end;
  341. };
  342.  
  343. ["Mesh"] = {
  344. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  345. local Msh = Create(Mesh){
  346. Parent = Part,
  347. Offset = OffSet,
  348. Scale = Scale,
  349. }
  350. if Mesh == "SpecialMesh" then
  351. Msh.MeshType = MeshType
  352. Msh.MeshId = MeshId
  353. end
  354. return Msh
  355. end;
  356. };
  357.  
  358. ["Weld"] = {
  359. Create = function(Parent, Part0, Part1, C0, C1)
  360. local Weld = Create("Weld"){
  361. Parent = Parent,
  362. Part0 = Part0,
  363. Part1 = Part1,
  364. C0 = C0,
  365. C1 = C1,
  366. }
  367. return Weld
  368. end;
  369. };
  370.  
  371. ["Sound"] = {
  372. Create = function(id, par, vol, pit)
  373. coroutine.resume(coroutine.create(function()
  374. local S = Create("Sound"){
  375. Volume = vol,
  376. Pitch = pit or 1,
  377. SoundId = id,
  378. Parent = par or workspace,
  379. }
  380. wait()
  381. S:play()
  382. game:GetService("Debris"):AddItem(S, 6)
  383. end))
  384. end;
  385. };
  386.  
  387. ["ParticleEmitter"] = {
  388. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  389. local fp = Create("ParticleEmitter"){
  390. Parent = Parent,
  391. Color = ColorSequence.new(Color1, Color2),
  392. LightEmission = LightEmission,
  393. Size = Size,
  394. Texture = Texture,
  395. Transparency = Transparency,
  396. ZOffset = ZOffset,
  397. Acceleration = Accel,
  398. Drag = Drag,
  399. LockedToPart = LockedToPart,
  400. VelocityInheritance = VelocityInheritance,
  401. EmissionDirection = EmissionDirection,
  402. Enabled = Enabled,
  403. Lifetime = LifeTime,
  404. Rate = Rate,
  405. Rotation = Rotation,
  406. RotSpeed = RotSpeed,
  407. Speed = Speed,
  408. VelocitySpread = VelocitySpread,
  409. }
  410. return fp
  411. end;
  412. };
  413.  
  414. CreateTemplate = {
  415.  
  416. };
  417. }
  418.  
  419. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  420. if hit.Parent == nil then
  421. return
  422. end
  423. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  424. for _, v in pairs(hit.Parent:children()) do
  425. if v:IsA("Humanoid") then
  426. h = v
  427. end
  428. end
  429. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  430. warn'No R15 allowed'
  431. hit.Parent:FindFirstChild("Head"):BreakJoints()
  432. end
  433.  
  434. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  435. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  436. if hit.Parent.DebounceHit.Value == true then
  437. return
  438. end
  439. end
  440. if insta == true then
  441. hit.Parent:FindFirstChild("Head"):BreakJoints()
  442. end
  443. local c = Create("ObjectValue"){
  444. Name = "creator",
  445. Value = game:service("Players").LocalPlayer,
  446. Parent = h,
  447. }
  448. game:GetService("Debris"):AddItem(c, .5)
  449. if HitSound ~= nil and HitPitch ~= nil then
  450. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  451. end
  452. local Damage = math.random(minim, maxim)
  453. local blocked = false
  454. local block = hit.Parent:findFirstChild("Block")
  455. if block ~= nil then
  456. if block.className == "IntValue" then
  457. if block.Value > 0 then
  458. blocked = true
  459. block.Value = block.Value - 1
  460. print(block.Value)
  461. end
  462. end
  463. end
  464. if blocked == false then
  465. h.Health = h.Health - Damage
  466. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, torso.BrickColor.Color)
  467. else
  468. h.Health = h.Health - (Damage / 2)
  469. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, torso.BrickColor.Color)
  470. end
  471. if Type == "Knockdown" then
  472. local hum = hit.Parent.Humanoid
  473. hum.PlatformStand = true
  474. coroutine.resume(coroutine.create(function(HHumanoid)
  475. swait(1)
  476. HHumanoid.PlatformStand = false
  477. end), hum)
  478. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  479. local bodvol = Create("BodyVelocity"){
  480. velocity = angle * knockback,
  481. P = 5000,
  482. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  483. Parent = hit,
  484. }
  485. local rl = Create("BodyAngularVelocity"){
  486. P = 3000,
  487. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  488. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  489. Parent = hit,
  490. }
  491. game:GetService("Debris"):AddItem(bodvol, .5)
  492. game:GetService("Debris"):AddItem(rl, .5)
  493. elseif Type == "Normal" then
  494. local vp = Create("BodyVelocity"){
  495. P = 500,
  496. maxForce = Vector3.new(math.huge, 0, math.huge),
  497. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  498. }
  499. if knockback > 0 then
  500. vp.Parent = hit.Parent.Torso
  501. end
  502. game:GetService("Debris"):AddItem(vp, .5)
  503. elseif Type == "Up" then
  504. local bodyVelocity = Create("BodyVelocity"){
  505. velocity = Vector3.new(0, 20, 0),
  506. P = 5000,
  507. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  508. Parent = hit,
  509. }
  510. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  511. elseif Type == "DarkUp" then
  512. coroutine.resume(coroutine.create(function()
  513. for i = 0, 1, 0.1 do
  514. swait()
  515. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  516. end
  517. end))
  518. local bodyVelocity = Create("BodyVelocity"){
  519. velocity = Vector3.new(0, 20, 0),
  520. P = 5000,
  521. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  522. Parent = hit,
  523. }
  524. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  525. elseif Type == "Snare" then
  526. local bp = Create("BodyPosition"){
  527. P = 2000,
  528. D = 100,
  529. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  530. position = hit.Parent.Torso.Position,
  531. Parent = hit.Parent.Torso,
  532. }
  533. game:GetService("Debris"):AddItem(bp, 1)
  534. elseif Type == "Freeze" then
  535. local BodPos = Create("BodyPosition"){
  536. P = 50000,
  537. D = 1000,
  538. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  539. position = hit.Parent.Torso.Position,
  540. Parent = hit.Parent.Torso,
  541. }
  542. local BodGy = Create("BodyGyro") {
  543. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  544. P = 20e+003,
  545. Parent = hit.Parent.Torso,
  546. cframe = hit.Parent.Torso.CFrame,
  547. }
  548. hit.Parent.Torso.Anchored = true
  549. coroutine.resume(coroutine.create(function(Part)
  550. swait(1.5)
  551. Part.Anchored = false
  552. end), hit.Parent.Torso)
  553. game:GetService("Debris"):AddItem(BodPos, 3)
  554. game:GetService("Debris"):AddItem(BodGy, 3)
  555. end
  556. local debounce = Create("BoolValue"){
  557. Name = "DebounceHit",
  558. Parent = hit.Parent,
  559. Value = true,
  560. }
  561. game:GetService("Debris"):AddItem(debounce, Delay)
  562. c = Create("ObjectValue"){
  563. Name = "creator",
  564. Value = Player,
  565. Parent = h,
  566. }
  567. game:GetService("Debris"):AddItem(c, .5)
  568. end
  569. end
  570.  
  571. function ShowDamage(Pos, Text, Time, Color)
  572. local Rate = (1 / 30)
  573. local Pos = (Pos or Vector3.new(0, 0, 0))
  574. local Text = (Text or "")
  575. local Time = (Time or 2)
  576. local Color = (Color or Color3.new(1, 0, 1))
  577. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  578. EffectPart.Anchored = true
  579. local BillboardGui = Create("BillboardGui"){
  580. Size = UDim2.new(3, 0, 3, 0),
  581. Adornee = EffectPart,
  582. Parent = EffectPart,
  583. }
  584. local TextLabel = Create("TextLabel"){
  585. BackgroundTransparency = 1,
  586. Size = UDim2.new(1, 0, 1, 0),
  587. Text = Text,
  588. Font = "SciFi",
  589. TextColor3 = Color,
  590. TextScaled = true,
  591. Parent = BillboardGui,
  592. }
  593. game.Debris:AddItem(EffectPart, (Time))
  594. EffectPart.Parent = game:GetService("Workspace")
  595. delay(0, function()
  596. local Frames = (Time / Rate)
  597. for Frame = 1, Frames do
  598. wait(Rate)
  599. local Percent = (Frame / Frames)
  600. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  601. TextLabel.TextTransparency = Percent
  602. end
  603. if EffectPart and EffectPart.Parent then
  604. EffectPart:Destroy()
  605. end
  606. end)
  607. end
  608. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  609. for _, c in pairs(workspace:children()) do
  610. local hum = c:findFirstChild("Humanoid")
  611. if hum ~= nil then
  612. local head = c:findFirstChild("Torso")
  613. if head ~= nil then
  614. local targ = head.Position - Part.Position
  615. local mag = targ.magnitude
  616. if mag <= Magnitude and c.Name ~= Player.Name then
  617. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  618. end
  619. end
  620. end
  621. end
  622. end
  623. EffectModel = Create("Model"){
  624. Parent = Character,
  625. Name = "Effects",
  626. }
  627.  
  628. Effects = {
  629. Block = {
  630. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  631. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2)) -- fixed by salvo cuz roadblok upd sus
  632. prt.Anchored = true
  633. prt.CFrame = cframe
  634. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  635. game:GetService("Debris"):AddItem(prt, 10)
  636. if Type == 1 or Type == nil then
  637. table.insert(Effects, {
  638. prt,
  639. "Block1",
  640. delay,
  641. x3,
  642. y3,
  643. z3,
  644. msh
  645. })
  646. elseif Type == 2 then
  647. table.insert(Effects, {
  648. prt,
  649. "Block2",
  650. delay,
  651. x3,
  652. y3,
  653. z3,
  654. msh
  655. })
  656. end
  657. end;
  658. };
  659.  
  660. Cylinder = {
  661. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  662. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  663. prt.Anchored = true
  664. prt.CFrame = cframe
  665. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  666. game:GetService("Debris"):AddItem(prt, 10)
  667. table.insert(Effects, {
  668. prt,
  669. "Cylinder",
  670. delay,
  671. x3,
  672. y3,
  673. z3,
  674. msh
  675. })
  676. end;
  677. };
  678. Head = {
  679. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  680. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  681. prt.Anchored = true
  682. prt.CFrame = cframe
  683. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  684. game:GetService("Debris"):AddItem(prt, 10)
  685. table.insert(Effects, {
  686. prt,
  687. "Cylinder",
  688. delay,
  689. x3,
  690. y3,
  691. z3,
  692. msh
  693. })
  694. end;
  695. };
  696.  
  697. Sphere = {
  698. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  699. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  700. prt.Anchored = true
  701. prt.CFrame = cframe
  702. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  703. game:GetService("Debris"):AddItem(prt, 10)
  704. table.insert(Effects, {
  705. prt,
  706. "Cylinder",
  707. delay,
  708. x3,
  709. y3,
  710. z3,
  711. msh
  712. })
  713. end;
  714. };
  715. Blood = {
  716. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  717. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  718. prt.Anchored = true
  719. prt.CFrame = cframe
  720. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  721. game:GetService("Debris"):AddItem(prt, 10)
  722. table.insert(Effects, {
  723. prt,
  724. "Blood",
  725. delay,
  726. x3,
  727. y3,
  728. z3,
  729. msh
  730. })
  731. end
  732. },
  733. Elect = {
  734. Create = function(cff, x, y, z)
  735. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  736. prt.Anchored = true
  737. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  738. prt.CFrame = CFrame.new(prt.Position)
  739. game:GetService("Debris"):AddItem(prt, 2)
  740. local xval = math.random() / 2
  741. local yval = math.random() / 2
  742. local zval = math.random() / 2
  743. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  744. table.insert(Effects, {
  745. prt,
  746. "Elec",
  747. 0.1,
  748. x,
  749. y,
  750. z,
  751. xval,
  752. yval,
  753. zval
  754. })
  755. end;
  756.  
  757. };
  758.  
  759. Ring = {
  760. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  761. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  762. prt.Anchored = true
  763. prt.CFrame = cframe
  764. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  765. game:GetService("Debris"):AddItem(prt, 10)
  766. table.insert(Effects, {
  767. prt,
  768. "Cylinder",
  769. delay,
  770. x3,
  771. y3,
  772. z3,
  773. msh
  774. })
  775. end;
  776. };
  777.  
  778.  
  779. Wave = {
  780. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  781. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  782. prt.Anchored = true
  783. prt.CFrame = cframe
  784. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  785. game:GetService("Debris"):AddItem(prt, 10)
  786. table.insert(Effects, {
  787. prt,
  788. "Cylinder",
  789. delay,
  790. x3,
  791. y3,
  792. z3,
  793. msh
  794. })
  795. end;
  796. };
  797.  
  798. Break = {
  799. Create = function(brickcolor, cframe, x1, y1, z1)
  800. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  801. prt.Anchored = true
  802. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  803. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  804. local num = math.random(10, 50) / 1000
  805. game:GetService("Debris"):AddItem(prt, 10)
  806. table.insert(Effects, {
  807. prt,
  808. "Shatter",
  809. num,
  810. prt.CFrame,
  811. math.random() - math.random(),
  812. 0,
  813. math.random(50, 100) / 100
  814. })
  815. end;
  816. };
  817.  
  818. Fire = {
  819. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  820. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  821. prt.Anchored = true
  822. prt.CFrame = cframe
  823. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  824. game:GetService("Debris"):AddItem(prt, 10)
  825. table.insert(Effects, {
  826. prt,
  827. "Fire",
  828. delay,
  829. 1,
  830. 1,
  831. 1,
  832. msh
  833. })
  834. end;
  835. };
  836.  
  837. Blast = {
  838. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  839. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  840. prt.Anchored = true
  841. prt.CFrame = cframe
  842. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  843. game:GetService("Debris"):AddItem(prt, 10)
  844. table.insert(Effects, {
  845. prt,
  846. "Block4",
  847. delay,
  848. x3,
  849. y3,
  850. z3,
  851. msh,
  852. Part
  853. })
  854. end
  855. },
  856.  
  857.  
  858. FireWave = {
  859. Create = function(brickcolor, cframe, x1, y1, z1)
  860. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  861. prt.Anchored = true
  862. prt.CFrame = cframe
  863. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  864. local d = Create("Decal"){
  865. Parent = prt,
  866. Texture = "rbxassetid://26356434",
  867. Face = "Top",
  868. }
  869. local d = Create("Decal"){
  870. Parent = prt,
  871. Texture = "rbxassetid://26356434",
  872. Face = "Bottom",
  873. }
  874. game:GetService("Debris"):AddItem(prt, 10)
  875. table.insert(Effects, {
  876. prt,
  877. "FireWave",
  878. 1,
  879. 30,
  880. math.random(400, 600) / 100,
  881. msh
  882. })
  883. end;
  884. };
  885.  
  886. Ice = {
  887. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  888. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  889. prt.Anchored = true
  890. prt.CFrame = cframe
  891. msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1778999", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  892. game:GetService("Debris"):AddItem(prt, 10)
  893. for i = 1, 5 do
  894. Effects.Break.Create(BrickColor.new(brickcolor), prt.CFrame * CFrame.new(0, 4, 0), math.random(20, 80) / 100, math.random(2, 10), math.random(20, 80) / 100)
  895. end
  896. for i = 1, 15 do
  897. local freezepart = CFuncs.Part.Create(EffectModel, "Neon", 0.5, 0.5, BrickColor.new("Bright blue"), "Ice Part", Vector3.new(math.random(1, 2) + math.random(), math.random(1, 2) + math.random(), math.random(1, 2) + math.random()))
  898. freezepart.Anchored = true
  899. freezepart.CanCollide = true
  900. freezepart.CFrame = cframe * CFrame.new(math.random(-300, 300) / 100, 1, math.random(-300, 300) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  901. game:GetService("Debris"):AddItem(freezepart, 10)
  902. end
  903. table.insert(Effects, {
  904. prt,
  905. "Ice",
  906. delay,
  907. msh,
  908. 1,
  909. .2
  910. })
  911. end
  912. },
  913.  
  914. Lightning = {
  915. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  916. local magz = (p0 - p1).magnitude
  917. local curpos = p0
  918. local trz = {
  919. -ofs,
  920. ofs
  921. }
  922. for i = 1, tym do
  923. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  924. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  925. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  926. li.Material = "Neon"
  927. if tym == i then
  928. local magz2 = (curpos - p1).magnitude
  929. li.Size = Vector3.new(th, th, magz2)
  930. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  931. table.insert(Effects, {
  932. li,
  933. "Disappear",
  934. last
  935. })
  936. else
  937. do
  938. do
  939. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  940. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  941. game.Debris:AddItem(li, 10)
  942. table.insert(Effects, {
  943. li,
  944. "Disappear",
  945. last
  946. })
  947. end
  948. end
  949. end
  950. end
  951. end
  952. };
  953.  
  954. EffectTemplate = {
  955.  
  956. };
  957. }
  958.  
  959. Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
  960.  
  961. local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  962. prt.Anchored = true
  963. prt.CFrame = cframe
  964. prt.Material = "Neon"
  965. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  966. game:GetService("Debris"):AddItem(prt, 10)
  967. coroutine.resume(coroutine.create(function(Part, Mesh)
  968.  
  969. for i = 0, 1, delay do
  970. swait()
  971. Part.Transparency = i
  972. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  973. end
  974. Part.Parent = nil
  975. end
  976. ), prt, msh)
  977. end
  978.  
  979.  
  980.  
  981.  
  982. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  983. local p = Instance.new("Part")
  984. p.Parent = parent
  985. p.Size = Vector3.new(1,1,1)
  986. p.Transparency = transparency
  987. p.Reflectance = reflectance
  988. p.CanCollide = false
  989. p.BrickColor = brickcolor
  990. p.Material = material
  991. return p
  992. end
  993.  
  994.  
  995. function CreateMesh(parent,meshtype,x1,y1,z1)
  996. local mesh = Instance.new("SpecialMesh",parent)
  997. mesh.MeshType = meshtype
  998. mesh.Scale = Vector3.new(x1,y1,z1)
  999. return mesh
  1000. end
  1001.  
  1002. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1003. local mesh = Instance.new("SpecialMesh",parent)
  1004. mesh.MeshType = "SpecialMesh"
  1005. mesh.MeshId = meshid
  1006. mesh.Scale = Vector3.new(x1,y1,z1)
  1007. return mesh
  1008. end
  1009.  
  1010. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1011. local mesh = Instance.new("SpecialMesh",parent)
  1012. mesh.MeshType = "FileMesh"
  1013. mesh.MeshId = meshid
  1014. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1015. mesh.Scale = Vector3.new(x1,y1,z1)
  1016. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1017. return mesh
  1018. end
  1019.  
  1020. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1021. local weld = Instance.new("Weld")
  1022. weld.Parent = parent
  1023. weld.Part0 = part0
  1024. weld.Part1 = part1
  1025. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1026. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1027. return weld
  1028. end
  1029.  
  1030. local m = Instance.new("Model",char)
  1031. m.Name = "GaunletModel"
  1032.  
  1033. local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1034. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  1035. CreateWeld(handle,ra,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1036.  
  1037.  
  1038. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  1039. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  1040. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1041. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  1042. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  1043. CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1044. local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1045. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  1046. CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1047. local zi = CreatePart(m,0,0,"Neon",maincolor)
  1048. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  1049. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1050.  
  1051.  
  1052. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  1053. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  1054. CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1055. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  1056. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  1057. CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1058.  
  1059. local di = CreatePart(m,0,0,"Neon",maincolor)
  1060. CreateMesh(di,"Brick",0.3,0.3,0.3)
  1061. CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1062.  
  1063. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  1064. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  1065. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1066. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  1067. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  1068. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1069. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  1070. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  1071. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1072. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  1073. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  1074. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1075. local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1076. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  1077. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1078. local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1079. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  1080. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1081. local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1082. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  1083. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1084. local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1085. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  1086. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1087. local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1088. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  1089. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1090.  
  1091. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  1092. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  1093. CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1094. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  1095. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  1096. CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1097. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  1098. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  1099. CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1100. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  1101. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  1102. CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1103.  
  1104. local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1105. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  1106. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1107. local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1108. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  1109. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1110. local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1111. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  1112. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1113. local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1114. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  1115. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1116.  
  1117. local locl = CreatePart(m,0,0,"Neon",maincolor)
  1118. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  1119. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1120.  
  1121. local dil = CreatePart(m,0,0,"Neon",maincolor)
  1122. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  1123. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1124.  
  1125. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  1126. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  1127. CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1128. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  1129. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  1130. CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1131.  
  1132. local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1133. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  1134. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1135. local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1136. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  1137. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1138. local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1139. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  1140. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1141.  
  1142. local locr = CreatePart(m,0,0,"Neon",maincolor)
  1143. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  1144. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1145.  
  1146. local dir = CreatePart(m,0,0,"Neon",maincolor)
  1147. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  1148. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1149.  
  1150. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  1151. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  1152. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1153. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  1154. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  1155. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1156.  
  1157. local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1158. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  1159. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1160. local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1161. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  1162. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163. local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  1164. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  1165. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1166. print'Ruin IV 25%'
  1167. wait(1)
  1168.  
  1169.  
  1170.  
  1171.  
  1172. function rayCast(Position, Direction, Range, Ignore)
  1173. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1174. end
  1175. function RemoveOutlines(part)
  1176. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1177. end
  1178.  
  1179.  
  1180.  
  1181. --These were just parts for an old knife i was going to make for psychov3 it didn't work out so well
  1182. local cors = {}
  1183. local mas = Instance.new("Model",game:GetService("Lighting"))
  1184. local Model1 = Instance.new("Model")
  1185. local Part1s = Instance.new("Part")
  1186. local Part2s = Instance.new("Part")
  1187. local Part3s = Instance.new("Part")
  1188. local Part4s = Instance.new("Part")
  1189. local Weld5s = Instance.new("Weld")
  1190. local Weld6s = Instance.new("Weld")
  1191. local Weld7s = Instance.new("Weld")
  1192. local Weld8s = Instance.new("Weld")
  1193. local Part9s = Instance.new("Part")
  1194. Model1.Name = "/shrug"
  1195. Model1.Parent = mas
  1196. Part1s.Name = "d"
  1197. Part1s.Parent = Model1
  1198. Part1s.Material = "Metal"
  1199. Part1s.BrickColor = BrickColor.new("Really black")
  1200. Part1s.Rotation = Vector3.new(0, 90, 0)
  1201. Part1s.Size = Vector3.new(0.454666376, 0.549333888, 0.0500000007)
  1202. Part1s.CFrame = CFrame.new(-28.8698483, 11.4513311, -5.31685686, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1203. Part1s.Color = Color3.new(0.952941, 0.94902, 0.960784)
  1204. Part1s.Position = Vector3.new(-28.8698483, 11.4513311, -5.31685686)
  1205. Part1s.Orientation = Vector3.new(0, 90, 0)
  1206. Part1s.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1207. Part2s.Name = "xp"
  1208. Part2s.Parent = Model1
  1209. Part2s.Material = "Metal"
  1210. Part2s.BrickColor = BrickColor.new("Really black")
  1211. Part2s.Rotation = Vector3.new(0, 90, 0)
  1212. Part2s.Size = Vector3.new(0.359333158, 0.549333888, 0.0500000007)
  1213. Part2s.CFrame = CFrame.new(-28.8698502, 11.7006636, -5.26919031, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1214. Part2s.Color = Color3.new(0.952941, 0.94902, 0.960784)
  1215. Part2s.Position = Vector3.new(-28.8698502, 11.7006636, -5.26919031)
  1216. Part2s.Orientation = Vector3.new(0, 90, 0)
  1217. Part2s.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1218. Part3s.Name = "xdd"
  1219. Part3s.Parent = Model1
  1220. Part3s.BrickColor = BrickColor.new("Black") --Ignore thise pl0x
  1221. Part3s.Rotation = Vector3.new(0, 90, 0)
  1222. Part3s.Size = Vector3.new(0.810000014, 0.149999991, 0.300000012)
  1223. Part3s.CFrame = CFrame.new(-28.8630695, 10.2738171, -5.38322401, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1224. Part3s.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1225. Part3s.Position = Vector3.new(-28.8630695, 10.2738171, -5.38322401)
  1226. Part3s.Orientation = Vector3.new(0, 90, 0)
  1227. Part3s.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1228. Part3s.Transparency = 1
  1229. Part3s.Material = "Slate"
  1230. Part4s.Name = "xd"
  1231. Part4s.Parent = Model1
  1232. Part4s.BrickColor = BrickColor.new("Black") --Ignore thou pl0z
  1233. Part4s.Rotation = Vector3.new(0, 90, 0)
  1234. Part4s.Size = Vector3.new(0.370000064, 1, 0.300000012)
  1235. Part4s.CFrame = CFrame.new(-28.8630695, 9.6988163, -5.26322365, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1236. Part4s.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1237. Part4s.Position = Vector3.new(-28.8630695, 9.6988163, -5.26322365)
  1238. Part4s.Orientation = Vector3.new(0, 90, 0)
  1239. Part4s.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1240. Part4s.Material = "Slate"
  1241. Part4s.Transparency = 1
  1242. Weld5s.Parent = Part4s
  1243. Weld5s.C0 = CFrame.new(0.00596666336, 2.00184655, -0.00677967072, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1244. Weld5s.Part0 = Part4s
  1245. Weld5s.Part1 = Part2s
  1246. Weld6s.Parent = Part4s
  1247. Weld6s.C0 = CFrame.new(0.119999886, 0.575000107, 2.38418579e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1248. Weld6s.Part0 = Part4s
  1249. Weld6s.Part1 = Part3s
  1250. Weld7s.Parent = Part4s
  1251. Weld7s.C0 = CFrame.new(0.101300001, 1.13651657, -0.00677967072, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1252. Weld7s.Part0 = Part4s
  1253. Weld7s.Part1 = Part9s
  1254. Weld8s.Parent = Part4s
  1255. Weld8s.C0 = CFrame.new(0.053633213, 1.75251412, -0.0067782402, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1256. Weld8s.Part0 = Part4s
  1257. Weld8s.Part1 = Part1s
  1258. Part9s.Name = "x"
  1259. Part9s.Parent = Model1
  1260. Part9s.Material = "Metal"
  1261. Part9s.BrickColor = BrickColor.new("Really black")
  1262. Part9s.Rotation = Vector3.new(0, 90, 0)
  1263. Part9s.Size = Vector3.new(0.549999833, 0.582667089, 0.0500000007)
  1264. Part9s.CFrame = CFrame.new(-28.8698483, 10.8353338, -5.36452389, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1265. Part9s.Color = Color3.new(0.952941, 0.94902, 0.960784)
  1266. Part9s.Position = Vector3.new(-28.8698483, 10.8353338, -5.36452389)
  1267. Part9s.Orientation = Vector3.new(0, 90, 0)
  1268. Part9s.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1269. for i,v in pairs(mas:GetChildren()) do
  1270. v.Parent = game:GetService("Players").LocalPlayer.Character
  1271. pcall(function() v:MakeJoints() end)
  1272. end
  1273. mas:Destroy()
  1274. for i,v in pairs(cors) do
  1275. spawn(function()
  1276. pcall(v)
  1277. end)
  1278. end
  1279. local Sweld = Instance.new("Weld", Part4s)
  1280. Sweld.Part0 = game.Players.LocalPlayer.Character["Head"]
  1281. Sweld.Part1 = Part4s
  1282. Sweld.C1 = CFrame.new(.4, .7, .5)
  1283. Sweld.C0 = CFrame.Angles(0, math.rad(-90), math.rad(-35))
  1284.  
  1285.  
  1286.  
  1287.  
  1288. --These were just parts for an old knife i was going to make for psychov3 it didn't work out so well
  1289. local cors = {}
  1290. local mas = Instance.new("Model",game:GetService("Lighting"))
  1291. local Model0 = Instance.new("Model")
  1292. local Part1 = Instance.new("Part")
  1293. local Part2 = Instance.new("Part")
  1294. local Part3 = Instance.new("Part")
  1295. local Part4 = Instance.new("Part")
  1296. local Weld5 = Instance.new("Weld")
  1297. local Weld6 = Instance.new("Weld")
  1298. local Weld7 = Instance.new("Weld")
  1299. local Weld8 = Instance.new("Weld")
  1300. local Part9 = Instance.new("Part")
  1301. Model0.Name = "/shrug"
  1302. Model0.Parent = mas
  1303. Part1.Name = "d"
  1304. Part1.Parent = Model0
  1305. Part1.Material = "Metal"
  1306. Part1.BrickColor = BrickColor.new("Really black")
  1307. Part1.Rotation = Vector3.new(0, 90, 0)
  1308. Part1.Size = Vector3.new(0.454666376, 0.949333888, 0.0500000007)
  1309. Part1.CFrame = CFrame.new(-28.8698483, 11.4513311, -5.31685686, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1310. Part1.Color = Color3.new(0.952941, 0.94902, 0.960784)
  1311. Part1.Position = Vector3.new(-28.8698483, 11.4513311, -5.31685686)
  1312. Part1.Orientation = Vector3.new(0, 90, 0)
  1313. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1314. Part1.CanCollide = true
  1315. Part2.Name = "xp"
  1316. Part2.Parent = Model0
  1317. Part2.Material = "Metal"
  1318. Part2.BrickColor = BrickColor.new("Really black")
  1319. Part2.Rotation = Vector3.new(0, 90, 0)
  1320. Part2.Size = Vector3.new(0.359333158, 0.949333888, 0.0500000007)
  1321. Part2.CFrame = CFrame.new(-28.8698502, 11.7006636, -5.26919031, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1322. Part2.Color = Color3.new(0.952941, 0.94902, 0.960784)
  1323. Part2.Position = Vector3.new(-28.8698502, 11.7006636, -5.26919031)
  1324. Part2.Orientation = Vector3.new(0, 90, 0)
  1325. Part2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1326. Part2.CanCollide = true
  1327. Part3.Name = "xdd"
  1328. Part3.Parent = Model0
  1329. Part3.BrickColor = BrickColor.new("Black") --Ignore thise pl0x
  1330. Part3.Rotation = Vector3.new(0, 90, 0)
  1331. Part3.Size = Vector3.new(0.810000014, 0.149999991, 0.300000012)
  1332. Part3.CFrame = CFrame.new(-28.8630695, 10.2738171, -5.38322401, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1333. Part3.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1334. Part3.Position = Vector3.new(-28.8630695, 10.2738171, -5.38322401)
  1335. Part3.Orientation = Vector3.new(0, 90, 0)
  1336. Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1337. Part3.Transparency = 1
  1338. Part3.Material = "Slate"
  1339. Part4.Name = "xd"
  1340. Part4.Parent = Model0
  1341. Part4.BrickColor = BrickColor.new("Black") --Ignore thou pl0z
  1342. Part4.Rotation = Vector3.new(0, 90, 0)
  1343. Part4.Size = Vector3.new(0.370000064, 1, 0.300000012)
  1344. Part4.CFrame = CFrame.new(-28.8630695, 9.6988163, -5.26322365, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1345. Part4.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1346. Part4.Position = Vector3.new(-28.8630695, 9.6988163, -5.26322365)
  1347. Part4.Orientation = Vector3.new(0, 90, 0)
  1348. Part4.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1349. Part4.Material = "Slate"
  1350. Part4.Transparency = 1
  1351. Weld5.Parent = Part4
  1352. Weld5.C0 = CFrame.new(0.00596666336, 2.00184655, -0.00677967072, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1353. Weld5.Part0 = Part4
  1354. Weld5.Part1 = Part2
  1355. Weld6.Parent = Part4
  1356. Weld6.C0 = CFrame.new(0.119999886, 0.575000107, 2.38418579e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1357. Weld6.Part0 = Part4
  1358. Weld6.Part1 = Part3
  1359. Weld7.Parent = Part4
  1360. Weld7.C0 = CFrame.new(0.101300001, 1.13651657, -0.00677967072, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1361. Weld7.Part0 = Part4
  1362. Weld7.Part1 = Part9
  1363. Weld8.Parent = Part4
  1364. Weld8.C0 = CFrame.new(0.053633213, 1.75251412, -0.0067782402, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1365. Weld8.Part0 = Part4
  1366. Weld8.Part1 = Part1
  1367. Part9.Name = "x"
  1368. Part9.Parent = Model0
  1369. Part9.Material = "Metal"
  1370. Part9.BrickColor = BrickColor.new("Really black")
  1371. Part9.Rotation = Vector3.new(0, 90, 0)
  1372. Part9.Size = Vector3.new(0.549999833, 0.982667089, 0.0500000007)
  1373. Part9.CFrame = CFrame.new(-28.8698483, 10.8353338, -5.36452389, 1.77323818e-06, 0, 1.0000025, 0, 1.00000048, 2.16840434e-19, -1.00000298, 0, 1.77323909e-06)
  1374. Part9.Color = Color3.new(0.952941, 0.94902, 0.960784)
  1375. Part9.Position = Vector3.new(-28.8698483, 10.8353338, -5.36452389)
  1376. Part9.Orientation = Vector3.new(0, 90, 0)
  1377. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1378. Part9.CanCollide = true
  1379. for i,v in pairs(mas:GetChildren()) do
  1380. v.Parent = game:GetService("Players").LocalPlayer.Character
  1381. pcall(function() v:MakeJoints() end)
  1382. end
  1383. mas:Destroy()
  1384. for i,v in pairs(cors) do
  1385. spawn(function()
  1386. pcall(v)
  1387. end)
  1388. end
  1389. local Sweld = Instance.new("Weld", Part4)
  1390. Sweld.Part0 = game.Players.LocalPlayer.Character["Head"]
  1391. Sweld.Part1 = Part4
  1392. Sweld.C1 = CFrame.new(.4, .7, .5)
  1393. Sweld.C0 = CFrame.Angles(0, math.rad(-90), math.rad(-55))
  1394. local EC2 = Instance.new("Part")
  1395. EC2.Parent = Character
  1396. EC2.Size = Vector3.new(0.2, 0.2, 0.2)
  1397. EC2.Archivable = true
  1398. EC2.Transparency = 0
  1399. EC2.Shape = "Ball"
  1400. EC2.BrickColor = maincolor
  1401. EC2.Material = "Neon"
  1402. EC2.CanCollide = false
  1403. local mesh = Instance.new("SpecialMesh", EC2)
  1404. mesh.MeshType = "Sphere"
  1405. mesh.Scale = Vector3.new(1.2, 1.2, 1)
  1406. local weld1en = Instance.new("Weld")
  1407. weld1en.Parent = Part9
  1408. weld1en.Part0 = Part9
  1409. weld1en.Part1 = EC2
  1410. weld1en.C1 = CFrame.new(0.1, -1, 0)
  1411.  
  1412. local EC = Instance.new("Part")
  1413. EC.Parent = Character
  1414. EC.Size = Vector3.new(0.2, 0.2, 0.2)
  1415. EC.Archivable = true
  1416. EC.Transparency = 0
  1417. EC.Shape = "Ball"
  1418. EC.BrickColor = maincolor
  1419. EC.Material = "Neon"
  1420. EC.CanCollide = false
  1421. local mesh = Instance.new("SpecialMesh", EC)
  1422. mesh.MeshType = "Sphere"
  1423. mesh.Scale = Vector3.new(1.2, 1.2, 1)
  1424. local weld1en = Instance.new("Weld")
  1425. weld1en.Parent = Part4
  1426. weld1en.Part0 = Part4
  1427. weld1en.Part1 = EC
  1428. weld1en.C1 = CFrame.new(.4, -1.7, 0)
  1429.  
  1430.  
  1431. local Core = Instance.new("Part")
  1432. Core.Parent = Character
  1433. Core.Size = Vector3.new(0.2, 0.2, 0.2)
  1434. Core.Archivable = true
  1435. Core.Transparency = 0
  1436. Core.Shape = "Ball"
  1437. Core.BrickColor = maincolor
  1438. Core.Material = "Neon"
  1439. Core.CanCollide = false
  1440. local mesh = Instance.new("SpecialMesh", Core)
  1441. mesh.MeshType = "Brick"
  1442. mesh.Scale = Vector3.new(5.2, 3.2, 6.3)
  1443. local weld1en = Instance.new("Weld")
  1444. weld1en.Parent = torso
  1445. weld1en.Part0 = torso
  1446. weld1en.Part1 = Core
  1447. weld1en.C1 = CFrame.new(0, -.6, 0)
  1448.  
  1449. local CoreInner = Instance.new("Part")
  1450. CoreInner.Parent = Character
  1451. CoreInner.Size = Vector3.new(0.2, 0.2, 0.2)
  1452. CoreInner.Archivable = true
  1453. CoreInner.Transparency = 0
  1454. CoreInner.Shape = "Ball"
  1455. CoreInner.BrickColor = BrickColor.new("Really black")
  1456. CoreInner.Material = "Neon"
  1457. CoreInner.CanCollide = false
  1458. local mesh = Instance.new("SpecialMesh", CoreInner)
  1459. mesh.MeshType = "Brick"
  1460. mesh.Scale = Vector3.new(6.2, 4.2, 6)
  1461. local weld1en = Instance.new("Weld")
  1462. weld1en.Parent = torso
  1463. weld1en.Part0 = torso
  1464. weld1en.Part1 = CoreInner
  1465. weld1en.C1 = CFrame.new(0, -.6, 0)
  1466. print'Ruin IV 50%'
  1467.  
  1468. wait(1)
  1469.  
  1470. ArmorColorParts = {}
  1471. NeonColorParts = {}
  1472. NeonColorParts2 = {}
  1473. local all, last = {}, nil
  1474. function scan(p) --Thank 123jl123 for this <3
  1475. for _, v in pairs(p:GetChildren()) do
  1476. if v:IsA("BasePart") then
  1477. if v.BrickColor == torso.BrickColor then
  1478. table.insert(ArmorColorParts, v)
  1479. end
  1480. if v.BrickColor == BrickColor.new("Really black") then
  1481. table.insert(NeonColorParts, v)
  1482. table.insert(NeonColorParts2, v)
  1483. end
  1484. if last then
  1485. local w = Instance.new("Weld")
  1486. w.Part0, w.Part1 = last, v
  1487. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  1488. w.Parent = last
  1489. end
  1490. table.insert(all, v)
  1491. last = v
  1492. end
  1493. scan(v)
  1494. end
  1495. end
  1496. scan(m)
  1497.  
  1498.  
  1499. music = Instance.new("Sound",torso)
  1500. music.SoundId = "rbxassetid://858118327"
  1501. music.Volume = 1.5
  1502. music.Looped = true
  1503. music:Play()
  1504.  
  1505.  
  1506. function oldmode()
  1507. for i, v in pairs(ArmorColorParts) do
  1508. v.BrickColor = torso.BrickColor
  1509. v.Material = "Neon"
  1510. v.Transparency = 0
  1511. end
  1512. for i, v in pairs(NeonColorParts) do
  1513. maincolor = BrickColor.new("Really black")
  1514. v.BrickColor = maincolor
  1515. v.Material = "Glass"
  1516. v.Transparency = 0
  1517. end
  1518. EC.BrickColor = torso.BrickColor
  1519. EC2.BrickColor = torso.BrickColor
  1520. Core.BrickColor = torso.BrickColor
  1521. CoreInner.BrickColor = BrickColor.new("Really black")
  1522. CoreInner.Material = "Glass"
  1523. Rmode = "1"
  1524. music.SoundId = "rbxassetid://858118327"
  1525. music:Play()
  1526. end
  1527.  
  1528.  
  1529. mouse.KeyDown:connect(function(key)
  1530. if key == 'q' and attack == false and Rmode == "1" then
  1531. Rmode = "2"
  1532. for i, v in pairs(ArmorColorParts) do
  1533. v.BrickColor = BrickColor.new("Bright red")
  1534. v.Material = "Neon"
  1535. v.Transparency = 0
  1536. end
  1537. for i, v in pairs(NeonColorParts) do
  1538. maincolor = BrickColor.new("Dark stone grey")
  1539. v.BrickColor = maincolor
  1540. v.Material = "Slate"
  1541. v.Transparency = 0
  1542. end
  1543. EC.BrickColor = BrickColor.new("Bright red")
  1544. EC2.BrickColor = BrickColor.new("Bright red")
  1545. Core.BrickColor = BrickColor.new("Bright red")
  1546. CoreInner.BrickColor = BrickColor.new("Dark stone grey")
  1547. CoreInner.Material = "Slate"
  1548. music.SoundId = "http://www.roblox.com/asset/?id=665232687"
  1549. music:play()
  1550. elseif key == "q" and Rmode == "2" and attack == false then
  1551. Rmode = "1"
  1552. oldmode()
  1553. end
  1554. if key == "e" and Rmode == "1" and attack == false then
  1555. Rmode = "3"
  1556. for i, v in pairs(ArmorColorParts) do
  1557. v.BrickColor = BrickColor.new("White")
  1558. v.Material = "Neon"
  1559. v.Transparency = 0
  1560. end
  1561. for i, v in pairs(NeonColorParts) do
  1562. maincolor = BrickColor.new("Steel blue")
  1563. v.BrickColor = maincolor
  1564. v.Material = "Marble"
  1565. v.Transparency = 0
  1566. end
  1567. EC.BrickColor = BrickColor.new("White")
  1568. EC2.BrickColor = BrickColor.new("White")
  1569. Core.BrickColor = BrickColor.new("White")
  1570. CoreInner.Material = "Marble"
  1571. CoreInner.BrickColor = BrickColor.new("Steel blue")
  1572. music.SoundId = "http://www.roblox.com/asset/?id=860594509"
  1573. music:play()
  1574. elseif key == "e" and Rmode == "3" and attack == false then
  1575. Rmode = "1"
  1576. oldmode()
  1577. end
  1578. if key == "r" and Rmode == "1" and attack == false then --This one was for the old script ;(
  1579. Rmode ="4"
  1580. for i, v in pairs(ArmorColorParts) do
  1581. v.BrickColor = BrickColor.new("Really black")
  1582. v.Material = "Neon"
  1583. v.Transparency = 0
  1584. end
  1585. for i, v in pairs(NeonColorParts) do
  1586. maincolor = BrickColor.new("New Yeller")
  1587. v.BrickColor = maincolor
  1588. v.Material = "Metal"
  1589. v.Transparency = 0
  1590. end
  1591. EC.BrickColor = BrickColor.new("New Yeller")
  1592. EC2.BrickColor = BrickColor.new("New Yeller")
  1593. Core.BrickColor = BrickColor.new("Really black")
  1594. CoreInner.BrickColor = BrickColor.new("New Yeller")
  1595. CoreInner.Material = "Metal"
  1596. music.SoundId = "http://www.roblox.com/asset/?id=346175829"
  1597. music:play()
  1598. elseif key == "r" and Rmode == "4" and attack == false then
  1599. Rmode = "1"
  1600. oldmode()
  1601. end
  1602. if key == "t" and Rmode == "1" and attack == false then
  1603. Rmode = "5"
  1604. for i, v in pairs(ArmorColorParts) do
  1605. v.BrickColor = BrickColor.new("Really red")
  1606. v.Material = "Slate"
  1607. v.Transparency = 0
  1608. end
  1609. for i, v in pairs(NeonColorParts) do
  1610. maincolor = BrickColor.new("Bright red")
  1611. v.BrickColor = maincolor
  1612. v.Material = "Granite"
  1613. v.Transparency = 0
  1614. end
  1615. EC.BrickColor = BrickColor.new("Really red")
  1616. EC2.BrickColor = BrickColor.new("Really red")
  1617. Core.BrickColor = BrickColor.new("Really red")
  1618. CoreInner.BrickColor = BrickColor.new("Bright red")
  1619. CoreInner.Material = "Slate"
  1620. music.SoundId = "http://www.roblox.com/asset/?id=250923014"
  1621. music:play()
  1622. char["God Mode"].WalkSpeed = 8
  1623. elseif key == "t" and Rmode == "5" and attack == false then
  1624. Rmode = "1"
  1625. oldmode()
  1626. char["God Mode"].WalkSpeed = 16
  1627. end
  1628. end)
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634. mouse.KeyDown:connect(function(key)
  1635. if key == 'z' and attack == false and Rmode == "3" then
  1636. TheInnerCore()
  1637. end
  1638. if key == 'x' and attack == false and Rmode == "5" then
  1639. ROCKINBOI()
  1640. end
  1641. if key == 'c' and attack == false then
  1642. TheRuinsSacredWordsII()
  1643. end
  1644. end)
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653. zawarudo = Instance.new("Sound",char)
  1654. zawarudo.Volume = 5
  1655. zawarudo.SoundId = "http://www.roblox.com/asset/?id=1055792303"
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663. function TheInnerCore()
  1664. attack = true
  1665.  
  1666. ---char["God Mode"].WalkSpeed = 0
  1667. for i = 1, 10 do
  1668. swait(.1)
  1669. LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(10),math.rad(-90)),.3)
  1670. RW.C0=clerp(RW.C0,cf(1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(10),math.rad(90)),.3)
  1671. swait(.1)
  1672. end
  1673. for i = 0,2,0.1 do
  1674. swait()
  1675. LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(25),math.rad(-90)),.3)
  1676. RW.C0=clerp(RW.C0,cf(1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(-25),math.rad(90)),.3)
  1677. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-45),math.rad(0),math.rad(0)),.3)
  1678. end
  1679. zawarudo:Play()
  1680. local Charge = Instance.new("Part",game.Workspace)
  1681. Charge.CanCollide = false
  1682. Charge.Size = Vector3.new(1,1,1)
  1683. Charge.Transparency = 0
  1684. Charge.BottomSurface = 0
  1685. Charge.TopSurface = 0
  1686. Charge.Anchored = true
  1687. Charge.CFrame = CoreInner.CFrame + CoreInner.CFrame.lookVector
  1688. local C2 = Instance.new("Part",game.Workspace)
  1689. C2.CanCollide = false
  1690. C2.Size = Vector3.new(1,1,1)
  1691. C2.Transparency = 0
  1692. C2.BottomSurface = 0
  1693. C2.TopSurface = 0
  1694. C2.Anchored = true
  1695. C2.CFrame = CoreInner.CFrame + CoreInner.CFrame.lookVector
  1696. local tracem = Instance.new("SpecialMesh",Charge)
  1697. tracem.MeshType = "Brick"
  1698. tracem.Scale = Vector3.new(1,1,1)
  1699. local T2 = Instance.new("SpecialMesh",C2)
  1700. T2.MeshType = "Brick"
  1701. T2.Scale = Vector3.new(1,1,1)
  1702. for i = 1, 16 do
  1703. wait(.01)
  1704. C2.Transparency = C2.Transparency + .1
  1705. Charge.Transparency = Charge.Transparency + .1
  1706. Charge.CFrame = Charge.CFrame * CFrame.fromEulerAnglesXYZ(0.2,0.2,0.2)
  1707. C2.CFrame = C2.CFrame * CFrame.fromEulerAnglesXYZ(-0.2,-0.2,-0.2)
  1708. end
  1709. wait(.6)
  1710. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=188959311", torso, 1.4, 1)
  1711. local IceCirlce = Instance.new("Part",game.Workspace) --I so spelled it wrong for a reason :)
  1712. IceCirlce.BrickColor = BrickColor.new("Steel blue")
  1713. IceCirlce.CanCollide = false
  1714. IceCirlce.Size = Vector3.new(10,10,10)
  1715. IceCirlce.BottomSurface = 0
  1716. IceCirlce.TopSurface = 0
  1717. IceCirlce.Anchored = true
  1718. IceCirlce.CFrame = char.Torso.CFrame
  1719. IceCirlce.Material = "Marble"
  1720. local IceCirlceT = Instance.new("SpecialMesh",IceCirlce)
  1721. IceCirlceT.MeshType = "Sphere"
  1722. IceCirlceT.Scale = Vector3.new(10,10,10)
  1723. for i = 1, 9 do
  1724. wait(.01)
  1725. IceCirlce.Transparency = IceCirlce.Transparency + .1
  1726. MagnitudeDamage(IceCirlce, 45, 40, 55, 50, "Freeze", "848764845", .6)
  1727. end
  1728. wait(.01)
  1729. IceCirlce:Destroy()
  1730. Charge:Destroy()
  1731. C2:Destroy()
  1732. wait(1)
  1733. attack = false
  1734. ---char["God Mode"].WalkSpeed = 16
  1735. end
  1736.  
  1737.  
  1738. function ROCKINBOI()
  1739. attack = true
  1740. local con = Head.Touched:connect(function(hit)
  1741. Damage(Torso, hit, 15, 25, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://146163522", 1)
  1742. end)
  1743. for i = 0,1,0.10 do
  1744. swait()
  1745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-45),math.rad(0),math.rad(0)),.3)
  1746. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(0)), 0.4)
  1747. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-46), math.rad(4), math.rad(-5)), 0.8)
  1748. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-46), math.rad(-4), math.rad(5)), 0.8)
  1749. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-3),math.rad(-10)),.3)
  1750. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0, 0) * angles(math.rad(-50), math.rad(-3), math.rad(-10)),.2)
  1751. end
  1752.  
  1753.  
  1754. for i = 0,1,0.10 do
  1755. swait()
  1756. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1757. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.4)
  1758. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(46), math.rad(4), math.rad(-5)), 0.8)
  1759. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(46), math.rad(-4), math.rad(5)), 0.8)
  1760. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(3),math.rad(10)),.3)
  1761. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0, 0) * angles(math.rad(-50), math.rad(-3), math.rad(-10)),.2)
  1762. end
  1763. for i = 0,1,0.10 do
  1764. swait()
  1765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-45),math.rad(0),math.rad(0)),.3)
  1766. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(0)), 0.4)
  1767. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-46), math.rad(4), math.rad(-5)), 0.8)
  1768. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-46), math.rad(-4), math.rad(5)), 0.8)
  1769. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-3),math.rad(-10)),.3)
  1770. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0, 0) * angles(math.rad(-50), math.rad(-3), math.rad(-10)),.2)
  1771. end
  1772.  
  1773.  
  1774. for i = 0,1,0.10 do
  1775. swait()
  1776. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1777. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.4)
  1778. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(46), math.rad(4), math.rad(-5)), 0.8)
  1779. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(46), math.rad(-4), math.rad(5)), 0.8)
  1780. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(3),math.rad(10)),.3)
  1781. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0, 0) * angles(math.rad(-50), math.rad(-3), math.rad(-10)),.2)
  1782. end
  1783. for i = 0,1,0.10 do
  1784. swait()
  1785. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-45),math.rad(0),math.rad(0)),.3)
  1786. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(0)), 0.4)
  1787. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-46), math.rad(4), math.rad(-5)), 0.8)
  1788. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-46), math.rad(-4), math.rad(5)), 0.8)
  1789. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-3),math.rad(-10)),.3)
  1790. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0, 0) * angles(math.rad(-50), math.rad(-3), math.rad(-10)),.2)
  1791. end
  1792.  
  1793.  
  1794. for i = 0,1,0.10 do
  1795. swait()
  1796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  1797. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.4)
  1798. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(46), math.rad(4), math.rad(-5)), 0.8)
  1799. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(46), math.rad(-4), math.rad(5)), 0.8)
  1800. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50),math.rad(3),math.rad(10)),.3)
  1801. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0, 0) * angles(math.rad(-50), math.rad(-3), math.rad(-10)),.2)
  1802. end
  1803. attack = false
  1804.  
  1805. con:Disconnect()
  1806. end
  1807.  
  1808. function TheRuinsSacredWordsII()
  1809. attack = true
  1810. for i = 0,4,0.1 do
  1811. swait()
  1812. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2.5, -2) * CFrame.Angles(math.rad(0), math.rad(0.05*math.cos(sine/60)), math.rad(0)), 0.4)
  1813. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(15+4*math.cos(sine/60)),math.rad(0),math.rad(0)),0.07)
  1814. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-70)), 0.1)
  1815. LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(4*math.cos(sine/60)),math.rad(-5*math.cos(sine/60))),.3)
  1816. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(-90*math.cos(sine/60))), 0.8)
  1817. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, .5, -.6) * CFrame.Angles(math.rad(0), math.rad(-5*math.cos(sine/60)), math.rad(6)), 0.1)
  1818. end
  1819. wait(.5)
  1820. for i = 0,4,0.1 do
  1821. swait()
  1822. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.cos(sine/60)),math.rad(0),math.rad(0)),0.07)
  1823. end
  1824.  
  1825. local Ring = Instance.new("Part",workspace)
  1826. Ring.Size = Vector3.new(12, 12, 20)
  1827. Ring.BrickColor = CoreInner.BrickColor
  1828. local RingEffect = Instance.new("FileMesh",Ring)
  1829. RingEffect.MeshId = "rbxassetid://3270017"
  1830. RingEffect.Scale = Vector3.new(1.3, 1.3, 0.4)
  1831. Ring.CanCollide = false
  1832. Ring.Anchored = true
  1833. Ring.CFrame = Ring.CFrame:lerp(Ring.CFrame * CFrame.new(0, 0, -22), 0.4)
  1834. Ring.CFrame = Ring.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
  1835. Ring.CFrame = torso.CFrame * CFrame.new(0,-3,0)
  1836. Ring.CFrame = Ring.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1837. for i = 0.14,1,0.015 do
  1838. swait()
  1839. Ring.CFrame = Ring.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
  1840. Ring.Transparency = Ring.Transparency + 0.03
  1841. RingEffect.Scale = RingEffect.Scale + Vector3.new(2,2,1.8)
  1842. end
  1843. wait(.5)
  1844. attack = false
  1845. Ring:remove()
  1846. end
  1847.  
  1848.  
  1849.  
  1850.  
  1851. function attackone()
  1852. attack = true
  1853. local con = LeftLeg.Touched:connect(function(hit)
  1854. Damage(Torso, hit, 10, 20, math.random(1, 5), "Knockdown", RootPart, .2, "rbxassetid://146163522", 1)
  1855. end)
  1856. for i = 0,2,0.1 do
  1857. swait()
  1858. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(6), math.rad(0)), 0.4)
  1859. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4-2),math.rad(0),math.rad(0)),.2)
  1860. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10) + -math.sin(sine/8)/1.2,math.rad(5* math.cos(sine / 8)),math.rad(15 + 1.25 * math.cos(sine / 8))),.3)
  1861. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10) + math.sin(sine/8)/1.2,math.rad(5* math.cos(sine / 8)),math.rad(-15 - 1.25 * math.cos(sine / 8))),.3)
  1862. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0.06) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(90)), 0.8)
  1863. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.76, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1864. end
  1865. con:Disconnect()
  1866. attack = false
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873. end
  1874.  
  1875.  
  1876. function attacktwo()
  1877. attack = true
  1878. local con = ra.Touched:connect(function(hit)
  1879. Damage(Torso, hit, 25, 36, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://199149409", 1)
  1880. end)
  1881. for i = 0,1,0.12 do
  1882. swait()
  1883. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1884. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(21), math.rad(97)),.2)
  1885. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1886. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-16)), 0.8)
  1887. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)), 0.8)
  1888. end
  1889.  
  1890. for i = 0,2,0.1 do
  1891. swait()
  1892. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -3) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.4)
  1893. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1894. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(-80), math.rad(-60)),.2)
  1895. end
  1896. con:Disconnect()
  1897. attack = false
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904. end
  1905.  
  1906.  
  1907.  
  1908. function attackthree()
  1909. attack = true
  1910. local con = la.Touched:connect(function(hit)
  1911. Damage(Torso, hit, 15, 25, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://146163522", 1)
  1912. end)
  1913. for i = 0,1,0.12 do
  1914. swait()
  1915. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1916. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.7, 0.8) * angles(math.rad(90), math.rad(-10), math.rad(90)), 0.1)
  1917. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.3)
  1918. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(-4)), 0.8)
  1919. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1920. end
  1921.  
  1922.  
  1923. for i = 0,2,0.1 do
  1924. swait()
  1925. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1926. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.2)
  1927. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.2)
  1928. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.3) * angles(math.rad(20), math.rad(-90), math.rad(-90)),.2)
  1929. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(5), math.rad(-6)), 0.8)
  1930. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-5), math.rad(6)), 0.8)
  1931. end
  1932. con:Disconnect()
  1933. attack = false
  1934. end
  1935.  
  1936. function attackfour()
  1937. attack = true
  1938. local con = la.Touched:connect(function(hit)
  1939. Damage(Torso, hit, 35, 45, math.random(1, 5), "Normal", RootPart, .2, "rbxassetid://146163522", 1)
  1940. end)
  1941. for i = 0,2,0.1 do
  1942. swait()
  1943. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
  1944. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.7, 0.8) * angles(math.rad(90), math.rad(-10), math.rad(90)), 0.1)
  1945. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.3)
  1946. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(-4)), 0.8)
  1947. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1948. end
  1949.  
  1950. for i = 0,2,0.1 do
  1951. swait()
  1952. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
  1953. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.3) * angles(math.rad(0), math.rad(40), math.rad(90)),.2)
  1954. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1955. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  1956. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-40), math.rad(4)), 0.8)
  1957. end
  1958. con:Disconnect()
  1959. attack = false
  1960. end
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966. mouse.Button1Down:connect(function()
  1967. if attack==false then
  1968. if attacktype==1 then
  1969. attack=true
  1970. attacktype=2
  1971. attackone()
  1972. elseif attacktype==2 then
  1973. attack=true
  1974. attacktype=3
  1975. attacktwo()
  1976. elseif attacktype==3 then
  1977. attack=true
  1978. attacktype=4
  1979. attackthree()
  1980. elseif attacktype==4 then
  1981. attack=true
  1982. attacktype=1
  1983. attackfour()
  1984.  
  1985. end
  1986. end
  1987. end)
  1988.  
  1989. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  1990. ff.Visible = false
  1991. Humanoid.Name = "Base"
  1992. Humanoid.MaxHealth = 9e99
  1993. Humanoid.Health = 9e99
  1994. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1995. if Humanoid.Health > 0.1 and Humanoid.Health < 9e99 then
  1996. Humanoid.MaxHealth = 9e99
  1997. Humanoid.Health = 9e99
  1998. end
  1999. end)
  2000.  
  2001.  
  2002. --animations--
  2003. local sine = 0
  2004. local change = 1
  2005. local val = 0
  2006. Humanoid.Animator.Parent = nil
  2007. idleanim=.4
  2008. print'Ruin IV 100%'
  2009. print'Ruin IV Loaded'
  2010. while true do
  2011. swait()
  2012. sine = sine + change
  2013. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2014. local velderp=RootPart.Velocity.y
  2015. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2016. if equipped==true or equipped==false then
  2017. if attack==false then
  2018. idle=idle+1
  2019. else
  2020. idle=0
  2021. end
  2022. if idle>=500 then
  2023. if attack==false then
  2024. --Sheath() xdxdxdxdxd
  2025. end
  2026. end
  2027. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2028. Anim="Jump"
  2029. if attack==false then
  2030. change = 2
  2031. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2032. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0 + 360 * math.cos (sine / 30)),math.rad(0),math.rad(0)),.3)
  2033. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2034. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  2035. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  2036. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  2037. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  2038. elseif attack==false and Rmode=="4" then
  2039. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2040. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  2041. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.3)
  2042. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.3)
  2043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.3)
  2044. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.8)
  2045. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.8)
  2046. end
  2047. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2048. Anim="Fall"
  2049. change = 1
  2050. if attack==false then
  2051. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2052. RH.C0=clerp(RH.C0,cf(1,0.20,-0.25)*angles(math.rad(90),math.rad(90),math.rad(90))*angles(math.rad(90),math.rad(90),math.rad(90)),.3)
  2053. LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(90),math.rad(-90),math.rad(90))*angles(math.rad(90),math.rad(90),math.rad(90)),.3)
  2054. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2055. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  2056. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  2057. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
  2058. elseif attack==false and Rmode=="4" then
  2059. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2060. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.4)
  2061. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(5), math.rad(10), math.rad(20)), 0.3)
  2062. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(-10), math.rad(-20)), 0.3)
  2063. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2064. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  2065. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.8)
  2066. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(0)), 0.8)
  2067. end
  2068.  
  2069.  
  2070.  
  2071.  
  2072. --idle--
  2073. elseif torvel<1 and hitfloor~=nil then
  2074. Anim="Idle"
  2075. if attack==false and Rmode=="1" then
  2076. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2077. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/25)),math.rad(0),math.rad(0)),.2)
  2078. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2079. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2080. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.55+0.05*math.cos(sine/25)+ -math.sin(sine/25)/40,0)*angles(math.rad(5-2.5*math.cos(sine/25)),math.rad(0),math.rad(10+5*math.cos(sine/25))+ math.sin(sine/25)/20),0.15)
  2081. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.55+0.05*math.cos(sine/25)+ -math.sin(sine/25)/40,0)*angles(math.rad(5-2.5*math.cos(sine/25)),math.rad(0),math.rad(-10-5*math.cos(sine/25))+ -math.sin(sine/25)/20),0.15)
  2082. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.05*math.cos(sine/25), 0.1) * CFrame.Angles(math.rad(-8), math.rad(5*math.cos(sine/60)), math.rad(-6)), 0.1)
  2083. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(8), math.rad(-5*math.cos(sine/60)), math.rad(6)), 0.1)
  2084. elseif attack==false and Rmode=="2" then
  2085. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2086. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2087. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/25)),math.rad(0),math.rad(0)),.2)
  2088. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-50)), 0.1)
  2089. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(70 - 1 * math.cos(sine / 25)), math.rad(-7), math.rad(70)), 0.1)
  2090. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.05*math.cos(sine/25), 0.1) * CFrame.Angles(math.rad(-8), math.rad(5*math.cos(sine/60)), math.rad(-6)), 0.1)
  2091. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(8), math.rad(-5*math.cos(sine/60)), math.rad(6)), 0.1)
  2092. elseif attack==false and Rmode=="3" then
  2093. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2094. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2095. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2096. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/25)),math.rad(0),math.rad(0)),.2)
  2097. RW.C0=clerp(RW.C0,cf(1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(-15),math.rad(15)),.3)
  2098. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.45) * angles(math.rad(70 - 1 * math.cos(sine / 25)), math.rad(-7), math.rad(70)), 0.1)
  2099. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.05*math.cos(sine/25), 0.1) * CFrame.Angles(math.rad(-8), math.rad(5*math.cos(sine/60)), math.rad(-6)), 0.1)
  2100. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(8), math.rad(-5*math.cos(sine/60)), math.rad(6)), 0.1)
  2101. elseif attack==false and Rmode=="4" then
  2102. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/25)),math.rad(5),math.rad(5)),.2)
  2103. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  2104. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-25), math.rad(0)), 0.8)
  2105. RW.C0=clerp(RW.C0,cf(1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(-15),math.rad(25)),.3)
  2106. LW.C0=clerp(LW.C0,cf(-1.5,0.5+0.04*math.sin(sine/25),0)*angles(math.rad(0),math.rad(4),math.rad(-5)),.3)
  2107. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.05*math.cos(sine/25), 0.1) * CFrame.Angles(math.rad(0), math.rad(5*math.cos(sine/60)), math.rad(-6)), 0.1)
  2108. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-5*math.cos(sine/60)), math.rad(6)), 0.1)
  2109. elseif attack==false and Rmode=="5" then
  2110. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2111. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -.9-0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.4)
  2112. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(26), math.rad(4), math.rad(-5)), 0.8)
  2113. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.05*math.cos(sine/25), 0) * CFrame.Angles(math.rad(26), math.rad(-4), math.rad(5)), 0.8)
  2114. RW.C0=clerp(RW.C0,cf(1.5,0.55+0.05*math.cos(sine/25),0)*angles(math.rad(35),math.rad(3),math.rad(10)),.3)
  2115. LW.C0=clerp(LW.C0, CFrame.new(-1.5,0.55+0.05*math.cos(sine/25), 0)*angles(math.rad(35), math.rad(-3), math.rad(-10)),.2)
  2116. end
  2117.  
  2118.  
  2119.  
  2120. --walk--
  2121. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2122. Anim="Walk"
  2123. if attack==false and Rmode=="1" then
  2124. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2125. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  2126. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05, 0) * CFrame.Angles(math.rad(0), math.rad(0.05) + math.sin(sine/8)/5.2, math.rad(0)), 0.8)
  2127. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/8)),math.rad(0),math.rad(0)),.2)
  2128. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10) + -math.sin(sine/8)/1.2,math.rad(5* math.cos(sine / 8)),math.rad(15 + 1.25 * math.cos(sine / 8))),.3)
  2129. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10) + math.sin(sine/8)/1.2,math.rad(5* math.cos(sine / 8)),math.rad(-15 - 1.25 * math.cos(sine / 8))),.3)
  2130. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(-1) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2131. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(-1) + math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2132. elseif attack==false and Rmode=="2" then
  2133. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2134. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  2135. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.8)
  2136. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
  2137. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  2138. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  2139. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2140. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2141. elseif attack==false and Rmode=="3" then
  2142. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2143. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2144. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/8), 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/8)), math.rad(0.05) + math.sin(sine/8)/5.2, 0), 0.8)
  2145. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+5*math.cos(sine/8)),math.rad(0),math.rad(0)),.2)
  2146. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(25 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.2)
  2147. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.2)
  2148. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(-15) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2149. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(-15) + math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2150. elseif attack==false and Rmode=="4" then
  2151. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2152. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  2153. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/8), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/8)), 0, 0), 0.8)
  2154. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/8)),math.rad(0),math.rad(0)),.2)
  2155. RW.C0 = clerp(RW.C0, CFrame.new(.9, 0.5, -0.5) * angles(math.rad(90), math.rad(-80), math.rad(-40)),.2)
  2156. LW.C0 = clerp(LW.C0, CFrame.new(-.7, 0.5, -0.7) * angles(math.rad(50), math.rad(0), math.rad(90)),.2)
  2157. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2158. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2159. elseif attack==false and Rmode=="5" then
  2160. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2161. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  2162. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05* math.cos(sine / 8), 0) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.8)
  2163. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.06)*angles(math.rad(0 - 35 * math.cos(sine / 15)),math.rad(5* math.cos(sine / 15)),math.rad(10 + 1.25 * math.cos(sine / 15))),.3)
  2165. LW.C0=clerp(LW.C0,cf(-1.5,0.5,-0.06)*angles(math.rad(0 + 35 * math.cos(sine / 15)),math.rad(5* math.cos(sine / 15)),math.rad(-10 - 1.25 * math.cos(sine / 15))),.3)
  2166. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/15)/2, 0.06 *math.sin(sine/15)/2) * CFrame.Angles(math.rad(26) + -math.sin(sine/15)/1.2, math.rad(4), math.rad(-5)), .8)
  2167. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/15)/2,-0.06 *-math.sin(sine/15)/2) * CFrame.Angles(math.rad(26) + math.sin(sine/15)/1.2, math.rad(-4), math.rad(5)), .8)
  2168. end
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174. elseif torvel>=9999999999999999999999 and hitfloor~=nil then
  2175. Anim="Run"
  2176. if attack==false then
  2177. Humanoid.CameraOffset = Vector3.new(0,0,0)
  2178. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  2179. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.05*math.cos(sine/7.5), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/15)), 0, 0), 0.8)
  2180. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-4+2*math.sin(sine/18)),math.rad(0),math.rad(0)),.2)
  2181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  2182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  2183. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/8)/2, 0 *math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2184. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/8)/2,0 *-math.sin(sine/8)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/8)/1.2, math.rad(0), 0), .8)
  2185. end
  2186. end
  2187. end
  2188. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement