Advertisement
memberhero

Ruin 4 Script FE

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