Advertisement
Penien23

Im Back

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