Advertisement
Guest User

roblox ruin convert

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