DatOneTrap

Untitled

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