Advertisement
Oscar55555

Untitled

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