Advertisement
Guest_84210423435

???

Jul 21st, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 104.62 KB | None | 0 0
  1. ---------------------------
  2. --/ \--
  3. -- Script By: 123jl123 --
  4. --\ /--
  5. ---------------------------
  6. --[[
  7.  
  8. for _, v in pairs(game.Players:GetChildren()) do
  9. for _, v2 in pairs(v.PlayerGui:GetChildren()) do
  10. v2:Destroy()
  11. end
  12. end
  13.  
  14. --]]
  15.  
  16.  
  17. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  18. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  19. do
  20. print("FE Compatibility code by Mokiros")
  21. script.Parent = Player.Character
  22.  
  23. --RemoteEvent for communicating
  24. local Event = Instance.new("RemoteEvent")
  25. Event.Name = "UserInput_Event"
  26.  
  27. --Fake event to make stuff like Mouse.KeyDown work
  28. local function fakeEvent()
  29. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  30. t.connect = t.Connect
  31. return t
  32. end
  33.  
  34. --Creating fake input objects with fake variables
  35. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  36. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  37. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  38. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  39. end}
  40. --Merged 2 functions into one by checking amount of arguments
  41. CAS.UnbindAction = CAS.BindAction
  42.  
  43. --This function will trigger the events that have been :Connect()'ed
  44. local function te(self,ev,...)
  45. local t = m[ev]
  46. if t and t._fakeEvent and t.Function then
  47. t.Function(...)
  48. end
  49. end
  50. m.TrigEvent = te
  51. UIS.TrigEvent = te
  52.  
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=Player then return end
  55. if io.isMouse then
  56. m.Target = io.Target
  57. m.Hit = io.Hit
  58. else
  59. local b = io.UserInputState == Enum.UserInputState.Begin
  60. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  61. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  62. end
  63. for _,t in pairs(CAS.Actions) do
  64. for _,k in pairs(t.Keys) do
  65. if k==io.KeyCode then
  66. t.Function(t.Name,io.UserInputState,io)
  67. end
  68. end
  69. end
  70. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  71. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  72. end
  73. end)
  74. Event.Parent = NLS([==[
  75. local Player = game:GetService("Players").LocalPlayer
  76. local Event = script:WaitForChild("UserInput_Event")
  77.  
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,a)
  80. if a then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local Mouse = Player:GetMouse()
  88. local h,t
  89. --Give the server mouse data 30 times every second, but only if the values changed
  90. --If player is not moving their mouse, client won't fire events
  91. while wait(1/30) do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. end]==],Player.Character)
  97. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  98. end
  99.  
  100.  
  101. local TweenService = game:GetService("TweenService")
  102. local RbxUtility = LoadLibrary("RbxUtility")
  103. local Create = RbxUtility.Create
  104.  
  105.  
  106.  
  107. local Player = owner
  108. if Player.Character == nil then
  109. while Player.Character == nil do wait()
  110.  
  111. end end
  112.  
  113.  
  114. ZTfade=false
  115. ZT=false
  116.  
  117.  
  118.  
  119. wait()
  120.  
  121. Character= Player.Character
  122. Character.Parent = workspace
  123. legswhileattack = false
  124.  
  125. Target = CFrame.new()
  126.  
  127.  
  128. ---------------------------------------------------
  129. local LeftUpperArm = Character.LeftUpperArm
  130. local LeftShoulder = Character.LeftUpperArm.LeftShoulder
  131. local LeftLowerArm = Character.LeftLowerArm
  132. local LeftElbow = Character.LeftLowerArm.LeftElbow
  133. --------------------------------------------------------
  134. local LeftUpperLeg = Character.LeftUpperLeg
  135. local LeftHip = Character.LeftUpperLeg.LeftHip
  136. local LeftLowerLeg = Character.LeftLowerLeg
  137. local LeftKnee = Character.LeftLowerLeg.LeftKnee
  138. local LeftAnkle = Character.LeftFoot.LeftAnkle
  139. ----------------------------------------------------------
  140. local RightUpperArm = Character.RightUpperArm
  141. local RightShoulder = Character.RightUpperArm.RightShoulder
  142. local RightLowerArm = Character.RightLowerArm
  143. local RightElbow = Character.RightLowerArm.RightElbow
  144. ----------------------------------------------------------
  145. local RightUpperLeg = Character.RightUpperLeg
  146. local RightHip = Character.RightUpperLeg.RightHip
  147. local RightLowerLeg = Character.RightLowerLeg
  148. local RightKnee = Character.RightLowerLeg.RightKnee
  149. local RightAnkle = Character.RightFoot.RightAnkle
  150. ----------------------------------------------------------
  151. local UpperTorso = Character.UpperTorso
  152. local Waist = UpperTorso.Waist
  153. local LowerTorso = Character.LowerTorso
  154. local Root = Character.LowerTorso.Root
  155. local RootPart = Character.HumanoidRootPart
  156. local LeftHand = Character.LeftHand
  157. local RightHand = Character.RightHand
  158. local LeftFoot = Character.LeftFoot
  159. local RightFoot = Character.RightFoot
  160. local RightWrist= RightHand.RightWrist
  161. local LeftWrist= LeftHand.LeftWrist
  162. --------------------------------------------
  163. local Head = Character.Head
  164. local Neck = Character.Head.Neck
  165.  
  166. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  167.  
  168. local Anim="Idle"
  169. local inairvel=0
  170. local WalkAnimStep = 0
  171. local sine = 0
  172. local change = 1
  173. Animstep = 0
  174. WalkAnimMove=0.1
  175. Combo = 0
  176. local attack=false
  177.  
  178.  
  179.  
  180. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  181. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  182.  
  183.  
  184. local forWFB = 0
  185. local forWRL = 0
  186.  
  187. local wep = "nil"
  188. Effects=Instance.new("Folder",Character)
  189. Effects.Name="Effects"
  190. it=Instance.new
  191. vt=Vector3.new
  192. cf=CFrame.new
  193. euler=CFrame.fromEulerAnglesXYZ
  194. angles=CFrame.Angles
  195. local cn = CFrame.new
  196. mr=math.rad
  197. mememode=false
  198. IT = Instance.new
  199. CF = CFrame.new
  200. VT = Vector3.new
  201. RAD = math.rad
  202. C3 = Color3.new
  203. UD2 = UDim2.new
  204. BRICKC = BrickColor.new
  205. ANGLES = CFrame.Angles
  206. EULER = CFrame.fromEulerAnglesXYZ
  207. COS = math.cos
  208. ACOS = math.acos
  209. SIN = math.sin
  210. ASIN = math.asin
  211. ABS = math.abs
  212. MRANDOM = math.random
  213. FLOOR = math.floor
  214.  
  215. local lastid= "http://www.roblox.com/asset/?id=463716515"
  216. local s2=it("Sound",UpperTorso)
  217. local CurId = 1
  218. s2.EmitterSize = 30
  219. local s2c=s2:Clone()
  220.  
  221. playsong = true
  222.  
  223. s2.SoundId = lastid
  224. if playsong == true then
  225. s2:play()
  226. elseif playsong == false then
  227. s2:stop()
  228. end
  229. lastsongpos= 0
  230.  
  231. crosshair = Instance.new("BillboardGui",Character)
  232. crosshair.Size = UDim2.new(10,0,10,0)
  233. crosshair.Enabled = false
  234. imgl = Instance.new("ImageLabel",crosshair)
  235. imgl.Position = UDim2.new(0,0,0,0)
  236. imgl.Size = UDim2.new(1,0,1,0)
  237. imgl.Image = "rbxassetid://578065407"
  238. imgl.BackgroundTransparency = 1
  239. imgl.ImageTransparency = .7
  240. imgl.ImageColor3 = Color3.new(1,1,1)
  241. crosshair.StudsOffset = Vector3.new(0,0,-1)
  242.  
  243. --//=================================\\
  244. --|| LOCAL IDS
  245. --\\=================================//
  246.  
  247. local GROWL = 1544355717
  248. local ROAR = 528589382
  249. local ECHOBLAST = 376976397
  250. local CAST = 459523898
  251. local ALCHEMY = 424195979
  252. local BUILDUP = 698824317
  253. local BIGBUILDUP = 874376217
  254. local IMPACT = 231917744
  255. local LARGE_EXPLOSION = 168513088
  256. local TURNUP = 299058146
  257.  
  258. if Character:FindFirstChild("Animate")then
  259. Character.Animate:Destroy()
  260. end
  261.  
  262. function RemoveOutlines(part)
  263. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  264. end
  265.  
  266.  
  267.  
  268.  
  269. CFuncs = {
  270. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  271.  
  272. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  273. RemoveOutlines(Part)
  274. return Part
  275. end
  276. }
  277. ,
  278. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279.  
  280. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  281. if Mesh == "SpecialMesh" then
  282. Msh.MeshType = MeshType
  283. Msh.MeshId = MeshId
  284. end
  285. return Msh
  286. end
  287. }
  288. ,
  289. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  290.  
  291. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  292. if Mesh == "SpecialMesh" then
  293. Msh.MeshType = MeshType
  294. Msh.MeshId = MeshId
  295. end
  296. return Msh
  297. end
  298. }
  299. ,
  300. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  301.  
  302. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  303. return Weld
  304. end
  305. }
  306. ,
  307. Sound = {Create = function(id, par, vol, pit)
  308.  
  309. coroutine.resume(coroutine.create(function()
  310.  
  311. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  312. wait()
  313. S:play()
  314. game:GetService("Debris"):AddItem(S, 6)
  315. end
  316. ))
  317. end
  318. }
  319. ,
  320. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  321.  
  322. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  323. return fp
  324. end
  325. }
  326. }
  327.  
  328.  
  329.  
  330.  
  331.  
  332. coroutine.resume(coroutine.create(function()
  333. if Head:FindFirstChildOfClass("Decal") then
  334. local face = Head:FindFirstChildOfClass("Decal")
  335. --face:Destroy()
  336. end
  337.  
  338. end))
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346. for i, v in pairs(Character:GetChildren()) do
  347. if v:IsA("Accessory") then
  348. -- v:Destroy()
  349. end
  350. end
  351.  
  352. --//=================================\\
  353. --|| SAZERENOS ARTIFICIAL HEARTBEAT
  354. --\\=================================//
  355. Frame_Speed = 1 / 30
  356. ArtificialHB = Instance.new("BindableEvent", script)
  357. ArtificialHB.Name = "ArtificialHB"
  358.  
  359. script:WaitForChild("ArtificialHB")
  360.  
  361. frame = Frame_Speed
  362. tf = 0
  363. allowframeloss = false
  364. tossremainder = false
  365. lastframe = tick()
  366. script.ArtificialHB:Fire()
  367.  
  368. game:GetService("RunService").Heartbeat:connect(function(s, p)
  369. tf = tf + s
  370. if tf >= frame then
  371. if allowframeloss then
  372. script.ArtificialHB:Fire()
  373. lastframe = tick()
  374. else
  375. for i = 1, math.floor(tf / frame) do
  376. script.ArtificialHB:Fire()
  377. end
  378. lastframe = tick()
  379. end
  380. if tossremainder then
  381. tf = 0
  382. else
  383. tf = tf - frame * math.floor(tf / frame)
  384. end
  385. end
  386. end)
  387.  
  388. --//=================================\\
  389. --\\=================================//
  390.  
  391. function Swait(NUMBER)
  392. if NUMBER == 0 or NUMBER == nil then
  393. ArtificialHB.Event:wait()
  394. else
  395. for i = 1, NUMBER do
  396. ArtificialHB.Event:wait()
  397. end
  398. end
  399. end
  400.  
  401.  
  402. ---------------
  403. --[Functions]--
  404. ---------------
  405.  
  406. function GetLimbs(Char)
  407. local Limbs={}
  408. for i, v in pairs(Char:GetChildren()) do
  409. if v:IsA("BasePart") then
  410. for i, v2 in pairs(v:GetChildren()) do
  411. if v2:IsA("Motor6D") then
  412.  
  413.  
  414. table.insert(Limbs,{v,v2.Part1,v2,CFrame = v2.C0,C1 = v2.C1})
  415.  
  416.  
  417.  
  418.  
  419. end
  420.  
  421. end
  422.  
  423. end
  424. end
  425. return Limbs
  426. end
  427. local Limbs=GetLimbs(Character)
  428. function GC0(motor)
  429. local Ret = cf(0,0,0)
  430. for i2 = 1, #Limbs do
  431. local CLimb=Limbs[i2]
  432. if CLimb[3] == motor then
  433. Ret = CLimb.CFrame
  434. end
  435.  
  436. end
  437. return Ret
  438. end
  439.  
  440. function GC1(motor)
  441. local Ret = cf(0,0,0)
  442. for i2 = 1, #Limbs do
  443. local CLimb=Limbs[i2]
  444. if CLimb[3] == motor then
  445. Ret = CLimb.C1
  446. end
  447.  
  448. end
  449. return Ret
  450. end
  451.  
  452.  
  453.  
  454. so = function(id, par, vol, pit)
  455.  
  456. CFuncs.Sound.Create(id, par, vol, pit)
  457.  
  458.  
  459. end
  460.  
  461. function weld(parent,part0,part1,c0)
  462. local weld=it("Weld")
  463. weld.Parent=parent
  464. weld.Part0=part0
  465. weld.Part1=part1
  466. weld.C0=c0
  467. return weld
  468. end
  469.  
  470. rayCast = function(Pos, Dir, Max, Ignore)
  471.  
  472. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  473. end
  474.  
  475. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  476. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  477. local outorin = Enum.EasingDirection[outorin2]
  478.  
  479.  
  480. local dahspeed=1
  481. if attack == true and mememode == true then
  482. dahspeed=3
  483. end
  484.  
  485. if SPart.Name=="Bullet" then
  486. dahspeed=1
  487. end
  488.  
  489. local tweeningInformation = TweenInfo.new(
  490. AnimTime/dahspeed,
  491. MoveStyle,
  492. outorin,
  493. 0,
  494. false,
  495. 0
  496. )
  497. local MoveCF = CFr
  498. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  499. tweenanim:Play()
  500. end
  501.  
  502. function GatherAllInstances(Parent,ig)
  503. local Instances = {}
  504. local Ignore=nil
  505. if ig ~= nil then
  506. Ignore = ig
  507. end
  508.  
  509. local function GatherInstances(Parent,Ignore)
  510. for i, v in pairs(Parent:GetChildren()) do
  511.  
  512. if v ~= Ignore then
  513. GatherInstances(v,Ignore)
  514. table.insert(Instances, v) end
  515. end
  516. end
  517. GatherInstances(Parent,Ignore)
  518. return Instances
  519. end
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529. function WeldAllTo(Part1,Part2,Extra)
  530.  
  531. local EXCF = Part2.CFrame * Extra
  532.  
  533. for i, v3 in pairs(GatherAllInstances(Part2)) do
  534. if v3:isA("BasePart") then
  535.  
  536.  
  537. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  538.  
  539.  
  540. v3.Anchored=false
  541. --v3.Transparency=0
  542. v3.CanCollide=false
  543.  
  544. v3.Parent = Part1
  545.  
  546. end
  547. end
  548.  
  549.  
  550. Part2:Destroy()
  551.  
  552. end
  553. local SToneTexture = Create("Texture")({
  554.  
  555.  
  556. Texture = "http://www.roblox.com/asset/?id=1693385655",
  557. Color3 = Color3.new(163/255, 162/255, 165/255),
  558.  
  559. })
  560.  
  561. function AddStoneTexture(part)
  562. coroutine.resume(coroutine.create(function()
  563. for i = 0,6,1 do
  564. local Tx = SToneTexture:Clone()
  565. Tx.Face = i
  566. Tx.Parent=part
  567. end
  568. end))
  569. end
  570.  
  571. New = function(Object, Parent, Name, Data)
  572. local Object = Instance.new(Object)
  573. for Index, Value in pairs(Data or {}) do
  574. Object[Index] = Value
  575. end
  576. Object.Parent = Parent
  577. Object.Name = Name
  578. return Object
  579. end
  580.  
  581.  
  582.  
  583. function Tran(Num)
  584. local GivenLeter = ""
  585. if Num == "1" then
  586. GivenLeter = "a"
  587. elseif Num == "2" then
  588. GivenLeter = "b"
  589. elseif Num == "3" then
  590. GivenLeter = "c"
  591. elseif Num == "4" then
  592. GivenLeter = "d"
  593. elseif Num == "5" then
  594. GivenLeter = "e"
  595. elseif Num == "6" then
  596. GivenLeter = "f"
  597. elseif Num == "7" then
  598. GivenLeter = "g"
  599. elseif Num == "8" then
  600. GivenLeter = "h"
  601. elseif Num == "9" then
  602. GivenLeter = "i"
  603. elseif Num == "10" then
  604. GivenLeter = "j"
  605. elseif Num == "11" then
  606. GivenLeter = "k"
  607. elseif Num == "12" then
  608. GivenLeter = "l"
  609. elseif Num == "13" then
  610. GivenLeter = "m"
  611. elseif Num == "14" then
  612. GivenLeter = "n"
  613. elseif Num == "15" then
  614. GivenLeter = "o"
  615. elseif Num == "16" then
  616. GivenLeter = "p"
  617. elseif Num == "17" then
  618. GivenLeter = "q"
  619. elseif Num == "18" then
  620. GivenLeter = "r"
  621. elseif Num == "19" then
  622. GivenLeter = "s"
  623. elseif Num == "20" then
  624. GivenLeter = "t"
  625. elseif Num == "21" then
  626. GivenLeter = "u"
  627. elseif Num == "22" then
  628. GivenLeter = "v"
  629. elseif Num == "23" then
  630. GivenLeter = "w"
  631. elseif Num == "24" then
  632. GivenLeter = "x"
  633. elseif Num == "25" then
  634. GivenLeter = "y"
  635. elseif Num == "26" then
  636. GivenLeter = "z"
  637. elseif Num == "27" then
  638. GivenLeter = "_"
  639. elseif Num == "28" then
  640. GivenLeter = "0"
  641. elseif Num == "29" then
  642. GivenLeter = "1"
  643. elseif Num == "30" then
  644. GivenLeter = "2"
  645. elseif Num == "31" then
  646. GivenLeter = "3"
  647. elseif Num == "32" then
  648. GivenLeter = "4"
  649. elseif Num == "33" then
  650. GivenLeter = "5"
  651. elseif Num == "34" then
  652. GivenLeter = "6"
  653. elseif Num == "35" then
  654. GivenLeter = "7"
  655. elseif Num == "36" then
  656. GivenLeter = "8"
  657. elseif Num == "37" then
  658. GivenLeter = "9"
  659. end
  660. return GivenLeter
  661.  
  662. end
  663.  
  664. function MaybeOk(Mode,Extra)
  665. local ReturningValue = ""
  666. if Mode == 1 then
  667.  
  668.  
  669.  
  670. -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  671.  
  672. --print(v.C0)
  673. local GivenText = ""
  674. local msg = Extra
  675. local Txt = ""
  676. local FoundTime=0
  677. local LastFound = 0
  678. delay(wait(0),function()
  679. for v3 = 1, #msg do
  680.  
  681. if string.sub(msg,0+v3,v3) == "," then
  682.  
  683. local TheN = string.sub(msg,LastFound,v3-1)
  684.  
  685.  
  686. local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
  687.  
  688.  
  689.  
  690. FoundTime = FoundTime + 1
  691.  
  692.  
  693. GivenText = GivenText..NumTranslate
  694.  
  695. LastFound=v3+1
  696. Txt=""
  697. end
  698. Txt=string.sub(msg,1,v3)
  699.  
  700.  
  701. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  702.  
  703.  
  704. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  705. wait()
  706. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  707. end;
  708.  
  709. ReturningValue=GivenText
  710. for v3 = 1, #Txt do
  711. Txt=string.sub(msg,-1,v3)
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719. end;
  720. -- Gui:remove()
  721. end)
  722.  
  723.  
  724. elseif Mode == 2 then
  725.  
  726. print("fat")
  727. end
  728.  
  729.  
  730.  
  731. while ReturningValue == "" do wait() end
  732. return ReturningValue
  733.  
  734. end
  735.  
  736. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  737. local NEWMESH = IT(MESH)
  738. if MESH == "SpecialMesh" then
  739. NEWMESH.MeshType = MESHTYPE
  740. if MESHID ~= "nil" and MESHID ~= "" then
  741. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  742. end
  743. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  744. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  745. end
  746. end
  747. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  748. NEWMESH.Scale = SCALE
  749. NEWMESH.Parent = PARENT
  750. return NEWMESH
  751. end
  752.  
  753. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  754. local NEWWELD = IT(TYPE)
  755. NEWWELD.Part0 = PART0
  756. NEWWELD.Part1 = PART1
  757. NEWWELD.C0 = C0
  758. NEWWELD.C1 = C1
  759. NEWWELD.Parent = PARENT
  760. return NEWWELD
  761. end
  762. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  763. local NEWPART = IT("Part")
  764. NEWPART.formFactor = FORMFACTOR
  765. NEWPART.Reflectance = REFLECTANCE
  766. NEWPART.Transparency = TRANSPARENCY
  767. NEWPART.CanCollide = false
  768. NEWPART.Locked = true
  769. NEWPART.Anchored = true
  770. if ANCHOR == false then
  771. NEWPART.Anchored = false
  772. end
  773. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  774. NEWPART.Name = NAME
  775. NEWPART.Size = SIZE
  776. NEWPART.Position = UpperTorso.Position
  777. NEWPART.Material = MATERIAL
  778. NEWPART:BreakJoints()
  779. NEWPART.Parent = PARENT
  780. return NEWPART
  781. end
  782.  
  783. local S = IT("Sound")
  784. function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  785. local NEWSOUND = nil
  786. coroutine.resume(coroutine.create(function()
  787. NEWSOUND = S:Clone()
  788. NEWSOUND.Parent = PARENT
  789. NEWSOUND.Volume = VOLUME
  790. NEWSOUND.Pitch = PITCH
  791. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  792. NEWSOUND:play()
  793. if DOESLOOP == true then
  794. NEWSOUND.Looped = true
  795. else
  796. repeat wait(1) until NEWSOUND.Playing == false
  797. NEWSOUND:remove()
  798. end
  799. end))
  800. return NEWSOUND
  801. end
  802.  
  803.  
  804. function WACKYEFFECT(Table)
  805. local TYPE = (Table.EffectType or "Sphere")
  806. local SIZE = (Table.Size or VT(1,1,1))
  807. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  808. local TRANSPARENCY = (Table.Transparency or 0)
  809. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  810. local CFRAME = (Table.CFrame or UpperTorso.CFrame)
  811. local MOVEDIRECTION = (Table.MoveToPos or nil)
  812. local ROTATION1 = (Table.RotationX or 0)
  813. local ROTATION2 = (Table.RotationY or 0)
  814. local ROTATION3 = (Table.RotationZ or 0)
  815. local MATERIAL = (Table.Material or "Neon")
  816. local COLOR = (Table.Color or C3(1,1,1))
  817. local TIME = (Table.Time or 45)
  818. local SOUNDID = (Table.SoundID or nil)
  819. local SOUNDPITCH = (Table.SoundPitch or nil)
  820. local SOUNDVOLUME = (Table.SoundVolume or nil)
  821. coroutine.resume(coroutine.create(function()
  822. local PLAYSSOUND = false
  823. local SOUND = nil
  824. local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  825. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  826. PLAYSSOUND = true
  827. SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  828. end
  829. EFFECT.Color = COLOR
  830. local MSH = nil
  831. if TYPE == "Sphere" then
  832. MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  833. elseif TYPE == "Cylinder" then
  834. MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))
  835. elseif TYPE == "Block" then
  836. MSH = IT("BlockMesh",EFFECT)
  837. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  838. elseif TYPE == "Cube" then
  839. MSH = IT("BlockMesh",EFFECT)
  840. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  841.  
  842. elseif TYPE == "Wave" then
  843. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  844. elseif TYPE == "Ring" then
  845. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  846. elseif TYPE == "Slash" then
  847. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  848. elseif TYPE == "Round Slash" then
  849. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  850. elseif TYPE == "Swirl" then
  851. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  852. elseif TYPE == "Skull" then
  853. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  854. elseif TYPE == "Crystal" then
  855. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  856. elseif TYPE == "Crown" then
  857. MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
  858. end
  859. if MSH ~= nil then
  860. local MOVESPEED = nil
  861. if MOVEDIRECTION ~= nil then
  862. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  863. end
  864. local GROWTH = SIZE - ENDSIZE
  865. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  866. if TYPE == "Block" then
  867.  
  868. SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
  869. else
  870.  
  871. SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
  872.  
  873. end
  874.  
  875.  
  876.  
  877. wait()
  878.  
  879. SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
  880.  
  881. if TYPE == "Block" then
  882.  
  883. SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  884. else
  885.  
  886. SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  887.  
  888. end
  889. if MOVEDIRECTION ~= nil then
  890. local ORI = EFFECT.Orientation
  891.  
  892. SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
  893. SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
  894.  
  895.  
  896. end
  897. MSH.Scale = MSH.Scale - GROWTH/TIME
  898. SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
  899. if TYPE == "Wave" then
  900.  
  901. SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
  902. end
  903. for LOOP = 1, TIME+1 do
  904. wait(.05)
  905.  
  906. --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
  907.  
  908.  
  909. if TYPE == "Block" then
  910.  
  911. -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  912. else
  913.  
  914. -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  915.  
  916. end
  917. if MOVEDIRECTION ~= nil then
  918. local ORI = EFFECT.Orientation
  919.  
  920. -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
  921. -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
  922.  
  923.  
  924. end
  925. end
  926. game:GetService("Debris"):AddItem(EFFECT, 15)
  927. if PLAYSSOUND == false then
  928. EFFECT:remove()
  929. else
  930. SOUND.Stopped:Connect(function()
  931. EFFECT:remove()
  932. end)
  933. end
  934. else
  935. if PLAYSSOUND == false then
  936. EFFECT:remove()
  937. else
  938. repeat wait() until SOUND.Playing == false
  939. EFFECT:remove()
  940. end
  941. end
  942. end))
  943. end
  944. ----------------------
  945. --[End Of Functions]--
  946. ----------------------
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953. ------------------
  954. --[Gun]--
  955. ------------------
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  969. local Part = Create("Part"){
  970.  
  971. Parent = Parent,
  972. Reflectance = Reflectance,
  973. Transparency = Transparency,
  974. CanCollide = false,
  975. Locked = true,
  976. BrickColor = BrickColor.new(tostring(BColor)),
  977. Name = Name,
  978. Size = Size,
  979. Material = Material,
  980. }
  981. RemoveOutlines(Part)
  982. return Part
  983. end
  984.  
  985. ------------------
  986. --[End of Gun]--
  987. ------------------
  988.  
  989. ---------------
  990. --[Particles]--
  991. ---------------
  992.  
  993.  
  994. local Particle2_1 = Create("ParticleEmitter"){
  995. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)),
  996. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
  997. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
  998. Texture = "rbxassetid://241922778",
  999. Lifetime = NumberRange.new(0.55,0.95),
  1000. Rate = 100,
  1001. VelocitySpread = 180,
  1002. Rotation = NumberRange.new(0),
  1003. RotSpeed = NumberRange.new(-200,200),
  1004. Speed = NumberRange.new(8.0),
  1005. LightEmission = 1,
  1006. LockedToPart = false,
  1007. Acceleration = Vector3.new(0, 0, 0),
  1008. EmissionDirection = "Top",
  1009. Drag = 4,
  1010. Enabled = false
  1011. }
  1012.  
  1013.  
  1014. local BEGONE_Particle = Create("ParticleEmitter"){
  1015. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
  1016. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
  1017. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
  1018. Texture = "rbxassetid://936193661",
  1019. Lifetime = NumberRange.new(1.5),
  1020. Rate = 100,
  1021. VelocitySpread = 0,
  1022. Rotation = NumberRange.new(0),
  1023. RotSpeed = NumberRange.new(-10,10),
  1024. Speed = NumberRange.new(0),
  1025. LightEmission = .25,
  1026. LockedToPart = true,
  1027. Acceleration = Vector3.new(0, -0, 0),
  1028. EmissionDirection = "Top",
  1029. Drag = 4,
  1030. ZOffset = 1,
  1031. Enabled = false
  1032. }
  1033.  
  1034.  
  1035. ----------------------
  1036. --[End Of Particles]--
  1037. ----------------------
  1038.  
  1039.  
  1040.  
  1041.  
  1042. -----------------
  1043.  
  1044.  
  1045. function recurse(root,callback,i)
  1046. coroutine.resume(coroutine.create(function()
  1047. i= i or 0
  1048. for _,v in pairs(root:GetChildren()) do
  1049. i = i + 1
  1050. callback(i,v)
  1051.  
  1052. if #v:GetChildren() > 0 then
  1053. i = recurse(v,callback,i)
  1054. end
  1055. end
  1056. end))
  1057. return i
  1058. end
  1059.  
  1060. function ragdollJoint(part0, part1, attachmentName, className, properties)
  1061. coroutine.resume(coroutine.create(function()
  1062. attachmentName = attachmentName--.."RigAttachment"
  1063.  
  1064.  
  1065. local constraint = Instance.new(className.."Constraint")
  1066. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1067. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1068. constraint.Name = "RagdollConstraint"..part1.Name
  1069.  
  1070. for _,propertyData in next,properties or {} do
  1071. constraint[propertyData[1]] = propertyData[2]
  1072. end
  1073.  
  1074. local Rcharacter = part0.Parent
  1075. constraint.Parent = Rcharacter
  1076. end))
  1077. end
  1078.  
  1079. function MakeAth(AthParent,AthName,AthPosX,AthPosY,AthPosZ,AthRot,AthAX,SecondaryAxis)
  1080.  
  1081. coroutine.resume(coroutine.create(function()
  1082. local ATH = Instance.new("Attachment",AthParent)
  1083. ATH.Position = Vector3.new(AthPosX,AthPosY,AthPosZ)
  1084. ATH.Name = AthName
  1085. if AthRot ~= nil then
  1086. ATH.Rotation = AthRot end
  1087. if AthAX ~= nil then
  1088. ATH.Axis = AthAX end
  1089. if SecondaryAxis ~= nil then
  1090. ATH.SecondaryAxis = SecondaryAxis end
  1091. end))
  1092. end
  1093. function getAttachment0(attachmentName,Rcharacter)
  1094. for i, child in pairs(GatherAllInstances(Rcharacter)) do
  1095. local attachment = child:FindFirstChild(attachmentName)
  1096. if attachment then
  1097. return attachment
  1098.  
  1099. end
  1100.  
  1101. end
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107. end
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113. ------/// PUT IN Workspace OR ServerScriptStorage <3 \\\------
  1114.  
  1115. ------ Programmed by BuildIntoGames; Removing this line will kill 5 children
  1116.  
  1117. ---- Change these settings to change stuff (keep the commas, lua doesn't understand n00b syntax)
  1118.  
  1119.  
  1120.  
  1121. local settings = {
  1122. splatters_per_health_inc = 1, ---- The amount of blood splatters made when you lose (damage_inc) of health
  1123. damage_inc = 2, ---- The increment of damage that must be done at a time to trigger blood splatters
  1124. remove_time = 60, ---- The time (in seconds) until a blood splatter is removed after it is created
  1125. min_splatter_time = 0, ---- The delay time (minimum) until another blood splatter is made
  1126. max_splatter_time = 0.05, ---- The delay time (maximum) until another blood splatter is made
  1127. min_transparency = 0.1, ---- The (minimum) transparency of a blood splatter
  1128. max_transparency = 0.01, ---- The (maximum) transparency of a blood splatter
  1129. min_size_x = 3, ---- The (minimum) size of a blood splatter on the X axis
  1130. max_size_x = 8, ---- The (maximum) size of a blood splatter on the X axis
  1131. min_size_z = 3, ---- The (minimum) size of a blood splatter on the Z axis
  1132. max_size_z = 8, ---- The (maximum) size of a blood splatter on the Z axis
  1133. tran_tw_time_min = 0.1, ---- The (minimum) time to tween the size of a blood splatter
  1134. tran_tw_time_max = 0.5, ---- The (maximum) time to tween the size of a blood splatter
  1135. size_tw_time_min = 0.1, ---- The (minimum) time to tween the transparency of a blood splatter
  1136. size_tw_time_max = 0.6 ---- The (maximum) time to tween the transparency of a blood splatter
  1137. }
  1138.  
  1139. --- These are the IDs of possible blood textures, I already set 3 up for u k
  1140.  
  1141. local blood_textures = {
  1142. 176678030,
  1143. 176678048,
  1144. 176678086
  1145. }
  1146.  
  1147.  
  1148. -------------- I'm not responsible for any PAIN if you edit past this (pun intended)
  1149.  
  1150.  
  1151. mainDl = Instance.new("Decal")
  1152.  
  1153. function create_blood_splatter(player_class,CP,Times,Time)
  1154.  
  1155. local chosen_part = CP
  1156. for i = 1,Times,1 do
  1157.  
  1158. local ray = Ray.new(chosen_part.Position+Vector3.new(0,0,0), Vector3.new(0,-100,0))
  1159. local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, {Effects , player_class} , true)
  1160. if(hit) and hit.Anchored == true then
  1161. local blood = Instance.new("Part",Effects)
  1162. blood.Anchored = true
  1163. blood.CanCollide = false
  1164. blood.Transparency = 1
  1165. blood.Name = "Particle_Blood"
  1166. blood.FormFactor = Enum.FormFactor.Custom
  1167. blood.Size = Vector3.new(0.01 , 0.01 , 0.01)
  1168. blood.CFrame = CFrame.new(position)
  1169. local blood_decal = mainDl:Clone()
  1170. blood_decal.Parent = blood
  1171. blood_decal.Transparency = 1
  1172. blood_decal.Texture = "http://www.roblox.com/asset/?id=" .. blood_textures[math.random(1,#blood_textures)]
  1173. blood_decal.Face = "Top"
  1174. blood_decal.Color3 = Color3.new(1, 0, 0)
  1175. game.Debris:AddItem(blood,settings.remove_time+20)
  1176. local edit_blood = coroutine.wrap(function()
  1177. local original_size = blood.Size
  1178. local original_transparency = blood_decal.Transparency
  1179. local new_transparency = math.random(settings.max_transparency*100,settings.min_transparency*100)/100
  1180. local new_size = Vector3.new(math.random(settings.min_size_x*100,settings.max_size_x*100)/100 , blood.Size.Y , math.random(settings.min_size_z*100,settings.max_size_z*100)/100)
  1181. local tran_tw_time = math.random(settings.tran_tw_time_min*100,settings.tran_tw_time_max*100)/100
  1182. local size_tw_time = math.random(settings.size_tw_time_min*100,settings.size_tw_time_max*100)/100
  1183. for i = 1,10*tran_tw_time do
  1184. wait()
  1185. local perc = i/(10*tran_tw_time)
  1186. blood_decal.Transparency = original_transparency - (perc*new_transparency)
  1187. end
  1188. for i = 1,10*size_tw_time do
  1189. wait()
  1190. local perc = i/(10*size_tw_time)
  1191. blood.Size = Vector3.new(original_size.X+(perc*new_size.X) , original_size.Y , original_size.Z+(perc*new_size.Z))
  1192. end
  1193. wait(settings.remove_time)
  1194. blood:Destroy()
  1195. end)
  1196. edit_blood()
  1197. end
  1198. Swait(Time)
  1199. end
  1200. ----
  1201. end
  1202.  
  1203. function makrag(Rcharacter)
  1204.  
  1205. local RClone = Rcharacter:Clone()
  1206. --HitModel
  1207. for _,v in pairs(Rcharacter:GetChildren()) do
  1208. if v:isA("BasePart") then
  1209. coroutine.resume(coroutine.create(function()
  1210. create_blood_splatter(Rcharacter,v,1,25)
  1211. end))
  1212. end
  1213. end
  1214.  
  1215.  
  1216.  
  1217. --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process
  1218. coroutine.resume(coroutine.create(function()
  1219. if Rcharacter:FindFirstChild("HumanoidRootPart")then
  1220. Rcharacter.HumanoidRootPart.Anchored = true
  1221. Rcharacter.HumanoidRootPart.CanCollide = false
  1222. --- Rcharacter.HumanoidRootPart.Position = Vector3.new(0,-10,0)
  1223. Rcharacter.HumanoidRootPart.Parent = nil
  1224. end
  1225. end))
  1226.  
  1227.  
  1228.  
  1229.  
  1230. --Helps to fix constraint spasms
  1231. recurse(Rcharacter, function(_,v)
  1232. if v:IsA("Attachment") then
  1233. v.Axis = Vector3.new(0, 1, 0)
  1234. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1235. v.Rotation = Vector3.new(0, 0, 0)
  1236. end
  1237. end)
  1238.  
  1239. --Re-attach hats
  1240.  
  1241. if Rcharacter:FindFirstChild("UpperTorso") then
  1242. local ragdoll = EffectPack.R15Ragdoll:Clone()
  1243. ragdoll.Parent = Rcharacter
  1244. ragdoll.Disabled = false
  1245. else
  1246. local ragdoll = EffectPack.R6Ragdoll:Clone()
  1247. ragdoll.Parent = Rcharacter
  1248. ragdoll.Disabled = false
  1249. end
  1250.  
  1251.  
  1252. --[[
  1253. coroutine.resume(coroutine.create(function()
  1254. for i = 0,2 do
  1255. coroutine.resume(coroutine.create(function()
  1256. for _,child in next,charforhats:GetChildren() do
  1257. if child:IsA("Accoutrement") then
  1258. --Loop through all parts instead of only checking for one to be forwards-compatible in the event
  1259. --ROBLOX implements multi-part accessories
  1260. for _,part in next,child:GetChildren() do
  1261. if part:IsA("BasePart") then part.CanCollide = false
  1262.  
  1263.  
  1264. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1265. local attachment0 = getAttachment0(attachment1.Name,charforhats)
  1266. if attachment0 and attachment1 then
  1267. --Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where
  1268. --joints connecting a character are perpetually deleted while the character is dead
  1269.  
  1270.  
  1271. local HatProperties = {
  1272. {"LimitsEnabled", true};
  1273. {"UpperAngle", 0};
  1274. {"LowerAngle", -0};
  1275. }
  1276.  
  1277. coroutine.resume(coroutine.create(function()
  1278. wait()
  1279. local rg = ragdollJoint(attachment0.Parent, part, ""..attachment1.Name, "Hinge", HatProperties)
  1280. end))
  1281.  
  1282. end
  1283. end
  1284. end
  1285. end
  1286. end
  1287.  
  1288. end))
  1289. wait(.1)
  1290. end
  1291. end))
  1292.  
  1293.  
  1294. --]]
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305. for _,v in pairs(Rcharacter:GetChildren()) do
  1306. if v:isA("Script") or v:isA("LocalScript") then
  1307. v:Destroy()
  1308. end
  1309. end
  1310.  
  1311. local ORcharacter = Rcharacter
  1312.  
  1313.  
  1314. return ORcharacter
  1315. end
  1316.  
  1317.  
  1318.  
  1319. function getbloody(victim,amount)
  1320. local PART = IT("Part",Effects)
  1321. PART.Transparency = 1
  1322. PART.Size = victim.Size
  1323. PART.Anchored = true
  1324. PART.CanCollide = false
  1325. PART.CFrame = victim.CFrame
  1326. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1327. game:GetService("Debris"):AddItem(PART, 10)
  1328. so(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1329. so(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1330. so(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1331. local prtcl= EffectPack["1"]:Clone()
  1332. prtcl.Parent = PART
  1333. prtcl:Emit((amount*10)/2)
  1334. local prtc2= EffectPack["2"]:Clone()
  1335. prtc2.Parent = PART
  1336. prtc2:Emit((amount*10)/2)
  1337. end
  1338.  
  1339.  
  1340. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1341.  
  1342. if hit.Parent == nil then
  1343. return
  1344. end
  1345. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1346. for _,v in pairs(hit.Parent:children()) do
  1347. if v:IsA("Humanoid") then
  1348. if h.Health > 0.0001 then
  1349. h = v else end
  1350. end
  1351. end
  1352.  
  1353. if h == nil then
  1354. return
  1355. elseif h ~= nil and h.Health < 0.001 then
  1356. return
  1357. elseif h ~= nil and h.Parent:FindFirstChild("Fly away") then
  1358. return
  1359. end
  1360.  
  1361.  
  1362. --gg
  1363.  
  1364. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1365. coroutine.resume(coroutine.create(function()
  1366. if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1367.  
  1368.  
  1369. local FATag = Instance.new("Model",h.Parent)
  1370.  
  1371. FATag.Name = "Fly away"
  1372. game:GetService("Debris"):AddItem(FATag, 2.5)
  1373.  
  1374.  
  1375. for _,v in pairs(h.Parent:children()) do
  1376. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1377. v.Anchored=true
  1378. end
  1379. end
  1380.  
  1381. wait(.25)
  1382.  
  1383. if h.Parent:FindFirstChildOfClass("Body Colors")then
  1384. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1385. end
  1386.  
  1387.  
  1388. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1389.  
  1390. coroutine.resume(coroutine.create(function()
  1391.  
  1392.  
  1393. local YourGone = Instance.new("Part")
  1394. YourGone.Reflectance = 0
  1395. YourGone.Transparency = 1
  1396. YourGone.CanCollide = false
  1397. YourGone.Locked = true
  1398. YourGone.Anchored=true
  1399. YourGone.BrickColor = BrickColor.new("Really blue")
  1400. YourGone.Name = "YourGone"
  1401. YourGone.Size = Vector3.new()
  1402. YourGone.Material = "SmoothPlastic"
  1403. YourGone:BreakJoints()
  1404. YourGone.Parent = FoundTorso
  1405. YourGone.CFrame = FoundTorso.CFrame
  1406.  
  1407. local NewParticle = Instance.new("ParticleEmitter")
  1408. NewParticle.Parent = YourGone
  1409. NewParticle.Acceleration = Vector3.new(0,0,0)
  1410. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1411. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1412. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1413. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1414. NewParticle.Speed = NumberRange.new(0,0.0)
  1415. NewParticle.ZOffset = 2
  1416. NewParticle.Texture = "rbxassetid://243660364"
  1417. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1418. NewParticle.Rotation = NumberRange.new(-180,180)
  1419. NewParticle.Enabled = false
  1420. game:GetService("Debris"):AddItem(YourGone, 3)
  1421. for i = 0,2,1 do
  1422. NewParticle:Emit(1)
  1423. so("1448044156", FoundTorso,2, 1)
  1424. h.Parent:BreakJoints()
  1425. YourGone.CFrame = FoundTorso.CFrame
  1426. for _,v in pairs(h.Parent:children()) do
  1427. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1428. v.Anchored=false
  1429. -- v.Material = "Neon"
  1430. --v.BrickColor = BrickColor.new("Really red")
  1431. if v:FindFirstChildOfClass("SpecialMesh")then
  1432. --v:Destroy()
  1433. end
  1434. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1435. -- v:Destroy()
  1436. end
  1437. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1438.  
  1439. vp.Parent = v
  1440. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  1441.  
  1442.  
  1443. end
  1444.  
  1445.  
  1446.  
  1447. end
  1448.  
  1449.  
  1450.  
  1451. wait(.2)
  1452. end
  1453. wait(.1)
  1454. NewParticle:Emit(3)
  1455. so("1448044156", FoundTorso,2, .8)
  1456. h.Parent:BreakJoints()
  1457. YourGone.CFrame = FoundTorso.CFrame
  1458. for _,v in pairs(h.Parent:children()) do
  1459. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1460. v.Anchored=false
  1461. -- v.Material = "Neon"
  1462. --v.BrickColor = BrickColor.new("Really red")
  1463. if v:FindFirstChildOfClass("SpecialMesh")then
  1464. --v:Destroy()
  1465. end
  1466. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1467. -- v:Destroy()
  1468. end
  1469. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1470.  
  1471. vp.Parent = v
  1472. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  1473.  
  1474.  
  1475. end
  1476.  
  1477.  
  1478.  
  1479. end
  1480.  
  1481.  
  1482.  
  1483.  
  1484. end))
  1485.  
  1486.  
  1487.  
  1488.  
  1489. wait(.1)
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497. end
  1498.  
  1499.  
  1500. end))
  1501. if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1502. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1503. return
  1504. end
  1505. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1506. game:GetService("Debris"):AddItem(c, 0.5)
  1507. if HitSound ~= nil and HitPitch ~= nil then
  1508. so(HitSound, hit, 1, HitPitch)
  1509. end
  1510. local Damage = math.random(minim, maxim)
  1511. local blocked = false
  1512. local block = hit.Parent:findFirstChild("Block")
  1513. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1514. blocked = true
  1515. block.Value = block.Value - 1
  1516. print(block.Value)
  1517. end
  1518. if h.Health - Damage < 0.1 then
  1519. local rval = math.random(1,4)
  1520. local namesave= hit.Name
  1521. if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) ~= nil then
  1522. hit.Parent.Archivable = true
  1523. local clone = hit.Parent:Clone()
  1524. clone.Parent = hit.Parent.Parent
  1525. hit.Parent:Destroy()
  1526. hit = clone:FindFirstChild(namesave)
  1527. end
  1528.  
  1529. local hitmodel = makrag(hit.Parent)
  1530. hit = hitmodel:FindFirstChild(namesave)
  1531.  
  1532. end
  1533. if blocked == false then
  1534. h.Health = h.Health - Damage
  1535. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0))
  1536. else
  1537. h.Health = h.Health - Damage / 2
  1538. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0))
  1539.  
  1540. end
  1541.  
  1542. if Type == "Knockdown" then
  1543. local hum = h
  1544.  
  1545. hum.PlatformStand = true
  1546. coroutine.resume(coroutine.create(function(HHumanoid)
  1547.  
  1548. wait(.2)
  1549. HHumanoid.PlatformStand = false
  1550. end
  1551. ), hum)
  1552.  
  1553.  
  1554.  
  1555. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1556. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1557. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit})
  1558. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1559. game:GetService("Debris"):AddItem(bodvol, .2)
  1560. game:GetService("Debris"):AddItem(rl, 0.2)
  1561.  
  1562.  
  1563.  
  1564. elseif Type == "Knockdown2" then
  1565. local hum = h
  1566.  
  1567. hum.PlatformStand = true
  1568. coroutine.resume(coroutine.create(function(HHumanoid)
  1569.  
  1570.  
  1571. Combo = 1 wait(.2)
  1572. HHumanoid.PlatformStand = false
  1573. end
  1574. ), hum)
  1575. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1576. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1577. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1578. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1579. game:GetService("Debris"):AddItem(rl, 0.2)
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1587. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1588.  
  1589. elseif Type == "Normal" then
  1590. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1591. if knockback > 0 then
  1592.  
  1593. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1594. vp.Parent = HTorso
  1595. end
  1596. game:GetService("Debris"):AddItem(vp, 0.25)
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610. elseif Type== "Instakill" then
  1611. coroutine.resume(coroutine.create(function()
  1612. if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1613.  
  1614.  
  1615. local FATag = Instance.new("Model",h.Parent)
  1616.  
  1617. FATag.Name = "Fly away"
  1618. game:GetService("Debris"):AddItem(FATag, 2.5)
  1619.  
  1620.  
  1621. for _,v in pairs(h.Parent:children()) do
  1622. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1623. v.Anchored=true
  1624. end
  1625. end
  1626.  
  1627. wait(.25)
  1628.  
  1629. if h.Parent:FindFirstChildOfClass("Body Colors")then
  1630. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1631. end
  1632.  
  1633.  
  1634. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1635.  
  1636. coroutine.resume(coroutine.create(function()
  1637.  
  1638.  
  1639. local YourGone = Instance.new("Part")
  1640. YourGone.Reflectance = 0
  1641. YourGone.Transparency = 1
  1642. YourGone.CanCollide = false
  1643. YourGone.Locked = true
  1644. YourGone.Anchored=true
  1645. YourGone.BrickColor = BrickColor.new("Really blue")
  1646. YourGone.Name = "YourGone"
  1647. YourGone.Size = Vector3.new()
  1648. YourGone.Material = "SmoothPlastic"
  1649. YourGone:BreakJoints()
  1650. YourGone.Parent = FoundTorso
  1651. YourGone.CFrame = FoundTorso.CFrame
  1652.  
  1653. local NewParticle = Instance.new("ParticleEmitter")
  1654. NewParticle.Parent = YourGone
  1655. NewParticle.Acceleration = Vector3.new(0,0,0)
  1656. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1657. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1658. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1659. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1660. NewParticle.Speed = NumberRange.new(0,0.0)
  1661. NewParticle.ZOffset = 2
  1662. NewParticle.Texture = "rbxassetid://243660364"
  1663. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1664. NewParticle.Rotation = NumberRange.new(-180,180)
  1665. NewParticle.Enabled = false
  1666. game:GetService("Debris"):AddItem(YourGone, 3)
  1667. for i = 0,2,1 do
  1668. NewParticle:Emit(1)
  1669. so("1448044156", FoundTorso,2, 1)
  1670. h.Parent:BreakJoints()
  1671. YourGone.CFrame = FoundTorso.CFrame
  1672. for _,v in pairs(h.Parent:children()) do
  1673. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1674. v.Anchored=false
  1675. -- v.Material = "Neon"
  1676. --v.BrickColor = BrickColor.new("Really red")
  1677. if v:FindFirstChildOfClass("SpecialMesh")then
  1678. --v:Destroy()
  1679. end
  1680. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1681. -- v:Destroy()
  1682. end
  1683. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1684.  
  1685. vp.Parent = v
  1686. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  1687.  
  1688.  
  1689. end
  1690.  
  1691.  
  1692.  
  1693. end
  1694.  
  1695.  
  1696.  
  1697. wait(.2)
  1698. end
  1699. wait(.1)
  1700. NewParticle:Emit(3)
  1701. so("1448044156", FoundTorso,2, .8)
  1702. h.Parent:BreakJoints()
  1703. YourGone.CFrame = FoundTorso.CFrame
  1704. for _,v in pairs(h.Parent:children()) do
  1705. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1706. v.Anchored=false
  1707. -- v.Material = "Neon"
  1708. --v.BrickColor = BrickColor.new("Really red")
  1709. if v:FindFirstChildOfClass("SpecialMesh")then
  1710. --v:Destroy()
  1711. end
  1712. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1713. -- v:Destroy()
  1714. end
  1715. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1716.  
  1717. vp.Parent = v
  1718. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  1719.  
  1720.  
  1721. end
  1722.  
  1723.  
  1724.  
  1725. end
  1726.  
  1727.  
  1728.  
  1729.  
  1730. end))
  1731.  
  1732.  
  1733.  
  1734.  
  1735. wait(.1)
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743. end
  1744.  
  1745.  
  1746. end))
  1747.  
  1748. elseif Type == "Rag" then
  1749. coroutine.resume(coroutine.create(function()
  1750. local head = hit.Parent:FindFirstChild("Head")
  1751. head.Velocity = head.CFrame.lookVector * -2.2
  1752. end))
  1753. coroutine.resume(coroutine.create(function()
  1754. makrag(hit.Parent)
  1755. end))
  1756. h.Health = 0
  1757. hit.Parent:BreakJoints()
  1758. elseif Type == "HPSteal" then
  1759. Humanoid.Health = Humanoid.Health + Damage
  1760. local hum = h
  1761.  
  1762. hum.PlatformStand = true
  1763. coroutine.resume(coroutine.create(function(HHumanoid)
  1764.  
  1765.  
  1766. Combo = 1 wait(.2)
  1767. HHumanoid.PlatformStand = false
  1768. end
  1769. ), hum)
  1770. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1771. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1772. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1773. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1774. game:GetService("Debris"):AddItem(rl, 0.2)
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1782. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1783.  
  1784.  
  1785. elseif Type == "Impale" then
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1795. hit.Parent.Humanoid.PlatformStand = true
  1796.  
  1797.  
  1798. wait(1)
  1799. hit.Parent.Humanoid.PlatformStand = false
  1800. elseif Type == "IgnoreType" then
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806. elseif Type == "Up" then
  1807. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1808. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1809. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1810. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818. elseif Type == "Snare" then
  1819. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1820. game:GetService("Debris"):AddItem(bp, 1)
  1821.  
  1822.  
  1823.  
  1824. elseif Type == "Freeze2" then
  1825. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1826. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1827. hit.Parent.Torso.Anchored = true
  1828. coroutine.resume(coroutine.create(function(Part)
  1829.  
  1830. wait(1.5)
  1831. Part.Anchored = false
  1832. end
  1833. ), hit.Parent.Torso)
  1834. game:GetService("Debris"):AddItem(BodPos, 3)
  1835. game:GetService("Debris"):AddItem(BodGy, 3)
  1836. end
  1837. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1838. game:GetService("Debris"):AddItem(debounce, Delay)
  1839. c = Instance.new("ObjectValue")
  1840. c.Name = "creator"
  1841. c.Value = Player
  1842. c.Parent = h
  1843. game:GetService("Debris"):AddItem(c, 0.5)
  1844. end
  1845. end
  1846.  
  1847.  
  1848.  
  1849. ShowDamage = function(Pos, Text, Time, Color)
  1850.  
  1851. local Rate = 0.033333333333333
  1852. if not Pos then
  1853. local Pos = Vector3.new(0, 0, 0)
  1854. end
  1855. local Text = Text or ""
  1856. local Time = Time or 2
  1857. if not Color then
  1858. local Color = Color3.new(1, 0, 1)
  1859. end
  1860. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1861. EffectPart.Anchored = true
  1862. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
  1863. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1864. game.Debris:AddItem(EffectPart, Time + 0.1)
  1865. EffectPart.Parent = game:GetService("Workspace")
  1866. delay(0, function()
  1867.  
  1868. local Frames = Time / Rate
  1869.  
  1870.  
  1871.  
  1872. print(Frames)
  1873. TextLabel.TextTransparency=0
  1874. EffectPart.CFrame=CFrame.new(Pos)
  1875. wait()
  1876. SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
  1877. SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
  1878. SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60)
  1879.  
  1880. SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
  1881.  
  1882.  
  1883. wait(Frames/60)
  1884.  
  1885. if EffectPart and EffectPart.Parent then
  1886. EffectPart:Destroy()
  1887. end
  1888. end
  1889. )
  1890. end
  1891.  
  1892. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
  1893.  
  1894.  
  1895.  
  1896.  
  1897. local Type=""
  1898.  
  1899.  
  1900.  
  1901.  
  1902. if mememode == true then
  1903.  
  1904. Type= "Instakill"
  1905.  
  1906. else
  1907. Type=Type2
  1908. end
  1909. if Type2 == "NormalKnockdown" then
  1910. Type= "Knockdown"
  1911. end
  1912.  
  1913. for _,c in pairs(workspace:children()) do
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919. local hum = c:FindFirstChild("Humanoid")
  1920. for _,v in pairs(c:children()) do
  1921. if v:IsA("Humanoid") then
  1922. hum = v
  1923. end
  1924. end
  1925.  
  1926.  
  1927.  
  1928.  
  1929. if hum ~= nil then
  1930. local head = c:findFirstChild("Head")
  1931. if head ~= nil then
  1932. local targ = head.Position - Part.Position
  1933. local mag = targ.magnitude
  1934. if mag <= magni and c.Name ~= Player.Name then
  1935. Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  1936. end
  1937. end
  1938. end
  1939. end
  1940. end
  1941.  
  1942.  
  1943. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  1944. local DGP = Instance.new("Part")
  1945.  
  1946. DGP.Parent = Character
  1947. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  1948. DGP.Transparency = 1
  1949. DGP.CanCollide = false
  1950. DGP.Anchored = true
  1951. RemoveOutlines(DGP)
  1952. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  1953. DGP.CFrame = HTCF
  1954.  
  1955. coroutine.resume(coroutine.create(function()
  1956. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  1957. end))
  1958. game:GetService("Debris"):AddItem(DGP, .05)
  1959.  
  1960.  
  1961. DGP.Archivable = false
  1962. end
  1963.  
  1964.  
  1965.  
  1966. -----------------
  1967.  
  1968. for i = 1, 0 do
  1969. local FACE = CreatePart2(3, Character, "Fabric", 0, 0+(i-1)/65, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1970. FACE.Color = C3(0,0,0)
  1971. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1972. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/130,0), CF(0, 0, 0))
  1973. end
  1974.  
  1975. Humanoid.MaxHealth = 99999
  1976.  
  1977. Humanoid.Health = 99999
  1978. GainCharge = function()
  1979. Humanoid.MaxHealth = 99999
  1980. Humanoid.Health = 99999
  1981. end
  1982.  
  1983. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  1984.  
  1985.  
  1986.  
  1987.  
  1988. --[[
  1989. for i, v in pairs(C:GetChildren()) do
  1990. if v:IsA("Accessory")then
  1991. v:Destroy()
  1992. end
  1993. if v:IsA("BasePart")then
  1994. v.Transparency =1
  1995. if v.Name == "Head" then
  1996. v:FindFirstChildOfClass("Decal"):Destroy()
  1997. end
  1998. end
  1999. end--]]
  2000. --[[
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014. local tweeningInformation = TweenInfo.new(
  2015. 0.5,
  2016. Enum.EasingStyle.Back,
  2017. Enum.EasingDirection.Out,
  2018. 0,
  2019. false,
  2020. 0
  2021. )
  2022. --]]
  2023.  
  2024.  
  2025.  
  2026.  
  2027. --print(WRJ.Parent.Name)
  2028.  
  2029. --local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  2030.  
  2031. --local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  2032.  
  2033. -- RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  2034.  
  2035. --local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  2036.  
  2037.  
  2038.  
  2039. --RW.C1 = cn(0, 0.5, 0)
  2040. --LW.C1 = cn(0, 0.5, 0)
  2041. --RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2042. --LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049. --------
  2050. --(#Torso)
  2051. --SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  2052. --------
  2053. --(#Head)
  2054. --SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  2055. --------
  2056. --(#Right Arm)
  2057. --SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
  2058. --------
  2059. --(#Left Arm)
  2060. --SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
  2061. --------
  2062. --(#Right Leg)
  2063. --SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
  2064. --------
  2065. --(#Left Leg)
  2066. --SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
  2067.  
  2068.  
  2069.  
  2070. --[[
  2071. --Head,Torso
  2072. SetTween(Root,{C0=GC0(Root)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2073. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2074. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2075. ---------
  2076. --RightArm
  2077. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2078. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2079.  
  2080. ---------
  2081. --LeftArm
  2082. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2083. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2084. ---------
  2085. --RightLeg
  2086. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2087. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2088. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2089. ---------
  2090. --LeftLeg
  2091. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2092. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2093. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2094. ---------
  2095. --]]
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102. local function onTouch(Part,knock,part)
  2103. if part.Parent ~= Character and part.Parent.Parent ~= Character then
  2104.  
  2105. --[[
  2106. if part.Parent:IsA("Accessory") then
  2107.  
  2108. coroutine.resume(coroutine.create(function()
  2109. local angle = Part.CFrame.lookVector
  2110. local bodvol = Create("BodyVelocity")({velocity = angle * 7.2, P = 50, maxForce = Vector3.new(8000, 8000, 8000), Parent = part})
  2111. game:GetService("Debris"):AddItem(bodvol, 0.1)
  2112. if not part:FindFirstChild("HairAttachment") then
  2113. part:BreakJoints()
  2114. coroutine.resume(coroutine.create(function()
  2115. wait(.1)
  2116. local par = part.Parent
  2117. part.CanCollide = true part.Parent = workspace
  2118. par:Destroy()
  2119. SetTween(part,{Transparency = 1},"Quad","Out",2)
  2120. game:GetService("Debris"):AddItem(part, 2)
  2121. end))
  2122. end
  2123.  
  2124.  
  2125. end))
  2126.  
  2127. end
  2128.  
  2129. --]]
  2130. if part.Parent:IsA("Accessory") and (part.Parent.Parent:FindFirstChild("Torso") or part.Parent.Parent:FindFirstChild("UpperTorso")) then
  2131. part = (part.Parent.Parent:FindFirstChild("Torso") or part.Parent.Parent:FindFirstChild("UpperTorso"))
  2132. end
  2133.  
  2134.  
  2135.  
  2136. if part.Parent:FindFirstChildOfClass("Humanoid") then
  2137. coroutine.resume(coroutine.create(function() local angle = Part.CFrame.lookVector
  2138. local bodvol = Create("BodyVelocity")({velocity = angle * 9.2, P = 50, maxForce = Vector3.new(8000, 8000, 8000), Parent = part})
  2139. game:GetService("Debris"):AddItem(bodvol, 0.1)
  2140. --makrag(AIMHIT.Parent)
  2141.  
  2142.  
  2143. end))
  2144.  
  2145. if part.Name == "Head" then
  2146.  
  2147. local num=part.Parent:FindFirstChildOfClass("Humanoid").Health/part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth
  2148.  
  2149. if num < 0.5 then
  2150. local namesave=part.Name
  2151. local newchar = makrag(part.Parent)
  2152. coroutine.resume(coroutine.create(function()
  2153. local HTorso = newchar.Parent:FindFirstChild("Torso") or newchar.Parent:FindFirstChild("UpperTorso")
  2154. coroutine.resume(coroutine.create(function() local angle = Part.CFrame.lookVector
  2155. local bodvol = Create("BodyVelocity")({velocity = angle * 17.2, P = 50, maxForce = Vector3.new(8000, 8000, 8000), Parent = HTorso})
  2156. game:GetService("Debris"):AddItem(bodvol, 0.1)
  2157. --makrag(AIMHIT.Parent)
  2158.  
  2159.  
  2160. end))
  2161. end))
  2162. coroutine.resume(coroutine.create(function()
  2163. getbloody(newchar:FindFirstChild("Head"),5) end))
  2164. newchar:FindFirstChild("Head"):Destroy()
  2165. else
  2166. coroutine.resume(coroutine.create(function()
  2167. Damagefunc(Part, part, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/3, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/2, 0, "Normal", RootPart, 0.1, "851453784", 1.2)
  2168. end))
  2169. end
  2170.  
  2171. else
  2172. --part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - math.random(20, 30)
  2173. coroutine.resume(coroutine.create(function()
  2174. coroutine.resume(coroutine.create(function()
  2175. create_blood_splatter(part.Parent,part,1,25) end))
  2176. Damagefunc(Part, part, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10, part.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/6, 0, "Normal", RootPart, 0.1, "851453784", 1.2)
  2177. end))
  2178. end
  2179.  
  2180.  
  2181. end
  2182. end
  2183. end
  2184.  
  2185.  
  2186. function SpawnBullet(CFpos,BForce,DForce,waight)
  2187. coroutine.resume(coroutine.create(function()
  2188. local Bscale = 2
  2189. local dahspeed=0
  2190. if attack == true and mememode == true then
  2191. dahspeed=3
  2192. end --/dahspeed
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198. local Stone=Instance.new("Part",Effects)
  2199. Stone.Reflectance = 0
  2200. Stone.Transparency = 1
  2201. Stone.CanCollide = false
  2202. Stone.Locked = true
  2203. Stone.Anchored=true
  2204. Stone.BrickColor = BrickColor.new("Bright green")
  2205. Stone.Name = "Bullet"
  2206. Stone.Size = Vector3.new(.05*Bscale,.05*Bscale,.25)
  2207. Stone.Material = "Neon"
  2208. Stone:BreakJoints()
  2209.  
  2210.  
  2211. local speed = BForce
  2212.  
  2213. local grav = waight
  2214.  
  2215. local stoptime=0
  2216.  
  2217. local Dampingforce = 0
  2218.  
  2219.  
  2220. local StoneTrail=Instance.new("Trail",Stone)
  2221. local Attach1 = Instance.new("Attachment",Stone)
  2222. local Attach2 = Instance.new("Attachment",Stone)
  2223. Attach2.Position = Vector3.new(0,0,.025*Bscale)
  2224. Attach1.Position = Vector3.new(0,0,-.025*Bscale)
  2225. StoneTrail.Attachment0 = Attach1
  2226. StoneTrail.Attachment1 = Attach2
  2227. StoneTrail.Texture = "rbxassetid://1251856844"
  2228. StoneTrail.Lifetime = .1
  2229. StoneTrail.MaxLength = 0
  2230. StoneTrail.MinLength = 0
  2231. StoneTrail.TextureMode= "Static"
  2232. StoneTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
  2233. StoneTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  2234. StoneTrail.LightEmission=0
  2235. StoneTrail.Color = ColorSequence.new(Color3.new(255/255,255/255,126/255),Color3.new(255/255,255/255,126/255))
  2236. StoneTrail.LightEmission = 1
  2237. StoneTrail.FaceCamera=true
  2238.  
  2239.  
  2240.  
  2241.  
  2242.  
  2243. game:GetService("Debris"):AddItem(Stone, 30)
  2244.  
  2245. -- local tilt=angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5)))
  2246.  
  2247. Stone.CFrame=CFpos
  2248. local hitthing=nil
  2249. Swait()
  2250. for i = 0,100 do
  2251. if Stone.Parent ~= Effects then
  2252. hitthing = workspace
  2253. end
  2254. if Dampingforce < .99 then
  2255. stoptime = stoptime + 1/10
  2256. elseif Dampingforce > .99 then
  2257. Dampingforce=.99
  2258. end
  2259. Dampingforce = stoptime/DForce
  2260.  
  2261. if hitthing == nil then
  2262.  
  2263.  
  2264. local Lookray,Lookpos = rayCast(Stone.Position, Stone.CFrame.lookVector, ((speed-(speed*Dampingforce))+-grav*Dampingforce ), Character)
  2265. local spikep1=Stone.Position-Stone.CFrame.lookVector*-((speed-(speed*Dampingforce))+-grav*Dampingforce )
  2266. local spikep2=Lookpos
  2267. if Lookray ~= nil then
  2268. hitthing=Lookray
  2269. coroutine.resume(coroutine.create(function()
  2270. onTouch(Stone,5,Lookray) end))
  2271. SetTween(Stone,{CFrame=cn(spikep2,spikep1)*angles(0,math.rad(180),0)},"Back","Out",.05)
  2272. SetTween(Stone,{Transparency=1},"Elastic","InOut",1.5)
  2273. break
  2274. else
  2275.  
  2276. SetTween(Stone,{CFrame= cf(Stone.CFrame.p, (Stone.CFrame*cn(0,0,-speed)).p+Vector3.new(0,-grav*Dampingforce,0) )*cn(0,0,-(speed-(speed*Dampingforce))+-grav*Dampingforce ) },"Linear","InOut",.05)
  2277.  
  2278. end
  2279. --print(-(speed-(speed*Dampingforce)) )
  2280.  
  2281. Swait()
  2282. end
  2283. end
  2284.  
  2285.  
  2286. wait(2)
  2287. Stone:Destroy()
  2288.  
  2289. end))
  2290. end
  2291.  
  2292.  
  2293.  
  2294. function AT1()
  2295. attack=true
  2296. local dahspeed=1
  2297. if attack == true and mememode == true then
  2298. dahspeed=2
  2299. end
  2300.  
  2301. local CWTSpeed = .15
  2302. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.992519319, -0.104598217, -0.0629647076, 0.0974458754, 0.989409626, -0.107577249, 0.0735502765, 0.100636855, 0.992200911)},"Linear","InOut",CWTSpeed)
  2303. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.173906013, 0.984762251, 0, -0.984762251, 0.173906013)},"Linear","InOut",CWTSpeed)
  2304. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.965836942, 0.00869846437, -0.259004503, -0.206769302, 0.62835145, -0.749947309, 0.156222478, 0.777880967, 0.608683646)},"Linear","InOut",CWTSpeed)
  2305. SetTween(Root,{C0=GC0(Root)*cf(0.00700000022, -0.317000002, -0.0860000029, 0.982420146, -0.0698692724, 0.173115328, 0.0688617826, 0.99755609, 0.0118262805, -0.173518538, 0.00030265376, 0.984830499)},"Linear","InOut",CWTSpeed)
  2306. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(-0.0340000018, -0.0340000018, -0.00899999961, 0.951181412, 0.307846695, 0.0220068246, -0.289825708, 0.915457547, -0.279174894, -0.106089376, 0.25916785, 0.959988117)},"Linear","InOut",CWTSpeed)
  2307. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.857194245, 0.514993191, 0, -0.514993191, 0.857194245)},"Linear","InOut",CWTSpeed)
  2308. SetTween(RightHip,{C0=GC0(RightHip)*cf(0, 0, 0, 0.763789475, -0.492794961, -0.416867852, 0.350033879, 0.858857632, -0.373951793, 0.542311668, 0.139702573, 0.828481257)},"Linear","InOut",CWTSpeed)
  2309. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.514813662, -0.857302129, 0, 0.857302129, 0.514813662)},"Linear","InOut",CWTSpeed)
  2310. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0, 0, 0, 1, 0, 0, 0, 0.86582458, 0.500347614, 0, -0.500347614, 0.86582458)},"Linear","InOut",CWTSpeed)
  2311. SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.857055545, 0.159495786, 0.489915073, -0.000526949763, 0.951148808, -0.308732271, -0.515223682, 0.264342576, 0.815271497)},"Linear","InOut",CWTSpeed)
  2312. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(0, -0.0250000004, -0.0170000009, 0.996444106, -0.0438716076, 0.0719326586, 0.033913184, 0.990368009, 0.134242848, -0.0771292523, -0.131326035, 0.988334179)},"Linear","InOut",CWTSpeed)
  2313. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.993955195, 0.109786354, 0, -0.109786354, 0.993955195)},"Linear","InOut",CWTSpeed)
  2314. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.230000004, 0.125, -0.165000007, 0.227841392, 0.580875397, 0.781455159, 0.727408886, 0.431969821, -0.533177674, -0.647274792, 0.689917386, -0.324113309)},"Linear","InOut",CWTSpeed)
  2315. SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.832597077, 0.17832616, -0.524387181, 0.0211746693, 0.935813725, 0.351858407, 0.553474307, -0.304059982, 0.775379777)},"Linear","InOut",CWTSpeed)
  2316. wait(CWTSpeed/dahspeed)
  2317. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0.0289999992, 0.00800000038, -0.00100000005, 0.964357972, -0.259644091, 0.050976418, 0.262466073, 0.963080823, -0.0598904528, -0.0335442089, 0.0711354166, 0.996902466)},"Linear","In",CWTSpeed)
  2318. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.391068488, 0.920361578, 0, -0.920361578, 0.391068488)},"Linear","In",CWTSpeed)
  2319. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.0379999988, 0.0370000005, -0.0520000011, 0.846745908, 0.157577187, -0.508124709, -0.439758956, 0.744829834, -0.501837254, 0.299388319, 0.648381054, 0.699977577)},"Linear","In",CWTSpeed)
  2320. SetTween(Root,{C0=GC0(Root)*cf(0.368999988, -0.291999996, -0.150000006, 0.982420146, -0.0698692724, 0.173115328, 0.0688617826, 0.99755609, 0.0118262805, -0.173518538, 0.00030265376, 0.984830499)},"Linear","In",CWTSpeed)
  2321. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(-0.0350000001, -0.0350000001, -0.00899999961, 0.976106524, 0.217255712, 0.00399679318, -0.199803635, 0.904622257, -0.376479983, -0.085408017, 0.366685987, 0.926416159)},"Linear","In",CWTSpeed)
  2322. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.601828992, 0.798624992, 0, -0.798624992, 0.601828992)},"Linear","In",CWTSpeed)
  2323. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.0149999997, 0.0560000017, 0.0280000009, 0.973408103, -0.228938237, -0.00799352303, 0.200263634, 0.86739397, -0.455545902, 0.111225411, 0.441831261, 0.890176415)},"Linear","In",CWTSpeed)
  2324. SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.996217489, -0.0868949369, 0, 0.0868949369, 0.996217489)},"Linear","In",CWTSpeed)
  2325. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.86582458, -0.500347614, 0, 0.500347614, 0.86582458)},"Linear","In",CWTSpeed)
  2326. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.0340000018, 0.103, -0.0599999987, 0.989055991, 0.146439165, -0.0179933738, -0.127749249, 0.91100359, 0.39211309, 0.0738127381, -0.38552314, 0.919741094)},"Linear","In",CWTSpeed)
  2327. SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.759124339, 0.159419164, 0.631122649, 0.0531710982, 0.951121628, -0.304204702, -0.648770452, 0.26448667, 0.713543057)},"Linear","In",CWTSpeed)
  2328. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(0, -0.0250000004, -0.0170000009, 0.996463954, -0.0598641038, 0.0589579195, 0.0339382216, 0.928671896, 0.36934638, -0.0768631548, -0.366039395, 0.927419662)},"Linear","In",CWTSpeed)
  2329. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.758361936, -0.651833713, 0, 0.651833713, 0.758361936)},"Linear","In",CWTSpeed)
  2330. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.230000004, 0.125, -0.165000007, 0.303103626, -0.211841494, 0.929113209, 0.495600045, 0.867796898, 0.0361820534, -0.813946426, 0.449501663, 0.368021041)},"Linear","In",CWTSpeed)
  2331. SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.832719147, 0.196739048, -0.517564178, 0.0209070444, 0.922906041, 0.38445729, 0.553300858, -0.330965638, 0.764408231)},"Linear","In",CWTSpeed)
  2332. wait(CWTSpeed/dahspeed)
  2333. CWTSpeed = CWTSpeed * 2
  2334. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0.0289999992, 0.00800000038, -0.00100000005, 0.96440661, -0.248317376, 0.0908759162, 0.262284577, 0.941963732, -0.209549889, -0.0335669369, 0.225926638, 0.973565817)},"Back","Out",CWTSpeed)
  2335. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0.00100000005, 0, 1, 0, 0, 0, 0.804479361, 0.59398067, 0, -0.59398067, 0.804479361)},"Back","Out",CWTSpeed)
  2336. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.0379999988, 0.0370000005, -0.0520000011, 0.908487856, 0.220390648, -0.355074316, -0.276305735, 0.954201996, -0.114689194, 0.313536197, 0.202302814, 0.927776098)},"Back","Out",CWTSpeed)
  2337. SetTween(Root,{C0=GC0(Root)*cf(0.372000009, -0.228, -0.148000002, 0.980347574, 0.0500396676, -0.190826118, -0.0536389574, 0.998465836, -0.0137398709, 0.189845815, 0.0237055644, 0.981527627)},"Back","Out",CWTSpeed)
  2338. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(-0.0340000018, -0.0340000018, -0.00899999961, 0.992437899, 0.122682504, -0.00399679318, -0.110060379, 0.874970675, -0.471500725, -0.0543478131, 0.468375057, 0.88185662)},"Back","Out",CWTSpeed)
  2339. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.601828992, 0.798624992, 0, -0.798624992, 0.601828992)},"Back","Out",CWTSpeed)
  2340. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.0149999997, 0.0560000017, 0.0280000009, 0.969154358, -0.244370028, -0.0319864266, 0.21237056, 0.893914759, -0.394734204, 0.125054345, 0.375765413, 0.918238401)},"Back","Out",CWTSpeed)
  2341. SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.996217489, -0.0868949369, 0, 0.0868949369, 0.996217489)},"Back","Out",CWTSpeed)
  2342. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.99256742, -0.121696107, 0, 0.121696107, 0.99256742)},"Back","Out",CWTSpeed)
  2343. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.0689999983, 0.195999995, -0.112999998, 0.956217945, 0.292655438, 0, -0.253388286, 0.82791698, 0.500347614, 0.146429449, -0.478441358, 0.86582458)},"Back","Out",CWTSpeed)
  2344. SetTween(Waist,{C0=GC0(Waist)*cf(0.00899999961, 0.0489999987, 0.00300000003, 0.909972191, 0.18540059, -0.370914042, -0.19417043, 0.980869055, 0.0139224082, 0.366399318, 0.0593515262, 0.92856282)},"Back","Out",CWTSpeed)
  2345. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.0320000015, 0.237000003, -0.0209999997, 0.905480564, -0.293055773, -0.30695799, 0.419618279, 0.510108948, 0.750805795, -0.0634459555, -0.808645308, 0.584865272)},"Back","Out",CWTSpeed)
  2346. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.962696493, -0.270583659, 0, 0.270583659, 0.962696493)},"Back","Out",CWTSpeed)
  2347. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.230000004, 0.125, -0.165000007, 0.679317415, -0.695272148, 0.234785855, 0.715102315, 0.699019074, 0.000967029016, -0.16479215, 0.16723901, 0.972046614)},"Back","Out",CWTSpeed)
  2348. SetTween(Neck,{C0=GC0(Neck)*cf(0, -0.00100000005, 0, 0.960048258, -0.277103692, -0.0389982164, 0.275908947, 0.914082706, 0.297198623, -0.0467072465, -0.296085, 0.95401895)},"Back","Out",CWTSpeed)
  2349. wait(CWTSpeed/dahspeed)
  2350.  
  2351. attack=false
  2352. end
  2353.  
  2354.  
  2355. function AT2()
  2356. attack=true
  2357. local dahspeed=1
  2358. if attack == true and mememode == true then
  2359. dahspeed=2
  2360. end
  2361.  
  2362. local CWTSpeed = .15
  2363. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.996170223, -0.0848765075, -0.0209947694, 0.0861353651, 0.993896544, 0.0689229518, 0.015016688, -0.0704673827, 0.997401059)},"Linear","InOut",CWTSpeed)
  2364. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.984725833, 0.174112245, 0, -0.174112245, 0.984725833)},"Linear","InOut",CWTSpeed)
  2365. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.913356602, 0.0566953607, 0.403193951, 9.77665186e-05, 0.990227282, -0.139462888, -0.40716058, 0.127418756, 0.904425025)},"Linear","InOut",CWTSpeed)
  2366. SetTween(Root,{C0=GC0(Root)*cf(0, 0, 0, 0.981001079, 0.0855676904, -0.174112245, -0.0868949369, 0.996217489, 0, 0.173453659, 0.0151294721, 0.984725833)},"Linear","InOut",CWTSpeed)
  2367. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0, 0, 0, 0.992093384, 0.10856428, 0.0629647076, -0.116356283, 0.983672678, 0.137292594, -0.0470315889, -0.143533394, 0.988527238)},"Linear","InOut",CWTSpeed)
  2368. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, -0.00100000005, -0.00100000005, 1, 0, 0, 0, 0.981623828, 0.190826118, 0, -0.190826118, 0.981623828)},"Linear","InOut",CWTSpeed)
  2369. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.0860000029, 0.063000001, 0.155000001, 0.719053268, -0.460897774, -0.520130396, 0.517545998, 0.854632497, -0.0418261699, 0.463797927, -0.239116162, 0.853062093)},"Linear","InOut",CWTSpeed)
  2370. SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.996217489, -0.0868949369, 0, 0.0868949369, 0.996217489)},"Linear","InOut",CWTSpeed)
  2371. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.573519289, -0.819192052, 0, 0.819192052, 0.573519289)},"Linear","InOut",CWTSpeed)
  2372. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.114, 0.240999997, 0, 0.965876102, 0.259004503, 0, -0.259004503, 0.965876102, 0, 0, 0, 1)},"Linear","InOut",CWTSpeed)
  2373. SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.924479842, 0.00924578775, -0.381118774, -0.102508843, 0.968916595, -0.225150183, 0.367190599, 0.247214854, 0.89669162)},"Linear","InOut",CWTSpeed)
  2374. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.0710000023, 0.172999993, 0.00999999978, 0.949839711, -0.00664781826, -0.312666476, 0.196741104, 0.789855301, 0.580879986, 0.243099675, -0.613257289, 0.75154376)},"Linear","InOut",CWTSpeed)
  2375. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.987702012, -0.156348273, 0, 0.156348273, 0.987702012)},"Linear","InOut",CWTSpeed)
  2376. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.277999997, -0.195999995, 0.600000024, 0.753944814, -0.33578822, -0.564635754, -0.331613779, 0.547423959, -0.768348455, 0.567097485, 0.766533315, 0.301375449)},"Linear","InOut",CWTSpeed)
  2377. SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.930084884, -0.0905073211, 0.35602048, -0.0455047637, 0.933321238, 0.35614717, -0.364515424, -0.347447723, 0.863949478)},"Linear","InOut",CWTSpeed)
  2378. wait(CWTSpeed/dahspeed)
  2379. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.996207297, -0.0858780146, -0.0139970835, 0.0857573673, 0.996275425, -0.00900489371, 0.0147182718, 0.00777038885, 0.999861479)},"Linear","In",CWTSpeed)
  2380. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.857194245, 0.514993191, 0, -0.514993191, 0.857194245)},"Linear","In",CWTSpeed)
  2381. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.923304319, 0.0712389201, 0.377404451, 0.0308198333, 0.965735495, -0.25769183, -0.38283056, 0.249559507, 0.889472187)},"Linear","In",CWTSpeed)
  2382. SetTween(Root,{C0=GC0(Root)*cf(0.0960000008, -0.112000003, 0.0170000009, 0.96663034, 0.187911406, -0.174112245, -0.190826118, 0.981623828, 0, 0.170912728, 0.0332251638, 0.984725833)},"Linear","In",CWTSpeed)
  2383. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0, 0, 0, 0.992040813, 0.117608905, 0.0449794084, -0.116857879, 0.992967129, -0.0189862568, -0.0468960293, 0.0135789448, 0.99880749)},"Linear","In",CWTSpeed)
  2384. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, -0.00100000005, -0.00100000005, 1, 0, 0, 0, 0.453601718, 0.891204476, 0, -0.891204476, 0.453601718)},"Linear","In",CWTSpeed)
  2385. SetTween(RightHip,{C0=GC0(RightHip)*cf(0.0179999992, 0.0890000015, 0.0240000002, 0.815838099, -0.484621048, 0.315516561, 0.568385601, 0.772505164, -0.283149391, -0.106518015, 0.410339117, 0.90569073)},"Linear","In",CWTSpeed)
  2386. SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.939716518, -0.341954559, 0, 0.341954559, 0.939716518)},"Linear","In",CWTSpeed)
  2387. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.668949008, -0.743308306, 0, 0.743308306, 0.668949008)},"Linear","In",CWTSpeed)
  2388. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.114, 0.240999997, 0, 0.965973556, 0.228221864, 0.121696107, -0.258640647, 0.853139937, 0.453053266, -0.000427149236, -0.469113022, 0.883138061)},"Linear","In",CWTSpeed)
  2389. SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.973180771, -0.162051529, -0.163274303, 0.0982390493, 0.934548736, -0.342005491, 0.208010301, 0.316793233, 0.925404668)},"Linear","In",CWTSpeed)
  2390. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.252999991, -0.0489999987, -0.0780000016, 0.178962424, -0.226451293, -0.957440495, -0.389415443, 0.87737447, -0.280302852, 0.903508782, 0.42300579, 0.0688334256)},"Linear","In",CWTSpeed)
  2391. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.882800043, -0.469748914, 0, 0.469748914, 0.882800043)},"Linear","In",CWTSpeed)
  2392. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.349999994, 0.122000001, 0.228, 0.698049545, -0.636112154, 0.328767747, 0.633219481, 0.334026963, -0.698182702, 0.334305197, 0.695548236, 0.635965943)},"Linear","In",CWTSpeed)
  2393. SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.920634747, -0.302030653, 0.247404888, 0.171457589, 0.882071912, 0.438806772, -0.35076201, -0.361561328, 0.863851488)},"Linear","In",CWTSpeed)
  2394. wait(CWTSpeed/dahspeed)
  2395. CWTSpeed = CWTSpeed * 2
  2396. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0, 0, 0, 0.99618566, -0.0868921578, -0.00799352303, 0.0858588368, 0.992423713, -0.0878831595, 0.0155693199, 0.0868616328, 0.996098697)},"Back","Out",CWTSpeed)
  2397. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0, 0, 0, 1, 0, 0, 0, 0.86582458, 0.500347614, 0, -0.500347614, 0.86582458)},"Back","Out",CWTSpeed)
  2398. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0, 0, 0, 0.992866695, -0.0636315942, -0.100830562, 0.0176035166, 0.914646804, -0.403870463, 0.117923275, 0.399214566, 0.909242511)},"Back","Out",CWTSpeed)
  2399. SetTween(Root,{C0=GC0(Root)*cf(0.0960000008, -0.112000003, 0.0170000009, 0.864762843, 0.0519519597, 0.499485999, -0.040478792, 0.998609066, -0.0337850116, -0.500546455, 0.00899743102, 0.865662932)},"Back","Out",CWTSpeed)
  2400. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0, 0, 0, 0.992065728, 0.116611153, 0.0469844118, -0.116693601, 0.99316752, -0.000993738999, -0.0467792712, -0.00449692551, 0.998895168)},"Back","Out",CWTSpeed)
  2401. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0, -0.00100000005, -0.00100000005, 1, 0, 0, 0, 0.453601718, 0.891204476, 0, -0.891204476, 0.453601718)},"Back","Out",CWTSpeed)
  2402. SetTween(RightHip,{C0=GC0(RightHip)*cf(0.0179999992, 0.0890000015, 0.0240000002, 0.963333488, -0.157441184, 0.21725744, 0.188684344, 0.973210335, -0.131376699, -0.190753087, 0.16755265, 0.967232823)},"Back","Out",CWTSpeed)
  2403. SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(0, 0, 0, 1, 0, 0, 0, 0.999855518, -0.0169986878, 0, 0.0169986878, 0.999855518)},"Back","Out",CWTSpeed)
  2404. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0, 0, 0, 1, 0, 0, 0, 0.981623828, -0.190826118, 0, 0.190826118, 0.981623828)},"Back","Out",CWTSpeed)
  2405. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0.101000004, 0.196999997, -0.131999999, 0.96127218, 0.259839177, 0.0918665975, -0.275590688, 0.909135759, 0.312285185, -0.0023752898, -0.325508624, 0.945536137)},"Back","Out",CWTSpeed)
  2406. SetTween(Waist,{C0=GC0(Waist)*cf(0, 0, 0, 0.86483556, -0.197025582, 0.461779565, 0.0342732221, 0.940801799, 0.337220043, -0.500884056, -0.275813222, 0.820391536)},"Back","Out",CWTSpeed)
  2407. SetTween(RightWrist,{C0=GC0(RightWrist)*cf(-0.338, 0.0710000023, -0.0850000009, -0.204803467, 0.548764229, -0.810501933, -0.42621839, 0.695426226, 0.57855016, 0.881131887, 0.463939905, 0.0914677158)},"Back","Out",CWTSpeed)
  2408. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(-0.0140000004, 0.0370000005, 0.0529999994, 1, 0, 0, 0, 0.978238225, -0.207484871, 0, 0.207484871, 0.978238225)},"Back","Out",CWTSpeed)
  2409. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(-0.282000005, 0.202000007, 0.0529999994, 0.74609226, -0.149693415, 0.648797512, 0.472477943, 0.805596948, -0.357460648, -0.469159842, 0.573241115, 0.671776533)},"Back","Out",CWTSpeed)
  2410. SetTween(Neck,{C0=GC0(Neck)*cf(0, 0, 0, 0.771060228, -0.0169726983, -0.636536002, 0.261140734, 0.920141995, 0.291794896, 0.580750942, -0.391216934, 0.713917196)},"Back","Out",CWTSpeed)
  2411. wait(CWTSpeed/dahspeed)
  2412.  
  2413.  
  2414. attack=false
  2415. end
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425. function ClickCombo()
  2426. if Anim == "Fall" or Anim == "Jump" then
  2427. Swait()
  2428. else
  2429. if Combo == 0 then
  2430. AT1()
  2431. Combo = 1
  2432. elseif Combo == 1 then
  2433. AT2()
  2434. Combo = 0
  2435. elseif Combo == 2 then
  2436. --AT3()
  2437. Combo = 0
  2438. end
  2439. end
  2440. end
  2441.  
  2442.  
  2443.  
  2444. local Hold = false
  2445.  
  2446. mouse.Button1Down:connect(function()
  2447. if wep == "Katana" then
  2448. Hold= true
  2449. while Hold == true do
  2450. if attack == false then
  2451. legswhileattack = true
  2452. ClickCombo()
  2453. legswhileattack = false
  2454. else
  2455. Swait()
  2456. end
  2457. end
  2458. end
  2459.  
  2460.  
  2461. end)
  2462.  
  2463.  
  2464. mouse.Button1Up:connect(function(key)
  2465.  
  2466. if Hold==true then
  2467.  
  2468. Hold = false
  2469.  
  2470. end
  2471.  
  2472. end)
  2473.  
  2474. isruning=false
  2475. mouse.KeyUp:connect(function(key)
  2476. end)
  2477. mouse.KeyDown:connect(function(key)
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488. if key == "y" and attack == false then
  2489. if mememode == false then
  2490. mememode=true
  2491.  
  2492. --so("1499015636", Character,3, 1)
  2493.  
  2494.  
  2495. coroutine.resume(coroutine.create(function()
  2496. local EYE = CreatePart2(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  2497. local MSH2 = IT("SpecialMesh",EYE)
  2498. MSH2.MeshType = "Sphere"
  2499. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.16,-0.55), CF(0, 0, 0))
  2500. local EYE2 = CreatePart2(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  2501. local MSH3 = IT("SpecialMesh",EYE2)
  2502. MSH3.MeshType = "Sphere"
  2503. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.16,-0.55), CF(0, 0, 0))
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512. while mememode == true do
  2513. coroutine.resume(coroutine.create(function()
  2514. if EYE ~= nil or EYE2 ~= nil then
  2515. for i = 1, 5 do
  2516. Swait()
  2517. EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2*1.5,0)
  2518. EYE2.Mesh.Scale = EYE.Mesh.Scale
  2519. end
  2520. for i = 1, 7 do
  2521. Swait()
  2522. EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2*1.5,0)
  2523. EYE2.Mesh.Scale = EYE.Mesh.Scale
  2524. end
  2525. EYE.Mesh.Scale = VT(.2,1*1.5,.7)
  2526. EYE2.Mesh.Scale = EYE.Mesh.Scale
  2527. end
  2528. end))
  2529.  
  2530. wait(math.random(2,4))
  2531.  
  2532. end
  2533.  
  2534. end))
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540. lastid= "http://www.roblox.com/asset/?id=865102151"
  2541. lastsongpos = 0
  2542. s2.TimePosition = 0
  2543.  
  2544.  
  2545. else
  2546. mememode=false
  2547. CurId=CurId-1
  2548. KeyDown("n")
  2549. for _,v in pairs(Character:children()) do
  2550. if v:IsA("BasePart") and v.Name == "Eyeball" then
  2551. v:Destroy()
  2552. end
  2553. end
  2554. end
  2555. end
  2556.  
  2557.  
  2558. if key == "zero" then
  2559. if isruning == false then
  2560. --isruning=true
  2561. end
  2562. end
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569. if key == "m" then
  2570.  
  2571. if playsong == true then
  2572. playsong = false
  2573. s2:stop()
  2574. elseif playsong == false then
  2575. playsong = true
  2576.  
  2577.  
  2578. s2:play()
  2579. end
  2580.  
  2581. end
  2582.  
  2583.  
  2584.  
  2585. if key == "n" and mememode == false then
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592. CurId = CurId + 1
  2593.  
  2594. if CurId > 16 then
  2595. CurId = 1
  2596.  
  2597. end
  2598. warn("now playing song Nr"..CurId)
  2599. if CurId == 1 then
  2600. lastid= "http://www.roblox.com/asset/?id=463716515"
  2601. elseif CurId == 2 then
  2602. lastid= "http://www.roblox.com/asset/?id=463716515"
  2603. elseif CurId == 3 then
  2604. lastid= "http://www.roblox.com/asset/?id=463716515"
  2605. elseif CurId == 4 then
  2606. lastid= "http://www.roblox.com/asset/?id=463716515"
  2607. elseif CurId == 5 then
  2608. lastid= "http://www.roblox.com/asset/?id=463716515"
  2609. -------------------------
  2610. elseif CurId == 6 then
  2611. lastid= "http://www.roblox.com/asset/?id=463716515"
  2612. elseif CurId == 7 then
  2613. lastid= "http://www.roblox.com/asset/?id=463716515"
  2614. elseif CurId == 8 then
  2615. lastid= "http://www.roblox.com/asset/?id=463716515"
  2616. elseif CurId == 9 then
  2617. lastid= "http://www.roblox.com/asset/?id=463716515"
  2618. elseif CurId == 10 then
  2619. lastid= "http://www.roblox.com/asset/?id=463716515"
  2620. elseif CurId == 11 then
  2621. lastid= "http://www.roblox.com/asset/?id=463716515"
  2622. elseif CurId == 12 then
  2623. lastid= "http://www.roblox.com/asset/?id=463716515"
  2624. elseif CurId == 13 then
  2625. lastid= "http://www.roblox.com/asset/?id=463716515"
  2626. elseif CurId == 14 then
  2627. lastid= "http://www.roblox.com/asset/?id=463716515"
  2628. elseif CurId == 15 then
  2629. lastid= "http://www.roblox.com/asset/?id=463716515"
  2630. elseif CurId == 16 then
  2631. lastid= "http://www.roblox.com/asset/?id=463716515"
  2632. end
  2633.  
  2634.  
  2635. lastsongpos = 0
  2636. s2.TimePosition = lastsongpos
  2637.  
  2638.  
  2639. end
  2640.  
  2641.  
  2642. end)
  2643.  
  2644.  
  2645. Humanoid.Changed:connect(function(Jump)
  2646. if Jump == "Jump" then
  2647. if Humanoid.Jump == true then
  2648. print("Jump")
  2649. end
  2650. end
  2651. end)
  2652. isruning=true
  2653.  
  2654. coroutine.resume(coroutine.create(function()
  2655. while Humanoid.Health>0.001 do
  2656. sine = sine + change
  2657. local hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4*Humanoid.BodyHeightScale.Value*(1+Humanoid.BodyTypeScale.Value/2), Character)
  2658.  
  2659. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2660. local velderp = RootPart.Velocity.y
  2661. if RootPart.Velocity.y > 1 and hitfloor == nil then
  2662. Anim = "Jump"
  2663.  
  2664. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  2665. Anim = "Fall"
  2666. elseif Humanoid.Sit == true then
  2667. Anim = "Sit"
  2668. elseif torvel < 1 and hitfloor ~= nil then
  2669. Anim = "Idle"
  2670. elseif torvel > 2 and hitfloor ~= nil then
  2671.  
  2672. if isruning == false then
  2673. Anim = "Walk"
  2674. else
  2675. Anim = "Run"
  2676. end
  2677.  
  2678.  
  2679.  
  2680. else
  2681. Anim = ""
  2682.  
  2683. end
  2684.  
  2685.  
  2686. local Ccf=CF(RootPart.CFrame.p*VT(1,0,1),(RootPart.CFrame.p+RootPart.CFrame.LookVector)*VT(1,0,1))
  2687. if legswhileattack==true then
  2688. Ccf=CF(LowerTorso.CFrame.p*VT(1,0,1),(LowerTorso.CFrame.p+LowerTorso.CFrame.LookVector)*VT(1,0,1))
  2689. end
  2690.  
  2691. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2692. local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector
  2693. local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector
  2694. --warn(Walktest1.Z.."/"..Walktest1.X)
  2695. --warn(Walktest2.Z.."/"..Walktest2.X)
  2696. forWFB = Walktest1.X+Walktest1.Z
  2697. forWRL = Walktest2.X+Walktest2.Z
  2698.  
  2699.  
  2700. local hdr = CFrame.new(vt(),RootPart.Velocity).lookVector
  2701. local MoveYSpeed = (RootPart.Velocity* Vector3.new(0, 1, 0)).magnitude
  2702. local MoveXZSpeed = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2703.  
  2704. if MoveYSpeed > 50 then
  2705. MoveYSpeed=50
  2706. end
  2707. if MoveXZSpeed > 50 then
  2708. MoveXZSpeed=50
  2709. end
  2710. MoveYSpeed=MoveYSpeed*hdr.Y
  2711.  
  2712. --print(Humanoid.MoveDirection)
  2713. --warn(Torso.CFrame.lookVector)
  2714.  
  2715.  
  2716.  
  2717. coroutine.resume(coroutine.create(function()
  2718.  
  2719.  
  2720. if s2.Parent == nil or s2 == nil then
  2721.  
  2722. s2 = s2c:Clone()
  2723. s2.Parent = Character.UpperTorso
  2724. s2.Name = "BGMusic"
  2725. -- s2.SoundId = lastid
  2726. s2.Pitch = 1
  2727. s2.Volume = 1.5
  2728. s2.Looped = true
  2729. s2.archivable = false
  2730. s2.TimePosition = lastsongpos
  2731. if playsong == true then
  2732. s2:play()
  2733. elseif playsong == false then
  2734. s2:stop()
  2735. end
  2736.  
  2737.  
  2738. else
  2739. lastsongpos=s2.TimePosition
  2740.  
  2741. if mememode == false then
  2742. s2.Pitch = 0.20+ math.random(600,1000)/1000
  2743.  
  2744. s2.Volume = 1.5
  2745. else
  2746.  
  2747. s2.Pitch = 1--0.8 + math.random(1,40)/10
  2748.  
  2749. s2.Volume =2
  2750.  
  2751. end
  2752.  
  2753.  
  2754. s2.Looped = true
  2755. s2.SoundId = lastid
  2756. s2.EmitterSize = 30
  2757. end
  2758.  
  2759.  
  2760.  
  2761. end))
  2762.  
  2763.  
  2764.  
  2765.  
  2766. inairvel=torvel*1
  2767.  
  2768. --forWRL
  2769. if inairvel > 30 then
  2770. inairvel=30
  2771. end
  2772. inairvel=inairvel/50*2
  2773.  
  2774.  
  2775.  
  2776. if attack == false then
  2777. SetTween(RightWrist,{C0=GC0(RightWrist)},"Quad","Out",.2)
  2778.  
  2779.  
  2780.  
  2781.  
  2782. if Anim == "Jump" then
  2783. change = 0.60*2
  2784.  
  2785. local annumber = 10
  2786.  
  2787. --Head,Torso
  2788. SetTween(Root,{C0=GC0(Root)*cf(0,.5,0)*angles(math.rad( (- 1.8*MoveXZSpeed *(MoveYSpeed/annumber))*forWFB ),math.rad(0),math.rad( (- 1.8*MoveXZSpeed *(MoveYSpeed/annumber))*forWRL ))},"Quad","Out",.2)
  2789. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad( ( 1.2*MoveXZSpeed *(MoveYSpeed/annumber)*forWFB ) ),math.rad(0),math.rad( ( 1.2*MoveXZSpeed *(MoveYSpeed/annumber)*forWRL ) ))},"Quad","Out",.3)
  2790. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2791. ---------
  2792. --RightArm
  2793.  
  2794. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,.0*(MoveYSpeed/annumber))*angles(math.rad(90*(MoveYSpeed/annumber)),math.rad(0),math.rad(10))},"Quad","Out",.3)
  2795. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(90*(MoveYSpeed/annumber)),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2796.  
  2797. ---------
  2798. --LeftArm
  2799. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,.0*(MoveYSpeed/annumber))*angles(math.rad(90*(MoveYSpeed/annumber)),math.rad(0),math.rad(-10))},"Quad","Out",.3)
  2800. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(90*(MoveYSpeed/annumber)),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2801. ---------
  2802. --RightLeg
  2803. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2804. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(-90),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2805. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2806. ---------
  2807. --LeftLeg
  2808. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2809. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2810. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2811. ---------
  2812.  
  2813. SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  2814.  
  2815. -- print(MoveXZSpeed)-- MoveYSpeed
  2816. elseif Anim == "Fall" then
  2817. change = 0.60*2
  2818.  
  2819. local annumber = 40
  2820. --Head,Torso
  2821. SetTween(Root,{C0=GC0(Root)*cf(0,-.2,0)*angles(math.rad( (- 1.2*MoveXZSpeed *(MoveYSpeed/annumber)) *forWFB ),math.rad(0),math.rad( (- 1.2*MoveXZSpeed *(MoveYSpeed/annumber)) *forWRL))},"Quad","Out",.3)
  2822. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad( (- 1.2*MoveXZSpeed *(MoveYSpeed/annumber)) *forWFB ),math.rad(0),math.rad( (- 1.2*MoveXZSpeed *(MoveYSpeed/annumber)) *forWRL ))},"Quad","Out",.3)
  2823. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2824. ---------
  2825. --RightArm
  2826.  
  2827. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,.0*(MoveYSpeed/annumber))*angles(math.rad(90*(MoveYSpeed/annumber)),math.rad(0),math.rad(45))},"Quad","Out",.3)
  2828. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2829.  
  2830.  
  2831. ---------
  2832. --LeftArm
  2833. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,.0*(MoveYSpeed/annumber))*angles(math.rad(90*(MoveYSpeed/annumber)),math.rad(0),math.rad(-45))},"Quad","Out",.3)
  2834. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2835.  
  2836. ---------
  2837. --RightLeg
  2838. SetTween(RightHip,{C0=GC0(RightHip)*cf(0,0,0)*angles(math.rad(-MoveYSpeed),math.rad(10),math.rad(0))},"Quad","Out",.3)
  2839. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2840. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2841. ---------
  2842. --LeftLeg
  2843. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0,0,0)*angles(math.rad(-MoveYSpeed),math.rad(-10),math.rad(0))},"Quad","Out",.3)
  2844. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad(MoveYSpeed),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2845. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.3)
  2846. ---------
  2847.  
  2848.  
  2849. SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  2850.  
  2851. elseif Anim == "Idle" then
  2852.  
  2853.  
  2854.  
  2855.  
  2856. change = (0.60*9.5)
  2857.  
  2858. --Head,Torso
  2859. SetTween(Root,{C0=GC0(Root)*cf(0,(-.6-.9*math.cos(sine/16))*Humanoid.BodyHeightScale.Value*(1+Humanoid.BodyTypeScale.Value/1.5),(0.4*math.sin(sine/16))*Humanoid.BodyHeightScale.Value*(1+Humanoid.BodyTypeScale.Value/1.5))*angles(math.rad(0+20*math.sin(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2860. SetTween(Waist,{C0=GC0(Waist)*angles(math.rad(0-30*math.cos(sine/32)),math.rad(0- 15.5 * math.cos(sine / 128 +.4* math.cos(sine / 16))),math.rad(0+15*math.sin(sine/64)))},"Quad","Out",.25)
  2861. SetTween(Neck,{C0=GC0(Neck)*angles(math.rad(-10+90*math.sin(sine/16)),math.rad(0- 25.5 * math.cos(sine / 128 +.4* math.cos(sine / 16))),math.rad(0))},"Quad","Out",.35)
  2862.  
  2863. ---------
  2864. --RightArm
  2865.  
  2866. SetTween(RightShoulder,{C0=GC0(RightShoulder)*angles(math.rad((-0+85*math.sin(sine/32))- 5.5 * math.cos(sine / 64 +.4* math.sin(sine / 32))),math.rad(25*math.sin(sine/32)),math.rad((25*math.sin(sine/16))+35*math.sin(sine/64) ))},"Quad","Out",.2)
  2867. SetTween(RightElbow,{C0=GC0(RightElbow)*angles(math.rad(45-45*math.cos(sine/32)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2868.  
  2869. ---------
  2870. --LeftArm
  2871.  
  2872. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*angles(math.rad((-0+85*math.sin(sine/32))+ 5.5 * math.cos(sine / 64 +.4* math.sin(sine / 32))),math.rad(-25*math.sin(sine/32)),math.rad((-25*math.sin(sine/16))+35*math.sin(sine/64)))},"Quad","Out",.2)
  2873. SetTween(LeftElbow,{C0=GC0(LeftElbow)*angles(math.rad(45-45*math.cos(sine/32)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2874.  
  2875.  
  2876.  
  2877.  
  2878. ---------
  2879. --RightLeg
  2880. SetTween(RightHip,{C0=GC0(RightHip)*angles(math.rad(45+45*math.cos(sine/16)),math.rad(0),math.rad(5.5+0.5*math.cos(sine/16)))},"Quad","Out",.2)
  2881. SetTween(RightKnee,{C0=GC0(RightKnee)*angles(math.rad(-90-90*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2882. SetTween(RightAnkle,{C0=GC0(RightAnkle)*angles(math.rad(10+10*math.cos(sine/16)),math.rad(0),math.rad(1.5+1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2883. ---------
  2884. --LeftLeg
  2885. SetTween(LeftHip,{C0=GC0(LeftHip)*angles(math.rad(45+45*math.cos(sine/16)),math.rad(0),math.rad(-5.5-.5*math.cos(sine/16)))},"Quad","Out",.2)
  2886. SetTween(LeftKnee,{C0=GC0(LeftKnee)*angles(math.rad(-90-90*math.cos(sine/16)),math.rad(0),math.rad(0))},"Quad","Out",.2)
  2887. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*angles(math.rad(10+10*math.cos(sine/16)),math.rad(0),math.rad(-1.5-1.5*math.cos(sine/16)))},"Quad","Out",.2)
  2888. ---------
  2889. Humanoid.JumpPower = 140
  2890. Humanoid.WalkSpeed=16*.6
  2891.  
  2892.  
  2893. SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  2894.  
  2895.  
  2896. elseif Anim == "Walk" then
  2897. local speed=.7 --0.7
  2898. local torsomove = 20 --10
  2899. local armsmove = 10 --10
  2900. local leglift = 20 --30
  2901. local legturn =40 --40
  2902. local legwalk = 45 --25
  2903. --SetTween(Root,{C0=cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2904. change = 2.8*speed
  2905. Humanoid.JumpPower = 70
  2906. Humanoid.WalkSpeed=16*speed
  2907. --Head,Torso
  2908. SetTween(Root,{C0=GC0(Root)*cf(((legwalk/25)/100)*forWRL*math.cos(sine/4),((torsomove/100)*math.sin(sine/4))*Humanoid.BodyHeightScale.Value*(1+Humanoid.BodyTypeScale.Value/1.5),((legwalk/25)/100)*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*10)+(forWFB*7.5)*math.sin(sine/4) ),math.rad((-20*math.cos(sine/8))+(-forWRL*(torsomove/2)) ),math.rad( ((-forWRL*(torsomove/2))+(forWRL*(torsomove/2))*math.sin(sine/4))-(torsomove/2)*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  2909. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad((torsomove)*math.cos(sine/8)),math.rad((torsomove/2)*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  2910. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad((forWFB*10)-(forWFB*(torsomove/2))*math.sin(sine/4) ),math.rad(((torsomove)*math.cos(sine/8))+(-45*forWRL)),math.rad((forWRL*(torsomove/2))-(forWRL*(torsomove/2))*math.sin(sine/4)))},"Quad","Out",.2)
  2911.  
  2912.  
  2913. ---------
  2914. --RightArm
  2915.  
  2916. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad((armsmove)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2917. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(5+(armsmove/2)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2918.  
  2919. ---------
  2920. --LeftArm
  2921.  
  2922. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(-(armsmove)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2923. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(5-(armsmove/2)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2924.  
  2925.  
  2926. ---------
  2927. --RightLeg
  2928. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(((-forWRL*(leglift/4))*math.sin(sine/8) )+( (leglift/2)-(leglift/2)*math.cos(sine/8) )+(-forWFB*legwalk)*math.sin(sine/8) ),math.rad((legturn/4)*math.cos(sine/8)),math.rad(((-forWRL*legwalk)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  2929. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -leglift+(1*leglift)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  2930. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((leglift/4)*math.cos(sine/8) ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  2931. ---------
  2932. --LeftLeg
  2933. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad(((forWRL*(leglift/4))*math.sin(sine/8) ) +((leglift/2)+(leglift/2)*math.cos(sine/8) )-(-forWFB*legwalk)*math.sin(sine/8) ),math.rad((legturn/4)*math.cos(sine/8)),math.rad((-(-forWRL*legwalk)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  2934. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -leglift-(1*leglift)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  2935. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(leglift/4)*math.cos(sine/8) ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  2936. ---------
  2937. if wep ~="Shotgun" and wep ~="Rifle" then
  2938. SetTween(LeftWrist,{C0=GC0(LeftWrist)},"Quad","Out",.2)
  2939. else
  2940. SetTween(LeftWrist,{C0=GC0(LeftWrist)*cf(.3,-.15,-.25)*angles(math.rad(0),math.rad(90),math.rad(90))},"Quad","Out",.2)
  2941. end
  2942. elseif Anim == "Run" then
  2943. local speed=0.8 --0.7
  2944. local torsomove = 100 --10
  2945. local armsmove = 100 --10
  2946. local leglift = 80 --30
  2947. local legturn =90 --40
  2948. local legwalk = 90 --25
  2949. --SetTween(Root,{C0=cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2950. change = 2.8*speed
  2951. Humanoid.JumpPower = 140
  2952. Humanoid.WalkSpeed=36*speed
  2953. --Head,Torso
  2954. SetTween(Root,{C0=GC0(Root)*cf(((legwalk/25)/100)*forWRL*math.cos(sine/4),(torsomove/100)*math.sin(sine/4),((legwalk/25)/100)*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*10)+(forWFB*7.5)*math.sin(sine/4) ),math.rad((-20*math.cos(sine/8))+(-forWRL*(torsomove/2)) ),math.rad( ((-forWRL*(torsomove/2))+(forWRL*(torsomove/2))*math.sin(sine/4))-(torsomove/2)*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  2955. SetTween(Waist,{C0=GC0(Waist)*cf(0,0,0)*angles(math.rad(0),math.rad((torsomove)*math.cos(sine/8)),math.rad((torsomove/2)*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  2956. SetTween(Neck,{C0=GC0(Neck)*cf(0,0,0)*angles(math.rad((forWFB*10)-(forWFB*(torsomove/2))*math.sin(sine/4) ),math.rad(((torsomove)*math.cos(sine/8))+(-45*forWRL)),math.rad((forWRL*(torsomove/2))-(forWRL*(torsomove/2))*math.sin(sine/4)))},"Quad","Out",.2)
  2957.  
  2958.  
  2959. ---------
  2960. --RightArm
  2961.  
  2962. SetTween(RightShoulder,{C0=GC0(RightShoulder)*cf(0,0,0)*angles(math.rad((armsmove)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2963. SetTween(RightElbow,{C0=GC0(RightElbow)*cf(0,0,0)*angles(math.rad(5+(armsmove/2)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2964.  
  2965. ---------
  2966. --LeftArm
  2967.  
  2968. SetTween(LeftShoulder,{C0=GC0(LeftShoulder)*cf(0,0,0)*angles(math.rad(-(armsmove)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2969. SetTween(LeftElbow,{C0=GC0(LeftElbow)*cf(0,0,0)*angles(math.rad(5-(armsmove/2)*forWFB*math.sin(sine/8)),math.rad(0),math.rad(0))},"Quad","Out",.1)
  2970.  
  2971.  
  2972. ---------
  2973. --RightLeg
  2974. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(((-forWRL*(leglift/4))*math.sin(sine/8) )+( (leglift/2)-(leglift/2)*math.cos(sine/8) )+(-forWFB*legwalk)*math.sin(sine/8) ),math.rad((legturn/4)*math.cos(sine/8)),math.rad(((-forWRL*legwalk)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  2975. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -leglift+(1*leglift)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  2976. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((leglift/4)*math.cos(sine/8) ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  2977. ---------
  2978. --LeftLeg
  2979. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad(((forWRL*(leglift/4))*math.sin(sine/8) ) +((leglift/2)+(leglift/2)*math.cos(sine/8) )-(-forWFB*legwalk)*math.sin(sine/8) ),math.rad((legturn/4)*math.cos(sine/8)),math.rad((-(-forWRL*legwalk)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  2980. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -leglift-(1*leglift)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  2981. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(leglift/4)*math.cos(sine/8) ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  2982. ---------
  2983.  
  2984. elseif Anim == "Sit" then
  2985.  
  2986. end
  2987. end
  2988.  
  2989. if legswhileattack == true and attack == true then
  2990.  
  2991. if Anim == "Walk" then
  2992. local speed=0.7
  2993.  
  2994. change = 2.8*speed
  2995. SetTween(Root,{C0=GC0(Root)*cf(.1*forWRL*math.cos(sine/4),.1*math.sin(sine/4),.1*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*10)+(forWFB*7.5)*math.sin(sine/4) ),math.rad((-20*math.cos(sine/8))+(-forWRL*5) ),math.rad( ((-forWRL*5)+(forWRL*5)*math.sin(sine/4))-5*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  2996.  
  2997. ---------
  2998. --RightLeg
  2999. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(((-forWRL*10)*math.sin(sine/8) )+( (1*20)-(1*20)*math.cos(sine/8) )+(-forWFB*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-forWRL*25)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  3000. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -40+(1*40)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  3001. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((forWFB*10)*math.cos(sine/8) ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  3002. ---------
  3003. --LeftLeg
  3004. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad(((forWRL*10)*math.sin(sine/8) ) +((1*20)+(1*20)*math.cos(sine/8) )-(-forWFB*25)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-forWRL*25)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  3005. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -40-(1*40)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  3006. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(forWFB*10)*math.cos(sine/8) ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  3007. ---------
  3008. elseif Anim == "Run" then
  3009. local speed=1.2
  3010.  
  3011. change = 2.8*speed
  3012. Humanoid.JumpPower = 70
  3013.  
  3014. SetTween(Root,{C0=GC0(Root)*cf(.2*forWRL*math.cos(sine/4),.2*math.sin(sine/4),.2*forWFB*math.cos(sine/4))*angles(math.rad((-forWFB*20)+(forWFB*10)*math.sin(sine/4) ),math.rad(-20*math.cos(sine/8) ),math.rad( ((-forWRL*10)+(forWRL*10)*math.sin(sine/4))-5*forWFB*math.cos(sine/8) ))},"Quad","Out",.2)
  3015.  
  3016. ---------
  3017. --RightLeg
  3018. SetTween(RightHip,{C0=GC0(RightHip)*cf(-0.1*forWRL*math.sin(sine/8),0,0.1*forWFB*math.sin(sine/8))*angles(math.rad(( (1*30)-(1*29)*math.cos(sine/8) )+(-forWFB*45)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad(((-forWRL*45)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  3019. SetTween(RightKnee,{C0=GC0(RightKnee)*cf(0,0,0)*angles(math.rad( -50+(1*50)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  3020. SetTween(RightAnkle,{C0=GC0(RightAnkle)*cf(0,0,0)*angles(math.rad((forWFB*10)*math.cos(sine/8) ),math.rad(0),math.rad(-(forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  3021. ---------
  3022. --LeftLeg
  3023. SetTween(LeftHip,{C0=GC0(LeftHip)*cf(0.1*forWRL*math.sin(sine/8),0,-0.1*forWFB*math.sin(sine/8))*angles(math.rad( ((1*30)+(1*29)*math.cos(sine/8) )-(-forWFB*45)*math.sin(sine/8) ),math.rad(10*math.cos(sine/8)),math.rad((-(-forWRL*45)*math.sin(sine/8) )+forWRL*0))},"Quad","Out",.1)
  3024. SetTween(LeftKnee,{C0=GC0(LeftKnee)*cf(0,0,0)*angles(math.rad( -50-(1*50)*math.cos(sine/8) ),math.rad(0),math.rad(forWRL*0))},"Quad","Out",.1)
  3025. SetTween(LeftAnkle,{C0=GC0(LeftAnkle)*cf(0,0,0)*angles(math.rad(-(forWFB*10)*math.cos(sine/8) ),math.rad(0),math.rad((forWRL*10)*math.cos(sine/8) ))},"Quad","Out",.1)
  3026. ---------
  3027. end
  3028. end
  3029.  
  3030.  
  3031.  
  3032. Swait(Animstep)
  3033. end
  3034. end))
  3035. coroutine.resume(coroutine.create(function()
  3036. local remote = Instance.new 'RemoteFunction';
  3037. remote.Parent = Character;
  3038. remote.OnServerInvoke = function (player, request, ...)
  3039. if (player ~= Player) then
  3040. return error ('You cannot invoke this remote', 0);
  3041. end;
  3042.  
  3043.  
  3044.  
  3045. if (request == 1) then
  3046. local k = ...;
  3047.  
  3048. KeyDownF(k)
  3049.  
  3050.  
  3051.  
  3052. end;
  3053. if (request == 2) then
  3054. local k = ...;
  3055.  
  3056. KeyUpF(k)
  3057.  
  3058.  
  3059.  
  3060. end;
  3061. if (request == 3) then
  3062. local k = ...;
  3063. if k == "Down" then
  3064. Button1DownF(k)
  3065. elseif k == "Up" then
  3066. Button1UpF(k)
  3067. end
  3068. end;
  3069.  
  3070.  
  3071. if (request == 4) then
  3072. local k=...;
  3073. --MTARGET=k
  3074. end
  3075. if (request == 5) then
  3076. local k=...;
  3077. Target=k
  3078.  
  3079. end
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085. end;
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099. remote.Name = 'ServerRemote';
  3100. --local remote = NLS ([=[
  3101.  
  3102.  
  3103.  
  3104. --local localscript = script.Keys
  3105. --localscript.Name = Player.Name
  3106. --localscript.Parent = Character
  3107.  
  3108. --]=], Player.Character)
  3109. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement