kaualima12

cool scritpt for day

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