Advertisement
sneakydodge123

diamond

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