HenloMyDude

AHHHH (R15)

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