Advertisement
WagnerJunio07

Ruin

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