PerpetualZblack

Untitled

Oct 20th, 2019
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.60 KB | None | 0 0
  1. -https://github.com/Mokiros/roblox-FE-compatibility
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4.  
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6.  
  7. local RealPlayer = Player
  8.  
  9. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  10.  
  11. Character = game.Players.LocalPlayer.Character
  12.  
  13. Head = Character.Head
  14.  
  15. wait(2)
  16. --[[
  17. Stand: Crazy Diamond
  18. User: Josuke Higashikata
  19. Creator: NoiseHERO(Edit by AureIion_sol/kono joseph da, and Koku)
  20. ]]
  21.  
  22. p = game.Players.LocalPlayer
  23. char = p.Character
  24. pchar = p.Character
  25. pchar.Head.Jumping.SoundId = "http://www.roblox.com/asset/?id=2767090"
  26. as=0.3
  27. explode = true
  28. tra = 0.1
  29. blast = true
  30. m = p:GetMouse()
  31. player = p
  32. humanoid = char.Humanoid
  33. rad = math.rad
  34. torso = char.Torso
  35. torsoj = char.HumanoidRootPart.RootJoint
  36. original = torsoj.C0
  37. laser = true
  38. active= false
  39. --Menacing SFX and music
  40. local asd = game:service'Players'.LocalPlayer
  41. repeat wait() until asd.Character
  42. local asdchar = asd.Character
  43. local Torso = asdchar:findFirstChild("Torso")
  44. z = Instance.new("Sound", Torso)
  45. z.Name = "song"
  46. z.SoundId = "rbxassetid://0" -- Put Music ID Here.
  47. z.Looped = true
  48. z.Volume = 1
  49. wait(.1)
  50. z:Play()
  51. local transPoints = {NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.207, 0.594, 0.0187), NumberSequenceKeypoint.new(0.4, 0.55, 0.031), NumberSequenceKeypoint.new(0.57, 0.619, 0.05), NumberSequenceKeypoint.new(0.76, 0.8, 0.0375), NumberSequenceKeypoint.new(1, 1, 0)}
  52. local sizePoints = {NumberSequenceKeypoint.new(0, 1.9, 0), NumberSequenceKeypoint.new(1, 0, 0)}
  53. local Size = NumberSequence.new(sizePoints)
  54. local Transparency = NumberSequence.new(transPoints)
  55. efxBlock = Instance.new("Part", asdchar)
  56. efxBlock.CanCollide = false
  57. efxBlock.Material = "Neon"
  58. efxBlock.FormFactor = "Custom"
  59. efxBlock.Transparency = 1
  60. efxBlock.Size = Vector3.new(0.25, 0.25, 0.25)
  61. local mesh = Instance.new("SpecialMesh", efxBlock)
  62. mesh.MeshType = Enum.MeshType.Sphere
  63. mesh.Scale = Vector3.new(1, 1, 1)
  64. local particles = Instance.new("ParticleEmitter", efxBlock)
  65. particles.LightEmission = 0
  66. particles.Size = Size
  67. particles.Name = "Fire"
  68. particles.Transparency = Transparency
  69. particles.LockedToPart = false
  70. particles.VelocityInheritance = -0.5
  71. particles.LockedToPart = false
  72. particles.Rate = 2
  73. particles.Texture = "rbxassetid://"
  74. particles.Lifetime = NumberRange.new(3, 3)
  75. particles.Speed = NumberRange.new(3, 3)
  76. particles.VelocitySpread = 25
  77. local offset = Vector3.new(-0.11, 0.23, -0.5)
  78. local weld = Instance.new("Weld", asdchar.Head)
  79. weld.Part0 = asdchar.Head
  80. weld.Part1 = efxBlock
  81. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40), math.rad(40), math.rad(40))
  82. ---Declarations
  83. local Cn=CFrame.new
  84. local CA=CFrame.Angles
  85. local mr=math.rad
  86. local rn=math.random
  87. local mc=math.cos
  88. local Vn=Vector3.new
  89. local NR=NumberRange.new
  90. local NSeq=NumberSequence.new
  91. local plrs=game:service"Players"
  92. local wrk=game:service"Workspace"
  93. local deb=game:service"Debris"
  94. local IS=game:GetService("InsertService")
  95. local p=plrs.LocalPlayer
  96. local cam=wrk.CurrentCamera
  97. local char=p.Character
  98. local mouse=p:GetMouse()
  99. local lam=char["Left Arm"]
  100. local ram=char["Right Arm"]
  101. local llg=char["Left Leg"]
  102. local rlg=char["Right Leg"]
  103. local hed=char.Head
  104. local tor=char.Torso
  105. local larm = lam
  106. local rarm = ram
  107. local lleg = llg
  108. local rleg = rlg
  109. local torso = tor
  110. local hrp=char.HumanoidRootPart
  111. local PlayerSpeed = char.Humanoid.WalkSpeed
  112. local on=false
  113. local noRig=false
  114. local curws=24
  115. local sine=0
  116. local ift={}
  117. local ifxd=false
  118. local run=false
  119. local stance="Cane"
  120. local Speed = 30
  121. local Health = 50000
  122.  
  123. PlayerSpeed = 30
  124.  
  125. ypcall(function()
  126. char.Shirt:Destroy()
  127. char.Pants:Destroy()
  128. shirt = Instance.new("Shirt", char)
  129. shirt.Name = "Shirt"
  130. pants = Instance.new("Pants", char)
  131. pants.Name = "Pants"
  132. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=586182959"
  133. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=586183796"
  134. char.Head.face.Texture = "rbxassetid://403840905"
  135. end)
  136. char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  137. char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  138. char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  139. char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  140. char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
  141. char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
  142.  
  143. Debounces = {
  144. CanAttack = true;
  145. NoIdl = false;
  146. Slashing = false;
  147. Slashed = false;
  148. RPunch = false;
  149. RPunched = false;
  150. LPunch = false;
  151. LPunched = false;
  152. }
  153.  
  154. local trappedTorsos = {}
  155.  
  156.  
  157. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  158. local wld = Instance.new("Weld", wp1)
  159. wld.Part0 = wp0
  160. wld.Part1 = wp1
  161. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  162. end
  163.  
  164. for i,v in pairs(char:children()) do
  165. if v:IsA("Accessory") then
  166. v:Destroy()
  167. end
  168. end
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. Debounces = {
  176. CanAttack = true;
  177. NoIdl = false;
  178. Slashing = false;
  179. Slashed = false;
  180. RPunch = false;
  181. RPunched = false;
  182. LPunch = false;
  183. LPunched = false;
  184. }
  185.  
  186. local trappedTorsos = {}
  187.  
  188.  
  189. ----------------------------------------------------betterhair
  190. --this was made for easy cosmetic editing
  191. --by koku
  192.  
  193. --funcs
  194. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) --Creds to KingAbsalom
  195. local wld = Instance.new("Weld", wp1)
  196. wld.Part0 = wp0
  197. wld.Part1 = wp1
  198. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  199. end
  200.  
  201. for i,v in pairs(game.Players.LocalPlayer.Character.Head:children()) do
  202. if v:IsA("Sound") then
  203. v:Destroy()
  204. end
  205. end
  206. for i,v in pairs(game.Players.LocalPlayer.Character:children()) do
  207. if v:IsA("Accessory") then
  208. v:Destroy()
  209. end
  210. end
  211.  
  212. ypcall(function()
  213.  
  214.  
  215. --betterhair by koku
  216. hair = Instance.new("Part",game.Players.LocalPlayer.Character.Head)
  217. hair.BrickColor = BrickColor.new("Navy blue")
  218. hair.Material = "SmoothPlastic"
  219. hair.Anchored = false
  220. hair.CanCollide = false
  221. hair.Archivable = false
  222. hair.Locked = true
  223. hair.Size = Vector3.new(1,1,1)
  224. hairm = Instance.new("SpecialMesh",hair)
  225. hairm.MeshType = "FileMesh"
  226. hairm.MeshId = "rbxassetid://880742294"
  227. hairm.TextureId="rbxassetid://880742342"
  228. hairm.Scale = Vector3.new(.030,.030,.030)
  229. newWeld(game.Players.LocalPlayer.Character.Head, hair, 0, 0, 0)
  230. hair.Weld.C1 = CFrame.new(0,-.23,0) * CFrame.Angles(-.4,0,0)
  231. end)
  232. ----------------------------------------------------
  233. ---Functions
  234.  
  235. function FndHm(flnm)
  236. for i,v in pairs(flnm:GetChildren()) do
  237. if v:IsA("Humanoid") then
  238. return v
  239. end
  240. end
  241. end
  242. local hum=FndHm(char)
  243. --hum.Name=""
  244. ---------------------------------
  245. fat = Instance.new("BindableEvent", script)
  246. fat.Name = "Heartbeat"
  247. script:WaitForChild("Heartbeat")
  248. frame = 0.033333333333333
  249. tf = 0
  250. allowframeloss = false
  251. tossremainder = false
  252. lastframe = tick()
  253. script.Heartbeat:Fire()
  254. game:GetService("RunService").Heartbeat:connect(function(s, p)
  255.  
  256. tf = tf + s
  257. if frame <= tf then
  258. if allowframeloss then
  259. script.Heartbeat:Fire()
  260. lastframe = tick()
  261. else
  262. for i = 1, math.floor(tf / frame) do
  263. script.Heartbeat:Fire()
  264. end
  265. lastframe = tick()
  266. end
  267. if tossremainder then
  268. tf = 0
  269. else
  270. tf = tf - frame * math.floor(tf / frame)
  271. end
  272. end
  273. end
  274. )
  275. -------------------------
  276.  
  277.  
  278. function chrDes(inst)
  279. local ret=nil
  280. for _,v in pairs(game.Players:GetChildren()) do
  281. if inst:IsDescendantOf(v) then
  282. ret=v
  283. break
  284. end
  285. end
  286. return ret
  287. end
  288.  
  289. --
  290. Lightning2 = function(Start,End,Times,Offset,Color,Thickness)
  291.  
  292.  
  293.  
  294.  
  295. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  296.  
  297.  
  298.  
  299.  
  300. for i=1,Times do
  301.  
  302.  
  303.  
  304.  
  305. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true
  306.  
  307.  
  308.  
  309.  
  310. li.Material = "Neon"
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324. li.Transparency = 0 li.BrickColor = Color
  325.  
  326.  
  327.  
  328.  
  329. li.formFactor = "Custom" li.CanCollide = false
  330.  
  331.  
  332.  
  333.  
  334. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  335.  
  336.  
  337.  
  338.  
  339. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  340.  
  341.  
  342.  
  343.  
  344. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  345.  
  346.  
  347.  
  348.  
  349. if Times == i then
  350.  
  351.  
  352.  
  353.  
  354. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  355.  
  356.  
  357.  
  358.  
  359. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  360.  
  361.  
  362.  
  363.  
  364. else
  365.  
  366.  
  367.  
  368.  
  369. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  370.  
  371.  
  372.  
  373.  
  374. end
  375.  
  376.  
  377.  
  378.  
  379. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait()
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. li.Transparency = li.Transparency+.5 end li:Destroy() end)
  394.  
  395.  
  396.  
  397.  
  398. end
  399.  
  400.  
  401.  
  402.  
  403. end
  404. ---
  405. Lightning = function(Start,End,Times,Offset,Color,Thickness)
  406.  
  407.  
  408.  
  409.  
  410. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  411.  
  412.  
  413.  
  414.  
  415. for i=1,Times do
  416.  
  417.  
  418.  
  419.  
  420. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true
  421.  
  422.  
  423.  
  424.  
  425. li.Material = "Neon"
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439. li.Transparency = 0 li.BrickColor = Color
  440.  
  441.  
  442.  
  443.  
  444. li.formFactor = "Custom" li.CanCollide = false
  445.  
  446.  
  447.  
  448.  
  449. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  450.  
  451.  
  452.  
  453.  
  454. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  455.  
  456.  
  457.  
  458.  
  459. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  460.  
  461.  
  462.  
  463.  
  464. if Times == i then
  465.  
  466.  
  467.  
  468.  
  469. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  470.  
  471.  
  472.  
  473.  
  474. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  475.  
  476.  
  477.  
  478.  
  479. else
  480.  
  481.  
  482.  
  483.  
  484. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  485.  
  486.  
  487.  
  488.  
  489. end
  490.  
  491.  
  492.  
  493.  
  494. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait()
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508. li.Transparency = li.Transparency+tra end li:Destroy() end)
  509.  
  510.  
  511.  
  512.  
  513. end
  514.  
  515.  
  516.  
  517.  
  518. end
  519. --
  520. function get(a)
  521. local cont={}
  522. for i,v in pairs(a:GetChildren()) do
  523. if v==char then
  524. else
  525. table.insert(cont,v)
  526. pcall(function()
  527. for _,b in pairs(get(v)) do
  528. table.insert(cont,b)
  529. end
  530. end)
  531. end
  532. end
  533. return cont
  534. end
  535. for _,v in pairs(get(game.Workspace)) do
  536. if v:IsA("Sparkles") or v:IsA("Fire") then
  537. v:Destroy()
  538. end
  539. end
  540.  
  541. --
  542. function inT(qur,tbl)
  543. local a=false
  544. for i,v in pairs(tbl) do
  545. if v==qur then
  546. a=true
  547. break
  548. else
  549. a=false
  550. end
  551. end
  552. return a
  553. end
  554.  
  555. --
  556. function Tween(a,b,c)
  557. return a+(b-a)*c
  558. end
  559.  
  560. --
  561. function Avg(a,b)
  562. return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
  563. end
  564.  
  565. --
  566. function Lerp(c1,c2,tim)
  567. local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()}
  568. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  569. for i,v in pairs(com1) do
  570. com1[i]=v+(com2[i]-v)*tim
  571. end
  572. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  573. end
  574.  
  575. function RLerp(c1,c2,tim)
  576. return c1:lerp(c2,tim)
  577. end
  578.  
  579. --
  580. function ALerp(c1,c2,tim)
  581. local com1={c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  582. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  583. for i,v in pairs(com1) do
  584. com1[i]=v+(com2[i]-v)*tim
  585. end
  586. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  587. end
  588.  
  589. --
  590. function Lerprs(ud,ud2,al)
  591. local a,b,c,d=ud.X.Scale,ud.X.Offset,ud.Y.Scale,ud.Y.Offset
  592. local a2,b2,c2,d2=ud2.X.Scale,ud2.X.Offset,ud2.Y.Scale,ud2.Y.Offset
  593. local x,y,z,w=(a+(a2-a)*al),(b+(b2-b)*al),(c+(c2-c)*al),(d+(d2-d)*al)
  594. return UDim2.new(x,y,z,w)
  595. end
  596.  
  597. --
  598. function newAnim(wld)
  599. local asd={["Weld"]=wld;["Int"]=0;["Frame"]=1;}
  600. asd.getFrames=function()
  601. local num=0
  602. for _,v in pairs(asd) do
  603. pcall(function()
  604. num=num+v.Length
  605. end)
  606. end
  607. return num
  608. end
  609. return asd
  610. end
  611.  
  612. --
  613. function newKF(tab,c0,lng,off)
  614. off=off or 1
  615. table.insert(tab,{["C0"]=c0,["Length"]=lng,["Offset"]=off})
  616. end
  617.  
  618. --
  619. function runKF(tab)
  620. tab.Int=tab.Int+1
  621. if tab.Int>=tab[tab.Frame].Length then
  622. tab.Frame=tab.Frame+1
  623. tab.Int=0
  624. if tab.Frame>#tab then
  625. tab.Frame=1
  626. end
  627. end
  628. tab.Weld.C0=RLerp(tab.Weld.C0,tab[tab.Frame].C0,(tab[tab.Frame].Offset/tab[tab.Frame].Length)*tab.Int)
  629. end
  630.  
  631. --
  632. function nwPrt(prnt,siz,cf,col)
  633. local prt=Instance.new("Part")
  634. prt.Parent=prnt
  635. prt.FormFactor=3
  636. prt.Name="Part"
  637. prt.Size=siz
  638. prt.CanCollide=false
  639. prt.Anchored=true
  640. prt.Locked=true
  641. prt.TopSurface=10
  642. prt.BottomSurface=10
  643. prt.FrontSurface=10
  644. prt.BackSurface=10
  645. prt.LeftSurface=10
  646. prt.RightSurface=10
  647. prt:BreakJoints()
  648. prt.CFrame=cf or CFrame.new(30,10,30)
  649. prt.Material="SmoothPlastic"
  650. prt.BrickColor=BrickColor.new(col)
  651. m=Instance.new("SpecialMesh",prt)
  652. m.MeshType=6
  653. return prt
  654. end
  655.  
  656. --
  657. function nwWdg(prnt,siz,cf,col)
  658. local prt=Instance.new("WedgePart")
  659. prt.Parent=prnt
  660. prt.FormFactor=3
  661. prt.Name="Part"
  662. prt.Size=siz
  663. prt.CanCollide=false
  664. prt.Anchored=false
  665. prt.Locked=true
  666. prt.TopSurface=0
  667. prt.BottomSurface=0
  668. prt:BreakJoints()
  669. prt.CFrame=cf or CFrame.new(30,10,30)
  670. prt.Material="SmoothPlastic"
  671. prt.BrickColor=BrickColor.new(col)
  672. return prt
  673. end
  674.  
  675. --
  676. function newGui(prnt,clsnm,siz,pos,bsp,bc,bt)
  677. local gui=Instance.new(clsnm,prnt)
  678. gui.Size=siz or UDim2.new(0,100,0,100)
  679. gui.Position=pos or UDim2.new(0,0,0,0)
  680. gui.BorderSizePixel=bsp or 0
  681. gui.BackgroundColor3=bc or Color3.new(0,0,0)
  682. gui.BackgroundTransparency=bt or 1
  683. return gui
  684. end
  685.  
  686. --
  687. function nwWld(wp0,wp1,wc0)
  688. wld = Instance.new("Weld",wp1)
  689. wld.Part0=wp0
  690. wld.Part1=wp1
  691. wld.C0=wc0 or Cn(0,0,0)
  692. return wld
  693. end
  694.  
  695. --
  696. function nwSnd(prnt,pch,vol,id)
  697. local s=Instance.new("Sound",prnt)
  698. s.Pitch=pch
  699. s.Volume=vol
  700. s.SoundId="rbxassetid://"..id
  701. s.PlayOnRemove=true
  702. return s
  703. end
  704.  
  705. --
  706. function newRay(start,face,range,wat)
  707. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  708. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  709. return rey,hit,pos
  710. end
  711.  
  712. function nooutline(part)
  713. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  714. end
  715.  
  716. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  717. local fp=it("Part")
  718. fp.formFactor=formfactor
  719. fp.Parent=parent
  720. fp.Reflectance=reflectance
  721. fp.Transparency=transparency
  722. fp.CanCollide=false
  723. fp.Locked=true
  724. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  725. fp.Name=name
  726. fp.Size=size
  727. fp.Position=Character.Torso.Position
  728. nooutline(fp)
  729. fp.Material=material
  730. fp:BreakJoints()
  731. return fp
  732. end
  733.  
  734. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  735. local mesh=it(Mesh)
  736. mesh.Parent=part
  737. if Mesh=="SpecialMesh" then
  738. mesh.MeshType=meshtype
  739. mesh.MeshId=meshid
  740. end
  741. mesh.Offset=offset
  742. mesh.Scale=scale
  743. return mesh
  744. end
  745.  
  746. function weld(parent,part0,part1,c0,c1)
  747. local weld=it("Weld")
  748. weld.Parent=parent
  749. weld.Part0=part0
  750. weld.Part1=part1
  751. weld.C0=c0
  752. weld.C1=c1
  753. return weld
  754. end
  755. TfwTimeStopped = false
  756. function Damagefunc(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  757. if hit.Parent==nil then
  758. return
  759. end
  760. h=hit.Parent:FindFirstChild("Humanoid")
  761. for _,v in pairs(hit.Parent:children()) do
  762. if v:IsA("Humanoid") then
  763. h=v
  764. end
  765. end
  766. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  767. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  768. end
  769. if hit.Parent.className=="Accessory" then
  770. hit=hit.Parent.Parent:findFirstChild("Head")
  771. end
  772. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  773. if hit.Parent:findFirstChild("DebounceHit")~=nil then
  774. if hit.Parent.DebounceHit.Value==true then
  775. return
  776. end
  777. end
  778. --[[if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  779. return
  780. end]]
  781. --hs(hit,1.2)
  782. c=Instance.new("ObjectValue")
  783. c.Name="creator"
  784. c.Value=game:service("Players").LocalPlayer
  785. c.Parent=h
  786. game:GetService("Debris"):AddItem(c,.5)
  787. Damage=math.random(minim,maxim)
  788. --h:TakeDamage(Damage)
  789. blocked=false
  790. block=hit.Parent:findFirstChild("Block")
  791. if block~=nil then
  792. print(block.className)
  793. if block.className=="NumberValue" then
  794. if block.Value>0 then
  795. blocked=true
  796. if decreaseblock==nil then
  797. block.Value=block.Value-1
  798. end
  799. end
  800. end
  801. if block.className=="IntValue" then
  802. if block.Value>0 then
  803. blocked=true
  804. if decreaseblock~=nil then
  805. block.Value=block.Value-1
  806. end
  807. end
  808. end
  809. end
  810. if blocked==false then
  811. --h:TakeDamage(Damage)
  812. if TfwTimeStopped == false then
  813. h.Health=h.Health-Damage
  814. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  815. elseif TfwTimeStopped == true then
  816. repeat wait() until TfwTimeStopped == false
  817. h.Health=h.Health-0.1
  818. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  819. end
  820. else
  821. h.Health=h.Health-(Damage/2)
  822. ShowDamage((hit.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  823. end
  824. if Type=="Knockdown" then
  825. hum=hit.Parent.Humanoid
  826. hum.PlatformStand=true
  827. coroutine.resume(coroutine.create(function(HHumanoid)
  828. swait(1)
  829. HHumanoid.PlatformStand=false
  830. end),hum)
  831. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  832. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  833. local bodvol=Instance.new("BodyVelocity")
  834. bodvol.velocity=angle*knockback
  835. bodvol.P=500
  836. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  837. bodvol.Parent=hit
  838. game:GetService("Debris"):AddItem(bodvol,.5)
  839. game:GetService("Debris"):AddItem(rl,.5)
  840. elseif Type == "[The Revenant]" then
  841. hum=hit.Parent.Humanoid
  842. hum.PlatformStand=true
  843. coroutine.resume(coroutine.create(function(HHumanoid)
  844. swait(1)
  845. HHumanoid.PlatformStand=false
  846. end),hum)
  847. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  848. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  849. local bodvol=Instance.new("BodyVelocity")
  850. bodvol.velocity=angle*knockback
  851. bodvol.P=500
  852. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  853. bodvol.Parent=hit
  854. game:GetService("Debris"):AddItem(bodvol,.5)
  855. game:GetService("Debris"):AddItem(rl,.5)
  856. wait(3)
  857.  
  858. elseif Type=="Normal" then
  859. vp=Instance.new("BodyVelocity")
  860. vp.P=500
  861. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  862. --vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  863. if KnockbackType==1 then
  864. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  865. elseif KnockbackType==2 then
  866. vp.velocity=Property.CFrame.lookVector*knockback
  867. end
  868. if knockback>0 then
  869. vp.Parent=hit.Parent.Torso
  870. end
  871. game:GetService("Debris"):AddItem(vp,.5)
  872. elseif Type=="Up" then
  873. local bodyVelocity=Instance.new("BodyVelocity")
  874. bodyVelocity.velocity=vt(0,60,0)
  875. bodyVelocity.P=5000
  876. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  877. bodyVelocity.Parent=hit
  878. game:GetService("Debris"):AddItem(bodyVelocity,1)
  879. rl=Instance.new("BodyAngularVelocity")
  880. rl.P=3000
  881. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  882. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  883. rl.Parent=hit
  884. game:GetService("Debris"):AddItem(rl,.5)
  885. elseif Type=="Snare" then
  886. bp=Instance.new("BodyPosition")
  887. bp.P=2000
  888. bp.D=100
  889. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  890. bp.position=hit.Parent.Torso.Position
  891. bp.Parent=hit.Parent.Torso
  892. game:GetService("Debris"):AddItem(bp,1)
  893. elseif Type=="Target" then
  894. local Targetting = false
  895. if Targetting==false then
  896. ZTarget=hit.Parent.Torso
  897. coroutine.resume(coroutine.create(function(Part)
  898. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  899. swait(5)
  900. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  901. end),ZTarget)
  902. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  903. local targetgui=Instance.new("BillboardGui")
  904. targetgui.Parent=ZTarget
  905. targetgui.Size=UDim2.new(10,100,10,100)
  906. local targ=Instance.new("ImageLabel")
  907. targ.Parent=targetgui
  908. targ.BackgroundTransparency=1
  909. targ.Image="rbxassetid://4834067"
  910. targ.Size=UDim2.new(1,0,1,0)
  911. cam.CameraType="Scriptable"
  912. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  913. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  914. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  915. Targetting=true
  916. RocketTarget=ZTarget
  917. for i=1,Property do
  918. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  919. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  920. swait()
  921. end
  922. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  923. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  924. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  925. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  926. end
  927. Targetting=false
  928. RocketTarget=nil
  929. targetgui.Parent=nil
  930. cam.CameraType="Custom"
  931. end
  932. end
  933. local debounce=Instance.new("BoolValue")
  934. debounce.Name="DebounceHit"
  935. debounce.Parent=hit.Parent
  936. debounce.Value=true
  937. game:GetService("Debris"):AddItem(debounce,Delay)
  938. c=Instance.new("ObjectValue")
  939. c.Name="creator"
  940. c.Value=Player
  941. c.Parent=h
  942. game:GetService("Debris"):AddItem(c,.5)
  943. end
  944. end
  945.  
  946. function ShowDamage(Pos, Text, Time, Color)
  947. local Rate = (1 / 30)
  948. local Pos = (Pos or Vector3.new(0, 0, 0))
  949. local Text = (Text or "")
  950. local Time = (Time or 2)
  951. local Color = (Color or Color3.new(1, 0, 0))
  952. local EffectPart = part("Custom",workspace,"Neon",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  953. EffectPart.Anchored = true
  954. local BillboardGui = Instance.new("BillboardGui")
  955. BillboardGui.Size = UDim2.new(3, 3, 3, 3)
  956. BillboardGui.Adornee = EffectPart
  957. local TextLabel = Instance.new("TextLabel")
  958. TextLabel.BackgroundTransparency = 1
  959. TextLabel.Size = UDim2.new(3, 3, 3, 3)
  960. TextLabel.Text = Text
  961. TextLabel.TextColor3 = Color
  962. TextLabel.TextStrokeColor3 = BrickColor.new("Bright yellow").Color
  963. TextLabel.TextScaled = true
  964. TextLabel.TextStrokeTransparency = 0
  965. TextLabel.Font = Enum.Font.SourceSansBold
  966. TextLabel.Parent = BillboardGui
  967. BillboardGui.Parent = EffectPart
  968. game.Debris:AddItem(EffectPart, (Time + 0.1))
  969. EffectPart.Parent = game:GetService("Workspace")
  970. Delay(0, function()
  971. local Frames = (Time / Rate)
  972. for Frame = 1, Frames do
  973. wait(Rate)
  974. local Percent = (Frame / Frames)
  975. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  976. TextLabel.TextTransparency = Percent
  977. TextLabel.TextStrokeTransparency = Percent
  978. end
  979. if EffectPart and EffectPart.Parent then
  980. EffectPart:Destroy()
  981. end
  982. end)
  983. end
  984.  
  985.  
  986.  
  987. --[[local Player = game:service("Players").LocalPlayer
  988. repeat wait() until Player.Character ~= nil
  989.  
  990. local Char = Player.Character
  991. local mouse = Player:GetMouse()
  992. local Backpack = Player.Backpack
  993. local PlayerGui = Player.PlayerGui
  994. local Camera = workspace.CurrentCamera
  995. local Humanoid = Char:findFirstChild("Humanoid")
  996. local Torso = Char:findFirstChild("Torso")
  997. local Head = Char:findFirstChild("Head")
  998. local ra = Char:findFirstChild("Right Arm")
  999. local la = Char:findFirstChild("Left Arm")
  1000. local rl = Char:findFirstChild("Right Leg")
  1001. local ll = Char:findFirstChild("Left Leg")
  1002. local rs = Torso:findFirstChild("Right Shoulder")
  1003. local ls = Torso:findFirstChild("Left Shoulder")
  1004. local rh = Torso:findFirstChild("Right Hip")
  1005. local lh = Torso:findFirstChild("Left Hip")
  1006. local neck = Torso:findFirstChild("Neck")
  1007. local rootpart = Char:findFirstChild("HumanoidRootPart")
  1008. local rj = rootpart:findFirstChild("RootJoint")
  1009. local anim = Char:findFirstChild("Animate")
  1010. local RunService = game:GetService("RunService")
  1011. local UIA = game:GetService("UserInputService")
  1012. local CF = CFrame.new
  1013. local CA = CFrame.Angles
  1014. local FEA = CFrame.fromEulerAnglesXYZ
  1015. local FAA = CFrame.fromAxisAngle
  1016. local V3 = Vector3.new
  1017. local CN = Color3.new
  1018. local Ice = Instance.new
  1019. local BC = BrickColor.new
  1020. local UD2 = UDim2.new
  1021. local C3 = Color3.new
  1022. local MR = math.rad
  1023. local MP = math.pi
  1024. local MD = math.deg
  1025. local MH = math.huge
  1026. local MS = math.sin
  1027. local MC = math.cos
  1028. local MT = math.tan
  1029. local MAS = math.asin
  1030. local MAC = math.acos
  1031. local MAT = math.atan
  1032. local components = CF().components
  1033.  
  1034. local State = {}
  1035. State["Calm"] = "Active"
  1036.  
  1037. function Tweenz(a,b,i)
  1038. return a:lerp(b,i)
  1039. end
  1040.  
  1041. function Create(Instanc,prop)
  1042. local p=Instance.new(Instanc)
  1043. for i,v in pairs(prop) do
  1044. p[i]=v
  1045. end
  1046. return p
  1047. end
  1048.  
  1049. local c0 = {
  1050. RightArm = CF(1.5,0.5,0),
  1051. LeftArm = CF(-1.5,0.5,0),
  1052. RightLeg = CF(0.5,-1,0),
  1053. LeftLeg = CF(-0.5,-1,0),
  1054. RootJoint = CF(0,0,0),
  1055. Neck = CF(0,1,0)
  1056. }
  1057. local c1 = {
  1058. RightArm = CF(0,0.5,0),
  1059. LeftArm = CF(0,0.5,0),
  1060. RightLeg = CF(0,1,0),
  1061. LeftLeg = CF(0,1,0),
  1062. RootJoint = CF(0,0,0),
  1063. Neck = CF(0,-0.5,0)
  1064. }
  1065.  
  1066.  
  1067. --RightArm = Create("Snap",{Parent=Torso,C0=c0.RightArm,C1=c1.RightArm,Part0=Torso,Part1=ra})
  1068. --LeftArm = Create("Snap",{Parent=Torso,C0=c0.LeftArm,C1=c1.LeftArm,Part0=Torso,Part1=la})
  1069. RightLeg = Create("Snap",{Parent=Torso,C0=c0.RightLeg,C1=c1.RightLeg,Part0=Torso,Part1=rl})
  1070. LeftLeg = Create("Snap",{Parent=Torso,C0=c0.LeftLeg,C1=c1.LeftLeg,Part0=Torso,Part1=ll})
  1071.  
  1072. neck.C0 = c0.Neck
  1073. neck.C1 = c1.Neck
  1074.  
  1075. local Spread = 12
  1076. local Smooth = 1
  1077.  
  1078. local angle = tick()
  1079. game:GetService("RunService").Stepped:connect(function()
  1080. local lefth = (Torso.CFrame*c0.LeftLeg)
  1081. local righth = (Torso.CFrame*c0.RightLeg)
  1082. angle = angle+0.2*Smooth
  1083. local speed = V3(Torso.Velocity.X,0,Torso.Velocity.Z)
  1084. local TiltOnAxis = (rootpart.CFrame-rootpart.CFrame.p):inverse()*speed/100
  1085. rj.C0 = Tweenz(rj.C0,CFrame.Angles(MR(-90)+TiltOnAxis.Z,TiltOnAxis.X,MR(180)+-TiltOnAxis.X),.1)
  1086. --[[local offset = CFrame.new(0,5,0)
  1087. rj.C0 = CF(V3(),(mouse.hit.p-rootpart.CFrame.p).unit*100)*CFrame.Angles(MR(-90),0,MR(180))
  1088. local h = (rootpart.CFrame*offset).p
  1089. local d = CFrame.new(h,mouse.Hit.p)
  1090. local e = rootpart.CFrame*CFrame.new(h)
  1091. neck.C0 = ((d-d.p):inverse()*(e-e.p)):inverse()*CFrame.new(0,1,0)]]
  1092. --[[local AnglePR = (righth-righth.p):inverse()*speed/100
  1093. local AnglePL = (lefth-lefth.p):inverse()*speed/100
  1094. if speed.magnitude < 2 then
  1095. --RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(0,0,0),.1)
  1096. --LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(0,0,0),.1)
  1097. elseif speed.magnitude > 2 then
  1098. RightLeg.C0 = Tweenz(RightLeg.C0,CF(0.5,-1+math.cos(angle)*.5,-0.2+-math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*-AnglePR.Z,AnglePR.X,math.sin(angle)*Spread*AnglePR.X),.1)
  1099. LeftLeg.C0 = Tweenz(LeftLeg.C0,CF(-0.5,-1+-math.cos(angle)*.5,-0.2+math.sin(angle)*.1)*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,AnglePL.X,math.sin(angle)*Spread*-AnglePL.X),.1)
  1100. --RightArm.C0 = Tweenz(RightArm.C0,c0.RightArm*CFrame.Angles(math.sin(angle)*Spread*AnglePL.Z,0,0),.1)
  1101. --LeftArm.C0 = Tweenz(LeftArm.C0,c0.LeftArm*CFrame.Angles(-math.sin(angle)*Spread*AnglePL.Z,0,0),.1)
  1102. end
  1103. end)
  1104. ]]
  1105. Player = p
  1106. workspace[Player.Name].Archivable=true
  1107. pchar = workspace[Player.Name]:Clone() --Create("Model",{Parent=workspace})
  1108. pchar.Parent=workspace[Player.Name]
  1109. torso=pchar.Torso
  1110. humane=pchar.Humanoid
  1111. pchar.Name= "[Crazy Diamond]"
  1112. pl=pchar
  1113. humane.MaxHealth=Health
  1114. wait()
  1115. humane.Health=Health
  1116. humane.WalkSpeed=Speed
  1117. pchar.Torso.song:Destroy()
  1118. pchar.Shirt:Destroy()
  1119. pchar.Pants:Destroy()
  1120. pchar.Part:destroy()
  1121. pchar.Head.face.Texture = "rbxassetid://392873276"
  1122. shirt = Instance.new("Shirt", pchar)
  1123. shirt.Name = "Shirt"
  1124. pants = Instance.new("Pants", pchar)
  1125. pants.Name = "Pants"
  1126. pchar.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=517890047"
  1127. pchar.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=517890409"
  1128. for i,v in ipairs(pchar:children()) do
  1129. if v:isA("Accessory") then
  1130. v:remove()
  1131. end
  1132. end
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138. Hat = Instance.new("Model")
  1139. Hat.Parent = pchar
  1140. Hat.Name = "Accessory"
  1141. rh = Instance.new("Part")
  1142. rh.Parent = Hat
  1143. rh.BrickColor = BrickColor.new("Really black")
  1144. rh.Locked = true
  1145. rh.Transparency = 1
  1146. rh.CanCollide = false
  1147. mesh = Instance.new("SpecialMesh")
  1148. rh.formFactor = "Symmetric"
  1149. mesh.MeshType = "FileMesh"
  1150. mesh.MeshId = "rbxassetid://439736904"
  1151. mesh.Parent = rh
  1152. local weld = Instance.new("Weld")
  1153. weld.Parent = rh
  1154. weld.Part0 = rh
  1155. weld.Part1 =pchar.Head
  1156. weld.C0 = CFrame.new(0, -0.5, 0.5)*CFrame.Angles(0, 3, 0)
  1157. mesh.Scale = Vector3.new(0.002,0.002, 0.002)
  1158.  
  1159. Hat2 = Instance.new("Model")
  1160. Hat2.Parent = pchar
  1161. Hat2.Name = "Accessory"
  1162. rh = Instance.new("Part")
  1163. rh.Parent = Hat2
  1164. rh.Transparency = 1
  1165. rh.BrickColor = BrickColor.new("Really black")
  1166. rh.Locked = true
  1167. rh.CanCollide = false
  1168. mesh = Instance.new("SpecialMesh")
  1169. rh.formFactor = "Symmetric"
  1170. mesh.MeshType = "FileMesh"
  1171. mesh.MeshId = "rbxassetid://99856331"
  1172. mesh.Parent = rh
  1173. local weld = Instance.new("Weld")
  1174. weld.Parent = rh
  1175. weld.Part0 = rh
  1176. weld.Part1 =pchar.Head
  1177. weld.C0 = CFrame.new(0, 1, -.1 )*CFrame.Angles(0, 0, 0)
  1178. mesh.Scale = Vector3.new(1,1,1)
  1179. -------------------------------------------MUSICMUSIC
  1180. local p = game.Players.LocalPlayer
  1181. local char = p.Character
  1182. b = Instance.new("Sound", pchar)
  1183. b.Name="goob"
  1184. b.SoundId = "rbxassetid://678621902"
  1185. b.Looped = true
  1186. b.Pitch = 1
  1187. b.Volume = .7
  1188. wait(.01)
  1189. b:Play()
  1190.  
  1191.  
  1192.  
  1193. --auora
  1194. aura = Instance.new("Part", pchar)
  1195. aura.FormFactor = "Custom"
  1196. aura.Transparency = 1
  1197. aura.Size = Vector3.new(0.2, 0.2, 0.2)
  1198. aura.Name = "Aura"
  1199. aura.Anchored = true
  1200. aura2 = Instance.new("Part", pchar)
  1201. aura2.FormFactor = "Custom"
  1202. aura2.Transparency = 1
  1203. aura2.Size = Vector3.new(0.2, 0.2, 0.2)
  1204. aura2.Name = "Aura2"
  1205. aura2.Anchored = true
  1206. local w = Instance.new("Weld", torso)
  1207. do
  1208. w.Part0 = torso
  1209. w.Part1 = aura
  1210. w.C0 = CFrame.new(0, -2, 0)
  1211. local ww = Instance.new("Weld", torso)
  1212. ww.Part0 = torso
  1213. ww.Part1 = aura2
  1214. ww.C0 = CFrame.new(0, 0, 0)
  1215. aura.Anchored = false
  1216. aura2.Anchored = false
  1217. local primary = Color3.new(1,1,1)
  1218. local secondary = Color3.new(0, 0, 0)
  1219. pe = Instance.new("ParticleEmitter", aura)
  1220. pe.Texture = "http://www.roblox.com/asset/?id=670192269"
  1221. pe.Color = ColorSequence.new(secondary, primary)
  1222. pe.LightEmission = 0.75
  1223. pe.Size = NumberSequence.new(5)
  1224. pe.Transparency = NumberSequence.new(0.75)
  1225. pe.ZOffset = 0.8
  1226. pe.LockedToPart = true
  1227. pe.Acceleration = Vector3.new(10, 10, 0)
  1228. pe.Lifetime = NumberRange.new(0.25)
  1229. pe.Speed = NumberRange.new(15)
  1230. pe.Rotation = NumberRange.new(-10, 10)
  1231. pe.Enabled = true
  1232. pe.Rate = 40
  1233. pe.VelocitySpread = 10
  1234. pe.Name = "Charge"
  1235. pe.Enabled = true
  1236. se1 = {NumberSequenceKeypoint.new(0, 10, 0), NumberSequenceKeypoint.new(1, 30, 0)}
  1237. pe2 = Instance.new("ParticleEmitter", aura2)
  1238. pe2.Texture = "http://www.roblox.com/asset/?id="
  1239. pe2.Color = ColorSequence.new(secondary, primary)
  1240. pe2.LightEmission = 1
  1241. pe2.Size = NumberSequence.new(se1)
  1242. pe2.Transparency = NumberSequence.new(0, 0.75)
  1243. pe2.ZOffset = 0
  1244. pe2.LockedToPart = true
  1245. pe2.Acceleration = Vector3.new(0, 0, 0)
  1246. pe2.Lifetime = NumberRange.new(0.6)
  1247. pe2.Speed = NumberRange.new(0)
  1248. pe2.Rotation = NumberRange.new(0, 0)
  1249. pe2.Enabled = true
  1250. pe2.Rate = 12
  1251. pe2.VelocitySpread = 0
  1252. pe2.Name = "Charge"
  1253. pe2.Enabled = true
  1254. end
  1255. ---Weld
  1256.  
  1257. local law=nwWld(tor,lam,Cn(-1.5,0.5,0))
  1258. law.C1=CFrame.new(0,0.5,0)
  1259. local raw=nwWld(tor,ram,Cn(1.5,0.5,0))
  1260. raw.C1=CFrame.new(0,0.5,0)
  1261. local hew=nwWld(tor,hed,Cn(0,1.5,0))
  1262. local llw=nwWld(tor,llg,Cn(-0.5,-1,0))
  1263. llw.C1=CFrame.new(0,1,0)
  1264. local rlw=nwWld(tor,rlg,Cn(0.5,-1,0))
  1265. rlw.C1=CFrame.new(0,1,0)
  1266. local tow=nwWld(hrp,tor,Cn(0,-1,0))
  1267. tow.C1=CFrame.new(0,-1,0)
  1268.  
  1269.  
  1270. local hrp2 = pchar.HumanoidRootPart
  1271. local tor2 = torso
  1272. local hed2 = pchar.Head
  1273. local lam2=pchar["Left Arm"]
  1274. local ram2=pchar["Right Arm"]
  1275. local llg2=pchar["Left Leg"]
  1276. local rlg2=pchar["Right Leg"]
  1277.  
  1278. local law2=nwWld(tor2,lam2,Cn(-1.5,0.5,0))
  1279. law2.C1=CFrame.new(0,0.5,0)
  1280. local raw2=nwWld(tor2,ram2,Cn(1.5,0.5,0))
  1281. raw2.C1=CFrame.new(0,0.5,0)
  1282. local hew2=nwWld(torso,hed2,Cn(0,1.5,0))
  1283. local llw2=nwWld(torso,llg2,Cn(-0.5,-1,0))
  1284. llw2.C1=CFrame.new(0,1,0)
  1285. local rlw2=nwWld(tor2,rlg2,Cn(0.5,-1,0))
  1286. rlw2.C1=CFrame.new(0,1,0)
  1287. local tow2=nwWld(hrp2,tor2,Cn(0,-1,0))
  1288. tow2.C1=CFrame.new(0,-1,0)
  1289.  
  1290. local laD=CFrame.new(-1.5,0.5,0)
  1291. local raD=CFrame.new(1.5,0.5,0)
  1292. local hD=CFrame.new(0,1.5,0)
  1293. local tD=CFrame.new(0,-1,0)
  1294. local llD=CFrame.new(-0.5,-1,0)
  1295. local rlD=CFrame.new(0.5,-1,0)
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302. local heid=newAnim(hew)
  1303. newKF(heid,hD*CA(mr(-15.5),0,0),50,0.3)
  1304. newKF(heid,hD*CA(mr(-14),0,0),40,0.3)
  1305. local toid=newAnim(tow)
  1306. newKF(toid,tD*Cn(0,-0.0125,0)*CA(mr(16),0,0),50,0.3)
  1307. newKF(toid,tD*Cn(0,0.0125,0)*CA(mr(15),0,0),40,0.3)
  1308. local laid=newAnim(law)
  1309. newKF(laid,laD*Cn(1,0.1,-0.764)*CA(mr(80),0,mr(85)),500,0.3)
  1310. newKF(laid,laD*Cn(1,-0.1,-0.764)*CA(mr(70),0,mr(85)),40,0.3)
  1311. local raid=newAnim(raw)
  1312. newKF(raid,raD*Cn(-1,-0.0125,-0.764)*CA(mr(80),0,mr(-85)),50,0.3)
  1313. newKF(raid,raD*Cn(-1,0.0125,-0.764)*CA(mr(70),0,mr(-85)),40,0.3)
  1314. local llid=newAnim(llw)
  1315. newKF(llid,llD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3)
  1316. newKF(llid,llD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3)
  1317. local rlid=newAnim(rlw)
  1318. newKF(rlid,rlD*Cn(0,0.0125,0)*CA(mr(-16),0,0),50,0.3)
  1319. newKF(rlid,rlD*Cn(0,-0.0125,0)*CA(mr(-15),0,mr(0)),40,0.3)
  1320.  
  1321.  
  1322. local heid2=newAnim(hew2)
  1323. newKF(heid2,hD*CA(mr(0),125,0),40,0.3)
  1324. newKF(heid2,hD*CA(mr(0),125,0),40,0.3)
  1325. local toid2=newAnim(tow2)
  1326. newKF(toid2,tD*Cn(0,1,1.5)*CA(mr(0),0.5,0),50,1)
  1327. newKF(toid2,tD*Cn(0,1.5,1.5)*CA(mr(0),0.5,0),40,1)
  1328. local laid2=newAnim(law2)
  1329. newKF(laid2,laD*Cn(0.5,0.0125,-1)*CA(mr(80),mr(-30),mr(55)),50,0.1)
  1330. newKF(laid2,laD*Cn(0.5,-0.0125,-1)*CA(mr(80),mr(-30),mr(55)),40,0.1)
  1331. local raid2=newAnim(raw2)
  1332. newKF(raid2,raD*Cn(-0.5,-0.0125,-1)*CA(mr(90),mr(-10),mr(-55)),50,0.3)
  1333. newKF(raid2,raD*Cn(-0.5,0.0125,-1)*CA(mr(90),mr(-10),mr(-55)),40,0.3)
  1334. local llid2=newAnim(llw2)
  1335. newKF(llid2,llD*Cn(0,0.0125,0)*CA(mr(0),-50,0),50,0.3)
  1336. newKF(llid2,llD*Cn(0,-0.0125,0)*CA(mr(0),-50,mr(0)),40,0.3)
  1337. local rlid2=newAnim(rlw2)
  1338. newKF(rlid2,rlD*Cn(0,0.0125,0)*CA(mr(-10),-120,0),50,0.3)
  1339. newKF(rlid2,rlD*Cn(0,-0.0125,0)*CA(mr(-10),-120,mr(0)),40,0.3)
  1340.  
  1341. --Walk
  1342. local hewk=newAnim(hew)
  1343. newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4)
  1344. newKF(hewk,hD*CA(mr(-5),mr(-3),0),13,0.4)
  1345. newKF(hewk,hD*CA(mr(-5.5),0,0),12,0.4)
  1346. newKF(hewk,hD*CA(mr(-5),mr(3),0),13,0.4)
  1347. local towk=newAnim(tow)
  1348. newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
  1349. newKF(towk,tD*CA(mr(15),mr(5),0),13,0.4)
  1350. newKF(towk,tD*Cn(0,0.1,0)*CA(mr(15),0,0),12,0.2)
  1351. newKF(towk,tD*CA(mr(15),mr(-5),0),13,0.4)
  1352. local lawk=newAnim(law)
  1353. newKF(lawk,laD*CA(mr(30),0,0),25,0.4)
  1354. newKF(lawk,laD*CA(mr(-30),0,0),25,0.4)
  1355. local rawk=newAnim(raw)
  1356. newKF(rawk,raD*CA(mr(-30),0,0),25,0.4)
  1357. newKF(rawk,raD*CA(mr(30),0,0),25,0.4)
  1358. local llwk=newAnim(llw)
  1359. newKF(llwk,llD*CA(mr(-40),mr(-10),mr(-2)),25,0.4)
  1360. newKF(llwk,llD*Cn(0,0.3,0)*CA(mr(-5),0,mr(-3)),12,0.4)
  1361. newKF(llwk,llD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(10),mr(-3)),13,0.4)
  1362. local rlwk=newAnim(rlw)
  1363. newKF(rlwk,rlD*Cn(0,0.3,0)*CA(mr(-5),0,mr(3)),12,0.4)
  1364. newKF(rlwk,rlD*Cn(0,-0.2,-0.25)*CA(mr(40),mr(-10),mr(3)),13,0.4)
  1365. newKF(rlwk,rlD*CA(mr(-40),mr(10),mr(2)),25,0.4)
  1366.  
  1367. --Sprint
  1368. local hesp=newAnim(hew)
  1369. newKF(hesp,hD*CA(mr(5),mr(-10),0),10,0.2)
  1370. newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
  1371. newKF(hesp,hD*CA(mr(5),mr(10),0),10,0.2)
  1372. newKF(hesp,hD*CA(mr(10),0,0),10,0.2)
  1373. local tosp=newAnim(tow)
  1374. newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(10),0),10,0.4)
  1375. newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
  1376. newKF(tosp,tD*Cn(0,0.1,0)*CA(mr(-5),mr(-10),0),10,0.4)
  1377. newKF(tosp,tD*CA(mr(-10),0,0),10,0.4)
  1378. local lasp=newAnim(law)
  1379. newKF(lasp,laD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
  1380. newKF(lasp,laD*CA(mr(-40),0,0),20,0.4)
  1381. local rasp=newAnim(raw)
  1382. newKF(rasp,raD*CA(mr(-40),0,0),20,0.4)
  1383. newKF(rasp,raD*Cn(0,-0.1,-0.2)*CA(mr(60),0,0),20,0.4)
  1384. local llsp=newAnim(llw)
  1385. newKF(llsp,llD*CA(mr(-50),mr(-10),mr(-2)),20,0.4)
  1386. newKF(llsp,llD*Cn(0,0.5,0)*CA(mr(15),0,mr(-3)),10,0.4)
  1387. newKF(llsp,llD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(10),mr(-3)),10,0.4)
  1388. local rlsp=newAnim(rlw)
  1389. newKF(rlsp,rlD*Cn(0,0.3,0)*CA(mr(15),0,mr(3)),10,0.4)
  1390. newKF(rlsp,rlD*Cn(0,-0.4,-0.25)*CA(mr(70),mr(-10),mr(3)),10,0.4)
  1391. newKF(rlsp,rlD*CA(mr(-50),mr(10),mr(2)),20,0.4)
  1392.  
  1393. --Freefall
  1394. local heff=newAnim(hew)
  1395. newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
  1396. newKF(heff,hD*CA(mr(-5),0,0),8,0.6)
  1397. local toff=newAnim(tow)
  1398. newKF(toff,tD*CA(mr(10),0,0),8,0.6)
  1399. newKF(toff,tD*CA(mr(10),0,0),8,0.6)
  1400. local laff=newAnim(law)
  1401. newKF(laff,laD*CA(mr(140),0,0),16,0.4)
  1402. newKF(laff,laD*CA(mr(140),0,0),16,0.4)
  1403. local raff=newAnim(raw)
  1404. newKF(raff,raD*CA(mr(140),0,0),16,0.4)
  1405. newKF(raff,raD*CA(mr(140),0,0),16,0.4)
  1406. local llff=newAnim(llw)
  1407. newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
  1408. newKF(llff,llD*CA(0,0,mr(-5)),16,0.4)
  1409. local rlff=newAnim(rlw)
  1410. newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
  1411. newKF(rlff,rlD*CA(0,0,mr(5)),16,0.4)
  1412.  
  1413. --Time Has Stopped
  1414. local hesp2=newAnim(hew)
  1415. newKF(hesp2,hD*CA(mr(-30),mr(0),mr(0)),10,0.5)
  1416. local tosp2=newAnim(tow)
  1417. newKF(tosp2,tD*Cn(0,0,0)*CA(mr(30),mr(0),mr(0)),10,0.5)
  1418. local lasp2=newAnim(law)
  1419. newKF(lasp2,laD*CA(mr(90),mr(0),mr(-60)),20,1.5)
  1420. local rasp2=newAnim(raw)
  1421. newKF(rasp2,raD*CA(mr(90),mr(0),mr(60)),20,1.5)
  1422. local llsp2=newAnim(llw)
  1423. newKF(llsp2,llD*Cn(0,0,0)*CA(mr(-30),mr(0),mr(0)),20,0.5)
  1424. local rlsp2=newAnim(rlw)
  1425. newKF(rlsp2,rlD*Cn(0,0,0)*CA(mr(-30),0,mr(0)),10,0.5)
  1426.  
  1427. local hesp3=newAnim(hew2)
  1428. newKF(hesp3,hD*CA(mr(-15),mr(0),mr(0)),50,0.2)
  1429. local tosp3=newAnim(tow2)
  1430. newKF(tosp3,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),50,0.4)
  1431. local lasp3=newAnim(law2)
  1432. newKF(lasp3,laD*CA(mr(80),mr(0),mr(65)),30,0.4)
  1433. newKF(lasp3,laD*CA(mr(120),mr(0),mr(-60)),50,0.4)
  1434. local rasp3=newAnim(raw2)
  1435. newKF(rasp3,raD*CA(mr(80),mr(0),mr(-65)),30,0.4)
  1436. newKF(rasp3,raD*CA(mr(120),mr(0),mr(60)),50,0.4)
  1437. local llsp3=newAnim(llw2)
  1438. newKF(llsp3,llD*CA(mr(0),mr(0),mr(1.5)),50,0.4)
  1439. local rlsp3=newAnim(rlw2)
  1440. newKF(rlsp3,rlD*CA(mr(0),mr(0),mr(-1.5)),50,0.4)
  1441.  
  1442. local hesp4=newAnim(hew2)
  1443. newKF(hesp4,hD*CA(mr(-10),mr(0),mr(0)),10,0.2)
  1444. local tosp4=newAnim(tow2)
  1445. newKF(tosp4,tD*Cn(0,1,3)*CA(mr(0),mr(0),mr(0)),10,0.4)
  1446. local lasp4=newAnim(law2)
  1447. newKF(lasp4,laD*CA(mr(120),mr(0),mr(-60)),20,0.4)
  1448. local rasp4=newAnim(raw2)
  1449. newKF(rasp4,raD*CA(mr(120),mr(0),mr(60)),20,0.4)
  1450. local llsp4=newAnim(llw2)
  1451. newKF(llsp4,llD*CA(mr(0),mr(0),mr(1.5)),20,0.4)
  1452. local rlsp4=newAnim(rlw2)
  1453. newKF(rlsp4,rlD*CA(mr(0),mr(0),mr(-1.5)),10,0.4)
  1454.  
  1455. --Let time flow again
  1456. local hetoki=newAnim(hew)
  1457. newKF(hetoki,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
  1458. local totoki=newAnim(tow)
  1459. newKF(totoki,tD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
  1460. local latoki=newAnim(law)
  1461. newKF(latoki,laD*Cn(0,-0.1,-0.2)*CA(mr(0),mr(0),mr(0)),20,0.4)
  1462. local ratoki=newAnim(raw)
  1463. newKF(ratoki,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
  1464. local lltoki=newAnim(llw)
  1465. newKF(lltoki,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
  1466. local rltoki=newAnim(rlw)
  1467. newKF(rltoki,rlD*Cn(0,0,0)*CA(mr(0),mr(0),mr(0)),10,0.4)
  1468. --//Example of Keyframe
  1469. --[[
  1470. local hesp2=newAnim(hew)
  1471. newKF(hesp2,hD*CA(mr(0),mr(0),mr(0)),10,0.2)
  1472. local tosp2=newAnim(tow)
  1473. newKF(tosp2,tD*CA(mr(0),mr(0),mr(0)),10,0.4)
  1474. local lasp2=newAnim(law)
  1475. newKF(lasp2,laD*CA(mr(0),mr(0),mr(0)),20,0.4)
  1476. local rasp2=newAnim(raw)
  1477. newKF(rasp2,raD*CA(mr(0),mr(0),mr(0)),20,0.4)
  1478. local llsp2=newAnim(llw)
  1479. newKF(llsp2,llD*CA(mr(0),mr(0),mr(0)),20,0.4)
  1480. local rlsp2=newAnim(rlw)
  1481. newKF(rlsp2,rlD*CA(mr(0),mr(0),mr(0)),10,0.4)
  1482. ]]
  1483. function onDamage(Part)
  1484. if Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("BodyVelocity") ~= nil or Part:findFirstChild("Humanoid") == nil and Part:findFirstChild("RocketPropulsion") ~= nil then
  1485. Part.Anchored = true
  1486. if Part:findFirstChild("Mesh") ~= nil then
  1487. z = Part:findFirstChild("Mesh")
  1488. for i = 1,5 do
  1489. z.Scale = z.Scale + Vector3.new(1,1,1)
  1490. wait(0.05)
  1491. end
  1492. end
  1493. end
  1494. end
  1495.  
  1496. function trappedTorsos:isTrapped(t)
  1497. for nildata, index in next,self do
  1498. if index==t then
  1499. return true
  1500. end
  1501. end
  1502. return false
  1503. end
  1504.  
  1505. function trappedTorsos:Capture(hit)
  1506. if hit:isA'BasePart' then
  1507. if not trappedTorsos:isTrapped(hit) and not hit:IsDescendantOf(char) then
  1508. table.insert(trappedTorsos, hit)
  1509. hit.Anchored = true --trapped!
  1510. --print'trapped!'
  1511. end
  1512. end
  1513. end
  1514.  
  1515. function trappedTorsos:Release()
  1516. for i,v in next, self do
  1517. if type(v)=='userdata' then
  1518. if v:isA('BasePart') then
  1519. v.Anchored = false
  1520. self[i] = nil
  1521. end
  1522. end
  1523. end
  1524. end
  1525.  
  1526. --Za Warudo
  1527. Attacking = false
  1528. WasOn = true
  1529. function TheWorld(Mode)
  1530. if Mode == "Time Stop" then
  1531. noRig = true
  1532. Attacking = true
  1533. if WasOn == true and StandOn == false then
  1534. StandOn = true
  1535. WasOn = false
  1536. end
  1537. hum.WalkSpeed = 0
  1538. for i = 1,30 do
  1539. runKF(hesp2)
  1540. runKF(tosp2)
  1541. runKF(lasp2)
  1542. runKF(rasp2)
  1543. runKF(llsp2)
  1544. runKF(rlsp2)
  1545. runKF(hesp3)
  1546. runKF(tosp3)
  1547. runKF(lasp3)
  1548. runKF(rasp3)
  1549. runKF(llsp3)
  1550. runKF(rlsp3)
  1551. wait()
  1552. end
  1553. wait()
  1554. local ZAWARUDO = Instance.new("Sound",tor)
  1555. ZAWARUDO.SoundId = "rbxassetid://588697034"
  1556. ZAWARUDO.Volume = .5
  1557. ZAWARUDO.Looped = false
  1558. ZAWARUDO:Play()
  1559. local AreaOfEffect = Instance.new("Part",char)
  1560. AreaOfEffect.Position = tor.Position
  1561. AreaOfEffect.Size = Vector3.new(0.01,0.01,0.01)
  1562. AreaOfEffect.Anchored = true
  1563. AreaOfEffect.CanCollide = false
  1564. AreaOfEffect.BrickColor = BrickColor.new("Bright yellow")
  1565. AreaOfEffect.Transparency = 0.9
  1566. AreaOfEffect.Shape = "Ball"
  1567. AreaOfEffect.Material = "Neon"
  1568.  
  1569. for i = 1,10 do
  1570. runKF(hesp4)
  1571. runKF(tosp4)
  1572. runKF(lasp4)
  1573. runKF(rasp4)
  1574. runKF(llsp4)
  1575. runKF(rlsp4)
  1576. wait()
  1577. end
  1578. for i = 1,10 do
  1579. AreaOfEffect.Size = AreaOfEffect.Size + Vector3.new(4.1,4.1,4.1)
  1580. AreaOfEffect.CFrame = char.Torso.CFrame
  1581. wait()
  1582. end
  1583. coroutine.wrap(function()
  1584. do local me={}
  1585.  
  1586. me.plrs = game:service'Workspace':children''
  1587.  
  1588. function me:getNear(mag)
  1589. local rtn = {}
  1590.  
  1591. for k,v in next,me.plrs do
  1592. local chxr = v
  1593.  
  1594. if chxr then
  1595. if chxr:findFirstChild'Torso' then
  1596. local pos = (chxr.Torso.Position-tor.Position).magnitude
  1597.  
  1598. if pos<=mag then
  1599. for a,b in pairs(chxr:children()) do
  1600. if b:IsA("BasePart") then
  1601. table.insert(rtn, b)
  1602. end
  1603. end
  1604. end
  1605. end
  1606. end
  1607. end
  1608. return rtn
  1609. end
  1610.  
  1611. for no, torso in ipairs(me:getNear(25)) do
  1612. --print(torso:GetFullName())
  1613. --print(torso:GetFullName())
  1614. trappedTorsos:Capture(torso)
  1615. end
  1616.  
  1617.  
  1618. end
  1619. end)()
  1620. AreaOfEffect:Destroy()
  1621. workspace.Gravity = 70
  1622. for i,v in pairs(char:children()) do
  1623. if v:IsA("Part") then
  1624. v.Anchored = false
  1625. end
  1626. if v:IsA("Accessory") then
  1627. v.Handle.Anchored = false
  1628. end
  1629. end
  1630. for i,v in pairs(pchar:children()) do
  1631. if v:IsA("Part") then
  1632. v.Anchored = false
  1633. end
  1634. if v:IsA("Accessory") then
  1635. v.Handle.Anchored = false
  1636. end
  1637. end
  1638. if WasOn == false then
  1639. StandOn = false
  1640. WasOn = true
  1641. end
  1642. hum.WalkSpeed = 24
  1643. noRig = false
  1644. Attacking = false
  1645. end
  1646. if Mode == "World Time Stop" then
  1647. noRig = true
  1648. Attacking = true
  1649. if WasOn == true and StandOn == false then
  1650. StandOn = true
  1651. WasOn = false
  1652. end
  1653. hum.WalkSpeed = 0
  1654. for i = 1,30 do
  1655. runKF(hesp2)
  1656. runKF(tosp2)
  1657. runKF(lasp2)
  1658. runKF(rasp2)
  1659. runKF(llsp2)
  1660. runKF(rlsp2)
  1661. runKF(hesp3)
  1662. runKF(tosp3)
  1663. runKF(lasp3)
  1664. runKF(rasp3)
  1665. runKF(llsp3)
  1666. runKF(rlsp3)
  1667. wait()
  1668. end
  1669. wait()
  1670. local ZAWARUDO = Instance.new("Sound",tor)
  1671. ZAWARUDO.SoundId = "rbxassetid://588697034"
  1672. ZAWARUDO.Volume = .5
  1673. ZAWARUDO.Looped = false
  1674. ZAWARUDO:Play()
  1675. local AreaOfEffect = Instance.new("Part",char)
  1676. AreaOfEffect.Position = tor.Position
  1677. AreaOfEffect.Size = Vector3.new(0.01,0.01,0.01)
  1678. AreaOfEffect.Anchored = true
  1679. AreaOfEffect.CanCollide = false
  1680. AreaOfEffect.BrickColor = BrickColor.new("Bright yellow")
  1681. AreaOfEffect.Transparency = 0.9
  1682. AreaOfEffect.Shape = "Ball"
  1683. AreaOfEffect.Material = "Neon"
  1684.  
  1685. for i = 1,10 do
  1686. runKF(hesp4)
  1687. runKF(tosp4)
  1688. runKF(lasp4)
  1689. runKF(rasp4)
  1690. runKF(llsp4)
  1691. runKF(rlsp4)
  1692. wait()
  1693. end
  1694. for i = 1,10 do
  1695. AreaOfEffect.Size = AreaOfEffect.Size + Vector3.new(4.1,4.1,4.1)
  1696. AreaOfEffect.CFrame = char.Torso.CFrame
  1697. wait()
  1698. end
  1699. coroutine.wrap(function()
  1700. do local me={}
  1701.  
  1702. me.plrs = game:service'Workspace':children''
  1703.  
  1704. function me:getNear(mag)
  1705. local rtn = {}
  1706.  
  1707. for k,v in next,me.plrs do
  1708. local chxr = v
  1709.  
  1710. if chxr then
  1711. if chxr:findFirstChild'Torso' then
  1712. local pos = (chxr.Torso.Position-tor.Position).magnitude
  1713.  
  1714. if pos<=mag then
  1715. for a,b in pairs(chxr:children()) do
  1716. if b:IsA("BasePart") then
  1717. table.insert(rtn, b)
  1718. end
  1719. end
  1720. end
  1721. end
  1722. end
  1723. end
  1724. return rtn
  1725. end
  1726.  
  1727. for no, torso in ipairs(me:getNear(5555)) do
  1728. --print(torso:GetFullName())
  1729. --print(torso:GetFullName())
  1730. trappedTorsos:Capture(torso)
  1731. end
  1732.  
  1733.  
  1734. end
  1735. end)()
  1736. AreaOfEffect:Destroy()
  1737. workspace.Gravity = 70
  1738. for i,v in pairs(char:children()) do
  1739. if v:IsA("Part") then
  1740. v.Anchored = false
  1741. end
  1742. if v:IsA("Accessory") then
  1743. v.Handle.Anchored = false
  1744. end
  1745. end
  1746. for i,v in pairs(pchar:children()) do
  1747. if v:IsA("Part") then
  1748. v.Anchored = false
  1749. end
  1750. if v:IsA("Accessory") then
  1751. v.Handle.Anchored = false
  1752. end
  1753. end
  1754. if WasOn == false then
  1755. StandOn = false
  1756. WasOn = true
  1757. end
  1758. hum.WalkSpeed = 24
  1759. noRig = false
  1760. Attacking = false
  1761. end
  1762. if Mode == "Time Start" then
  1763. local Toki = Instance.new("Sound",tor)
  1764. Toki.SoundId = "rbxassetid://588718542"
  1765. Toki.Volume = 1
  1766. Toki.Looped = false
  1767. Toki:Play()
  1768. local AreaOfEffect2 = Instance.new("Part",tor)
  1769. AreaOfEffect2.Position = tor.Position
  1770. AreaOfEffect2.Size = Vector3.new(0.01,0.01,0.01)
  1771. AreaOfEffect2.Anchored = true
  1772. AreaOfEffect2.CanCollide = false
  1773. AreaOfEffect2.Transparency = 1
  1774. AreaOfEffect2.BrickColor = BrickColor.new("Bright yellow")
  1775. AreaOfEffect2.Transparency = 0.99
  1776. AreaOfEffect2.Shape = "Ball"
  1777. AreaOfEffect2.Material = "Neon"
  1778. AreaOfEffect2.Touched:connect(function(hit)
  1779. if hit ~= "Base" then
  1780. --hit.Anchored = false
  1781. end
  1782. end)
  1783. for i = 1,10 do
  1784. AreaOfEffect2.Size = AreaOfEffect2.Size + Vector3.new(4.1,4.1,4.1)
  1785. AreaOfEffect2.CFrame = char.Torso.CFrame
  1786. wait()
  1787. end
  1788. trappedTorsos:Release()
  1789. AreaOfEffect2:Destroy()
  1790. TfwTimeStopped = false
  1791. workspace.Gravity = 196.2
  1792. end
  1793. if Mode == "Wry" then
  1794. local WWRRRYYYYY = Instance.new("Sound",tor)
  1795. WWRRRYYYYY.SoundId = "rbxassetid://684175604"
  1796. WWRRRYYYYY.Volume = 1
  1797. WWRRRYYYYY.Looped = false
  1798. WWRRRYYYYY:Play()
  1799. end
  1800. end
  1801.  
  1802. Rapid = false
  1803. TimeStopped = false
  1804. OneSecond = false
  1805. Cha = char
  1806. Character = char
  1807. it=Instance.new
  1808. vt=Vector3.new
  1809. cn=CFrame.new
  1810. euler=CFrame.fromEulerAnglesXYZ
  1811. angles=CFrame.Angles
  1812. RootPart = hrp
  1813. mouse.KeyDown:connect(function(key)
  1814.  
  1815.  
  1816. if key == "f" then
  1817. if StandOn then
  1818. StandOn = false
  1819. else
  1820. StandOn = true
  1821. TheWorld("Wry")
  1822. end
  1823. end
  1824.  
  1825. if key == "v" then
  1826. Rapid = true
  1827. local ORA = Instance.new("Sound",char)
  1828. ORA.SoundId = "rbxassetid://462996531"
  1829. ORA.Volume = .4
  1830. ORA.Looped = true
  1831. ORA:Play()
  1832. Attacking = true
  1833. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,-3,-5,math.random(0,0),"[The Revenant]",RootPart,.2,1) end)
  1834. con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,-5,-3,math.random(0,0),"[The Revenant]",RootPart,.2,1) end)
  1835. while Rapid == true do
  1836. for i = 1, 3 do
  1837. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1838. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1839. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1840. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1841. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1842. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1843. wait()
  1844. end
  1845. for i = 1, 3 do
  1846. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1847. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1848. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1849. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1850. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1851. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1852. wait()
  1853. end
  1854. for i = 1, 3 do
  1855. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1856. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
  1857. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1858. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1859. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1860. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1861. wait()
  1862. end
  1863. for i = 1, 3 do
  1864. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1865. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1866. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1867. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1868. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1869. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1870. wait()
  1871. end
  1872. end
  1873. con1:disconnect()
  1874. con2:disconnect()
  1875. local MIDORA = Instance.new("Sound",char)
  1876. MIDORA.SoundId = "rbxassetid://588698460"
  1877. MIDORA.Looped = false
  1878. MIDORA.Volume = .4
  1879. MIDORA:Play()
  1880. ORA:Stop()
  1881. Attacking = false
  1882. end
  1883. if key == "e" then
  1884. if StandOn == true then
  1885. Rapid = true
  1886. local ORA = Instance.new("Sound",char)
  1887. ORA.SoundId = "rbxassetid://462996531"
  1888. ORA.Volume = .4
  1889. ORA.Looped = true
  1890. ORA:Play()
  1891. Attacking = true
  1892. con1 = ram2.Touched:connect(function(hit) Damagefunc(torso,hit,3,5,math.random(0,0),"Normal",RootPart,.2,1) end)
  1893. con2 = lam2.Touched:connect(function(hit) Damagefunc(torso,hit,3,5,math.random(0,0),"Normal",RootPart,.2,1) end)
  1894. while Rapid == true do
  1895. for i = 1, 3 do
  1896. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1897. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1898. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1899. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1900. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1901. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1902. wait()
  1903. end
  1904. for i = 1, 3 do
  1905. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1906. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1907. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1908. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1909. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1910. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1911. wait()
  1912. end
  1913. for i = 1, 3 do
  1914. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1915. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
  1916. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1917. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1918. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1919. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1920. wait()
  1921. end
  1922. for i = 1, 3 do
  1923. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1924. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1925. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1926. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1927. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1928. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1929. wait()
  1930. end
  1931. end
  1932. con1:disconnect()
  1933. con2:disconnect()
  1934. local MIDORA = Instance.new("Sound",char)
  1935. MIDORA.SoundId = "rbxassetid://588698460"
  1936. MIDORA.Looped = false
  1937. MIDORA.Volume = .4
  1938. MIDORA:Play()
  1939. ORA:Stop()
  1940. Attacking = false
  1941. elseif StandOn == false then
  1942. Rapid = true
  1943. local ORA = Instance.new("Sound",char)
  1944. ORA.SoundId = "rbxassetid://462996531"
  1945. ORA.Volume = .4
  1946. ORA.Looped = true
  1947. ORA:Play()
  1948. con1 = ram.Touched:connect(function(hit) Damagefunc(torso,hit,3,5,math.random(0,0),"Normal",RootPart,.2,1) end)
  1949. con2 = lam.Touched:connect(function(hit) Damagefunc(torso,hit,3,5,math.random(0,0),"Normal",RootPart,.2,1) end)
  1950. while Rapid == true do
  1951. for i = 1, 3 do
  1952. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1953. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  1954. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1955. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1956. llw.C0 = RLerp(llw.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1957. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1958. wait()
  1959. end
  1960. for i = 1, 3 do
  1961. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1962. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1963. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1964. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1965. llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1966. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1967. wait()
  1968. end
  1969. for i = 1, 3 do
  1970. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  1971. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 1.7)
  1972. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  1973. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  1974. llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  1975. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  1976. wait()
  1977. end
  1978. for i = 1, 3 do
  1979. raw.C0 = RLerp(raw.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(0),math.rad(-50)), 1.7)
  1980. law.C0 = RLerp(law.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(math.random(-20,20)),math.rad(-20)), 1.7)
  1981. hew.C0 = RLerp(hew.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 1.3)
  1982. tow.C0 = RLerp(tow.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 1.3)
  1983. llw.C0 = RLerp(llw.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 1.3)
  1984. rlw.C0 = RLerp(rlw.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 1.3)
  1985. wait()
  1986. end
  1987. end
  1988. con1:disconnect()
  1989. con2:disconnect()
  1990. local MIDORA = Instance.new("Sound",char)
  1991. MIDORA.SoundId = "rbxassetid://588698460"
  1992. MIDORA.Volume = .4
  1993. MIDORA.Looped = false
  1994. MIDORA:Play()
  1995. ORA:Stop()
  1996. end
  1997. end
  1998. if key == "r" and Attacking == false then
  1999. con1 = ram2.Touched:connect(function(hit)
  2000. Damagefunc(torso,hit,5,15,math.random(30,50),"[]",RootPart,.2,1)
  2001. end)
  2002. Attacking = true
  2003. for i = 1, 3 do
  2004. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  2005. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  2006. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  2007. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  2008. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  2009. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  2010. wait()
  2011. end
  2012. local MIDORA = Instance.new("Sound",char)
  2013. MIDORA.SoundId = "rbxassetid://588698460"
  2014. MIDORA.Volume = .4
  2015. MIDORA.Looped = false
  2016. MIDORA:Play()
  2017. wait(1)
  2018. con1:disconnect()
  2019. Attacking = false
  2020. end
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026. if key == "g" and Attacking == false then
  2027. con1 = ram2.Touched:connect(function(hit)
  2028. Damagefunc(torso,hit,6,16,math.random(30,50),"[]",RootPart,.2,1)
  2029. end)
  2030. Attacking = true
  2031. for i = 1, 3 do
  2032. raw2.C0 = RLerp(raw2.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(math.random(60,90)),math.rad(math.random(-20,20)),math.rad(20)), 1.7)
  2033. law2.C0 = RLerp(law2.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 1.7)
  2034. hew2.C0 = RLerp(hew2.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 1.3)
  2035. tow2.C0 = RLerp(tow2.C0, CFrame.new(0, -1, -8) * CFrame.Angles(math.rad(0), math.rad(50), 0), 1.3)
  2036. llw2.C0 = RLerp(llw2.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 1.3)
  2037. rlw2.C0 = RLerp(rlw2.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 1.3)
  2038. wait()
  2039. end
  2040. local MIDORA = Instance.new("Sound",char)
  2041. MIDORA.SoundId = "rbxassetid://588698460"
  2042. MIDORA.Volume = .4
  2043. MIDORA.Looped = false
  2044. MIDORA:Play()
  2045. wait(1)
  2046. con1:disconnect()
  2047. Attacking = false
  2048. end
  2049. end)
  2050.  
  2051. mouse.KeyUp:connect(function(key)
  2052. if key == "e" and Rapid == true or key == "v" and Rapid == true then
  2053. Rapid = false
  2054. end
  2055. end)
  2056.  
  2057.  
  2058. pchar["Body Colors"].HeadColor = BrickColor.new("Mauve")
  2059. pchar["Body Colors"].TorsoColor = BrickColor.new("Mauve")
  2060. pchar["Body Colors"].LeftArmColor = BrickColor.new("Mauve")
  2061. pchar["Body Colors"].RightArmColor = BrickColor.new("Mauve")
  2062. pchar["Body Colors"].LeftLegColor = BrickColor.new("Mauve")
  2063. pchar["Body Colors"].RightLegColor = BrickColor.new("Mauve")
  2064.  
  2065. -------------------------------Sprint
  2066. mouse.KeyDown:connect(function(key)
  2067. if string.byte(key) == 60 then
  2068. hum.WalkSpeed = 60
  2069. end
  2070. end)
  2071. mouse.KeyUp:connect(function(key)
  2072. if string.byte(key) == 60 then
  2073. hum.WalkSpeed=24
  2074. end
  2075. end)
  2076. -------------------------------------
  2077. hum.FreeFalling:connect(function(f)
  2078. if f then
  2079. ffing=true
  2080. else
  2081. ffing=false
  2082. end
  2083. end)
  2084. StandOn = false
  2085. local hrprv=0
  2086. angle = 0
  2087. angle2 = 0
  2088. angle3 = 0
  2089. anglespeed = 2
  2090. anglespeed2 = 1
  2091.  
  2092. anglespeed3 = .4
  2093. MyHealth = hum.Health
  2094. MyMaxHealth = hum.MaxHealth
  2095. MyMaxHealth = humane.Health
  2096. MyHealth = humane.Health
  2097. humane.Name = "The Worldo"
  2098. game:GetService("RunService").Stepped:connect(function()
  2099. angle = ((angle % 100) + anglespeed/10)
  2100. angle2 = ((angle2 % 100) + anglespeed2/10)
  2101. angle3 = ((angle3 % 100) + anglespeed3/10)
  2102. hrprv=Tween(hrprv,hrp.RotVelocity.Y,0.4)
  2103. sine=sine+1
  2104. if StandOn == false then
  2105. for i,v in pairs(pchar:children()) do
  2106. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  2107. v.Transparency = 1
  2108. end
  2109. end
  2110. pchar.Aura.Charge.Texture = "http://www.roblox.com/asset/?id=0"
  2111. for i,v in pairs(Hat:children()) do
  2112. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  2113. v.Transparency = 1
  2114. end
  2115. end
  2116. for i,v in pairs(Hat2:children()) do
  2117. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  2118. v.Transparency = 1
  2119. end
  2120. end
  2121.  
  2122. pchar.Head.face.Texture = 'rbxassetid://0'
  2123. elseif StandOn == true then
  2124. for i,v in pairs(pchar:children()) do
  2125. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  2126. v.Transparency = 0
  2127. end
  2128. end
  2129. pchar.Aura.Charge.Texture = "http://www.roblox.com/asset/?id=670192269"
  2130. for i,v in pairs(Hat:children()) do
  2131. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  2132. v.Transparency = 0
  2133. end
  2134. end
  2135. for i,v in pairs(Hat2:children()) do
  2136. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  2137. v.Transparency = 0
  2138. end
  2139. end
  2140. pchar.Head.face.Texture = 'rbxassetid://392873276'
  2141. end
  2142.  
  2143. MyHealth = humane.Health
  2144. humane.Health = MyHealth
  2145. if hum.Sit==true then
  2146. animpose="Sitting"
  2147. elseif ffing==true then
  2148. animpose="Freefalling"
  2149. elseif (hrp.Velocity*Vn(1,0,1)).magnitude<2 then
  2150. animpose="Idle"
  2151. elseif (hrp.Velocity*Vn(1,0,1)).magnitude<20 then
  2152. animpose="Walking"
  2153. elseif (hrp.Velocity*Vn(1,0,1)).magnitude>20 then
  2154. animpose="Sprinting"
  2155. end
  2156. if Attacking == false then
  2157. torso.CFrame = hrp.CFrame*CFrame.new(0,0,2)
  2158. runKF(heid2)
  2159. runKF(toid2)
  2160. runKF(laid2)
  2161. runKF(raid2)
  2162. runKF(llid2)
  2163. runKF(rlid2)
  2164. end
  2165. if noRig==false then
  2166. if animpose=="Idle" then
  2167. runKF(heid)
  2168. runKF(toid)
  2169. runKF(laid)
  2170. runKF(raid)
  2171. runKF(llid)
  2172. runKF(rlid)
  2173. elseif animpose=="Walking" then
  2174. runKF(hewk)
  2175. runKF(towk)
  2176. runKF(lawk)
  2177. runKF(rawk)
  2178. runKF(llwk)
  2179. runKF(rlwk)
  2180. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/25),0.4)
  2181. --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/25),0.4)
  2182. ---llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/25),0.4)
  2183. elseif animpose=="Sprinting" then
  2184. runKF(hesp)
  2185. runKF(tosp)
  2186. runKF(lasp)
  2187. runKF(rasp)
  2188. runKF(llsp)
  2189. runKF(rlsp)
  2190. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
  2191. --rlw.C0=rlw.C0:lerp(rlw.C0*CA(0,0,-hrprv/10),0.4)
  2192. --llw.C0=llw.C0:lerp(llw.C0*CA(0,0,-hrprv/10),0.4)
  2193. elseif animpose=="Freefalling" then
  2194. runKF(heff)
  2195. runKF(toff)
  2196. runKF(laff)
  2197. runKF(raff)
  2198. runKF(llff)
  2199. runKF(rlff)
  2200. --tow.C0=tow.C0:lerp(tow.C0*CA(0,0,hrprv/10),0.4)
  2201. end
  2202. end
  2203. end)
  2204. LerpTo = { -- this is where your lerp stuff would go if you had more than one arm to lerp
  2205.  
  2206.  
  2207.  
  2208.  
  2209. RightArm = CFrame.new(1,0.5,0);
  2210.  
  2211.  
  2212.  
  2213.  
  2214. LeftArm = CFrame.new(-1,0.5,0);
  2215.  
  2216.  
  2217.  
  2218.  
  2219. LeftLeg = CFrame.new(-0.5,-0.5,0);
  2220.  
  2221.  
  2222.  
  2223.  
  2224. RightLeg = CFrame.new(0.5,-0.5,0);
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232. Body = CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),0,math.rad(0));
  2233.  
  2234.  
  2235.  
  2236.  
  2237. Head = CFrame.new(0,1.5,0);
  2238.  
  2239.  
  2240.  
  2241.  
  2242. }
Advertisement
Add Comment
Please, Sign In to add comment