Advertisement
yougotoof

yuu

Jan 1st, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.08 KB | None | 0 0
  1. s = Instance.new("Sound")
  2.  
  3. s.Name = "Sound"
  4. s.SoundId = "http://www.roblox.com/asset/?id=245913129"
  5. s.Volume = 100
  6. s.Looped = true
  7. s.archivable = false
  8. s.Parent = game.Workspace
  9.  
  10. wait(3)
  11.  
  12. s:play()
  13.  
  14. --https://github.com/Mokiros/roblox-FE-compatibility
  15. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  16. local Player,game,owner = owner,game
  17. local RealPlayer = Player
  18. do
  19. print("FE Compatibility code by Mokiros")
  20. local rp = RealPlayer
  21. script.Parent = rp.Character
  22.  
  23. --RemoteEvent for communicating
  24. local Event = Instance.new("RemoteEvent")
  25. Event.Name = "UserInput_Event"
  26.  
  27. --Fake event to make stuff like Mouse.KeyDown work
  28. local function fakeEvent()
  29. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  30. t.connect = t.Connect
  31. return t
  32. end
  33.  
  34. --Creating fake input objects with fake variables
  35. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  36. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  37. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  38. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  39. end}
  40. --Merged 2 functions into one by checking amount of arguments
  41. CAS.UnbindAction = CAS.BindAction
  42.  
  43. --This function will trigger the events that have been :Connect()'ed
  44. local function te(self,ev,...)
  45. local t = m[ev]
  46. if t and t._fakeEvent then
  47. for _,f in pairs(t.Functions) do
  48. f(...)
  49. end
  50. end
  51. end
  52. m.TrigEvent = te
  53. UIS.TrigEvent = te
  54.  
  55. Event.OnServerEvent:Connect(function(plr,io)
  56. if plr~=rp then return end
  57. m.Target = io.Target
  58. m.Hit = io.Hit
  59. if not io.isMouse then
  60. local b = io.UserInputState == Enum.UserInputState.Begin
  61. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  62. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  63. end
  64. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  65. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  66. end
  67. for _,t in pairs(CAS.Actions) do
  68. for _,k in pairs(t.Keys) do
  69. if k==io.KeyCode then
  70. t.Function(t.Name,io.UserInputState,io)
  71. end
  72. end
  73. end
  74. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  75. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  76. end
  77. end)
  78. Event.Parent = NLS([==[
  79. local Player = game:GetService("Players").LocalPlayer
  80. local Event = script:WaitForChild("UserInput_Event")
  81.  
  82. local Mouse = Player:GetMouse()
  83. local UIS = game:GetService("UserInputService")
  84. local input = function(io,a)
  85. if a then return end
  86. --Since InputObject is a client-side instance, we create and pass table instead
  87. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  88. end
  89. UIS.InputBegan:Connect(input)
  90. UIS.InputEnded:Connect(input)
  91.  
  92. local h,t
  93. --Give the server mouse data 30 times every second, but only if the values changed
  94. --If player is not moving their mouse, client won't fire events
  95. while wait(1/30) do
  96. if h~=Mouse.Hit or t~=Mouse.Target then
  97. h,t=Mouse.Hit,Mouse.Target
  98. Event:FireServer({isMouse=true,Target=t,Hit=h})
  99. end
  100. end]==],Player.Character)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local _rg = game
  105.  
  106. --Metatable for fake service
  107. local fsmt = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  122. return setmetatable(t,fsmt)
  123. end
  124.  
  125. --Fake game object
  126. local g = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or _rg:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = _rg:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  147. g.service = g.GetService
  148. FakeService(g,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = g,g.Players.LocalPlayer
  151. end
  152.  
  153. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  154. wait(1 / 60)
  155. Effects = { }
  156. local Player = game.Players.localPlayer
  157. local Character = Player.Character
  158. local Humanoid = Character.Humanoid
  159. local mouse = Player:GetMouse()
  160. local m = Instance.new('Model', Character)
  161. m.Name = "WeaponModel"
  162. local LeftArm = Character["Left Arm"]
  163. local RightArm = Character["Right Arm"]
  164. local LeftLeg = Character["Left Leg"]
  165. local RightLeg = Character["Right Leg"]
  166. local Head = Character.Head
  167. local Torso = Character.Torso
  168. local cam = game.Workspace.CurrentCamera
  169. local RootPart = Character.HumanoidRootPart
  170. local RootJoint = RootPart.RootJoint
  171. local equipped = false
  172. local attack = false
  173. local Anim = 'Idle'
  174. local idle = 0
  175. local attacktype = 1
  176. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  177. local velocity = RootPart.Velocity.y
  178. local sine = 0
  179. local change = 1
  180. local grabbed = false
  181. local cn = CFrame.new
  182. local mr = math.rad
  183. local angles = CFrame.Angles
  184. local ud = UDim2.new
  185. local c3 = Color3.new
  186.  
  187. Humanoid.Animator.Parent = nil
  188. Character.Animate.Parent = nil
  189.  
  190. local newMotor = function(part0, part1, c0, c1)
  191. local w = Instance.new('Motor', part0)
  192. w.Part0 = part0
  193. w.Part1 = part1
  194. w.C0 = c0
  195. w.C1 = c1
  196. return w
  197. end
  198.  
  199. function clerp(a, b, t)
  200. return a:lerp(b, t)
  201. end
  202.  
  203. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  204. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  205.  
  206. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  207. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  208. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  209. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  210. RootJoint.C1 = CFrame.new(0, 0, 0)
  211. RootJoint.C0 = CFrame.new(0, 0, 0)
  212. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  213. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  214.  
  215. local rarmc1 = RW.C1
  216. local larmc1 = LW.C1
  217. local rlegc1 = RH.C1
  218. local llegc1 = LH.C1
  219.  
  220. local resetc1 = false
  221.  
  222. function PlayAnimationFromTable(table, speed, bool)
  223. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  224. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  225. RW.C0 = clerp(RW.C0, table[3], speed)
  226. LW.C0 = clerp(LW.C0, table[4], speed)
  227. RH.C0 = clerp(RH.C0, table[5], speed)
  228. LH.C0 = clerp(LH.C0, table[6], speed)
  229. if bool == true then
  230. if resetc1 == false then
  231. resetc1 = true
  232. RootJoint.C1 = RootJoint.C1
  233. Torso.Neck.C1 = Torso.Neck.C1
  234. RW.C1 = rarmc1
  235. LW.C1 = larmc1
  236. RH.C1 = rlegc1
  237. LH.C1 = llegc1
  238. end
  239. end
  240. end
  241.  
  242. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  243.  
  244. ArtificialHB = Instance.new("BindableEvent", script)
  245. ArtificialHB.Name = "Heartbeat"
  246.  
  247. script:WaitForChild("Heartbeat")
  248.  
  249. frame = 1 / 30
  250. tf = 0
  251. allowframeloss = false
  252. tossremainder = false
  253. lastframe = tick()
  254. script.Heartbeat:Fire()
  255.  
  256. game:GetService("RunService").Heartbeat:connect(function(s, p)
  257. tf = tf + s
  258. if tf >= frame then
  259. if allowframeloss then
  260. script.Heartbeat:Fire()
  261. lastframe = tick()
  262. else
  263. for i = 1, math.floor(tf / frame) do
  264. script.Heartbeat:Fire()
  265. end
  266. lastframe = tick()
  267. end
  268. if tossremainder then
  269. tf = 0
  270. else
  271. tf = tf - frame * math.floor(tf / frame)
  272. end
  273. end
  274. end)
  275.  
  276. function swait(num)
  277. if num == 0 or num == nil then
  278. ArtificialHB.Event:wait()
  279. else
  280. for i = 0, num do
  281. ArtificialHB.Event:wait()
  282. end
  283. end
  284. end
  285.  
  286. local RbxUtility = LoadLibrary("RbxUtility")
  287. local Create = RbxUtility.Create
  288.  
  289. function RemoveOutlines(part)
  290. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  291. end
  292.  
  293. CFuncs = {
  294. ["Part"] = {
  295. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  296. local Part = Create("Part"){
  297. Parent = Parent,
  298. Reflectance = Reflectance,
  299. Transparency = Transparency,
  300. CanCollide = false,
  301. Locked = true,
  302. BrickColor = BrickColor.new(tostring(BColor)),
  303. Name = Name,
  304. Size = Size,
  305. Material = Material,
  306. }
  307. RemoveOutlines(Part)
  308. return Part
  309. end;
  310. };
  311.  
  312. ["Mesh"] = {
  313. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  314. local Msh = Create(Mesh){
  315. Parent = Part,
  316. Offset = OffSet,
  317. Scale = Scale,
  318. }
  319. if Mesh == "SpecialMesh" then
  320. Msh.MeshType = MeshType
  321. Msh.MeshId = MeshId
  322. end
  323. return Msh
  324. end;
  325. };
  326.  
  327. ["Mesh"] = {
  328. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  329. local Msh = Create(Mesh){
  330. Parent = Part,
  331. Offset = OffSet,
  332. Scale = Scale,
  333. }
  334. if Mesh == "SpecialMesh" then
  335. Msh.MeshType = MeshType
  336. Msh.MeshId = MeshId
  337. end
  338. return Msh
  339. end;
  340. };
  341.  
  342. ["Weld"] = {
  343. Create = function(Parent, Part0, Part1, C0, C1)
  344. local Weld = Create("Weld"){
  345. Parent = Parent,
  346. Part0 = Part0,
  347. Part1 = Part1,
  348. C0 = C0,
  349. C1 = C1,
  350. }
  351. return Weld
  352. end;
  353. };
  354.  
  355. ["Sound"] = {
  356. Create = function(id, par, vol, pit)
  357. coroutine.resume(coroutine.create(function()
  358. local S = Create("Sound"){
  359. Volume = vol,
  360. Pitch = pit or 1,
  361. SoundId = id,
  362. Parent = par or workspace,
  363. }
  364. Instance.new("DistortionSoundEffect", S).Level = 1
  365. wait()
  366. S:play()
  367. game:GetService("Debris"):AddItem(S, 10)
  368. end))
  369. end;
  370. };
  371.  
  372. ["ParticleEmitter"] = {
  373. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  374. local fp = Create("ParticleEmitter"){
  375. Parent = Parent,
  376. Color = ColorSequence.new(Color1, Color2),
  377. LightEmission = LightEmission,
  378. Size = Size,
  379. Texture = Texture,
  380. Transparency = Transparency,
  381. ZOffset = ZOffset,
  382. Acceleration = Accel,
  383. Drag = Drag,
  384. LockedToPart = LockedToPart,
  385. VelocityInheritance = VelocityInheritance,
  386. EmissionDirection = EmissionDirection,
  387. Enabled = Enabled,
  388. Lifetime = LifeTime,
  389. Rate = Rate,
  390. Rotation = Rotation,
  391. RotSpeed = RotSpeed,
  392. Speed = Speed,
  393. VelocitySpread = VelocitySpread,
  394. }
  395. return fp
  396. end;
  397. };
  398. }
  399.  
  400. function rayCast(Position, Direction, Range, Ignore)
  401. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  402. end
  403.  
  404. local function GetNearest(obj, distance)
  405. local last, lastx = distance + 1
  406. for i, v in pairs(workspace:GetChildren()) do
  407. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  408. local t = v.Torso
  409. local dist = (t.Position - obj.Position).magnitude
  410. if dist <= distance then
  411. if dist < last then
  412. last = dist
  413. lastx = v
  414. end
  415. end
  416. end
  417. end
  418. return lastx
  419. end
  420.  
  421. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  422.  
  423. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  424. for i, v in pairs(hit:GetChildren()) do
  425. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  426. local find = v:FindFirstChild("DebounceHit")
  427. if not find then
  428. if v.Parent:findFirstChild("Head") then
  429. local BillG = Create("BillboardGui"){
  430. Parent = v.Parent.Head,
  431. Size = UDim2.new(1, 0, 1, 0),
  432. Adornee = v.Parent.Head,
  433. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  434. }
  435. local TL = Create("TextLabel"){
  436. Parent = BillG,
  437. Size = UDim2.new(3, 3, 3, 3),
  438. BackgroundTransparency = 1,
  439. Text = tostring(damage).."-",
  440. TextColor3 = Color1.Color,
  441. TextStrokeColor3 = Color2.Color,
  442. TextStrokeTransparency = 0,
  443. TextXAlignment = Enum.TextXAlignment.Center,
  444. TextYAlignment = Enum.TextYAlignment.Center,
  445. FontSize = Enum.FontSize.Size18,
  446. Font = "ArialBold",
  447. }
  448. coroutine.resume(coroutine.create(function()
  449. swait(1)
  450. for i = 0, 1, .1 do
  451. swait(.1)
  452. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  453. end
  454. BillG:Destroy()
  455. end))
  456. end
  457. v.Health = v.Health - damage
  458. local bool = Create("BoolValue"){
  459. Parent = v,
  460. Name = "DebounceHit",
  461. }
  462. if HSound ~= nil and HPitch ~= nil then
  463. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  464. end
  465. game:GetService("Debris"):AddItem(bool, cooldown)
  466. end
  467. end
  468. end
  469. end
  470.  
  471. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  472. for _, c in pairs(workspace:children()) do
  473. local hum = c:findFirstChild("Humanoid")
  474. if hum ~= nil then
  475. local head = c:findFirstChild("Torso")
  476. if head ~= nil then
  477. local targ = head.Position - Part.Position
  478. local mag = targ.magnitude
  479. if mag <= magni and c.Name ~= Player.Name then
  480. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  481. end
  482. end
  483. end
  484. end
  485. end
  486.  
  487. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  488. HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  489. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  490. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  491. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  492. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  493. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
  494. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.300000191, -0.400000095, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  495. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
  496. Part.Mesh.TextureId = "rbxassetid://435840335"
  497.  
  498. EffectModel = Instance.new("Model", Character)
  499. EffectModel.Name = "Effects"
  500.  
  501. Effects = {
  502. ["Block"] = {
  503. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  504. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  505. prt.Anchored = true
  506. prt.CFrame = cframe
  507. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  508. game:GetService("Debris"):AddItem(prt, 10)
  509. if Type == 1 or Type == nil then
  510. table.insert(Effects, {
  511. prt,
  512. "Block1",
  513. delay,
  514. x3,
  515. y3,
  516. z3,
  517. msh
  518. })
  519. elseif Type == 2 then
  520. table.insert(Effects, {
  521. prt,
  522. "Block2",
  523. delay,
  524. x3,
  525. y3,
  526. z3,
  527. msh
  528. })
  529. end
  530. end;
  531. };
  532.  
  533. ["Cylinder"] = {
  534. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  535. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  536. prt.Anchored = true
  537. prt.CFrame = cframe
  538. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  539. game:GetService("Debris"):AddItem(prt, 2)
  540. Effects[#Effects + 1] = {
  541. prt,
  542. "Cylinder",
  543. delay,
  544. x3,
  545. y3,
  546. z3
  547. }
  548. end;
  549. };
  550.  
  551. ["Sphere"] = {
  552. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  553. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  554. prt.Anchored = true
  555. prt.CFrame = cframe
  556. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  557. game:GetService("Debris"):AddItem(prt, 10)
  558. table.insert(Effects, {
  559. prt,
  560. "Cylinder",
  561. delay,
  562. x3,
  563. y3,
  564. z3,
  565. msh
  566. })
  567. end;
  568. };
  569.  
  570. ["Elec"] = {
  571. Create = function(cff, x, y, z)
  572. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  573. prt.Anchored = true
  574. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  575. prt.CFrame = CFrame.new(prt.Position)
  576. game:GetService("Debris"):AddItem(prt, 2)
  577. local xval = math.random() / 2
  578. local yval = math.random() / 2
  579. local zval = math.random() / 2
  580. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  581. table.insert(Effects, {
  582. prt,
  583. "Elec",
  584. 0.1,
  585. x,
  586. y,
  587. z,
  588. xval,
  589. yval,
  590. zval
  591. })
  592. end;
  593.  
  594. };
  595.  
  596. ["Ring"] = {
  597. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  598. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  599. prt.Anchored = true
  600. prt.CFrame = cframe
  601. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  602. game:GetService("Debris"):AddItem(prt, 10)
  603. table.insert(Effects, {
  604. prt,
  605. "Cylinder",
  606. delay,
  607. x3,
  608. y3,
  609. z3,
  610. msh
  611. })
  612. end;
  613. };
  614.  
  615.  
  616. ["Wave"] = {
  617. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  618. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  619. prt.Anchored = true
  620. prt.CFrame = cframe
  621. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  622. game:GetService("Debris"):AddItem(prt, 10)
  623. table.insert(Effects, {
  624. prt,
  625. "Cylinder",
  626. delay,
  627. x3,
  628. y3,
  629. z3,
  630. msh
  631. })
  632. end;
  633. };
  634.  
  635. ["Break"] = {
  636. Create = function(brickcolor, cframe, x1, y1, z1)
  637. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  638. prt.Anchored = true
  639. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  640. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  641. local num = math.random(10, 50) / 1000
  642. game:GetService("Debris"):AddItem(prt, 10)
  643. table.insert(Effects, {
  644. prt,
  645. "Shatter",
  646. num,
  647. prt.CFrame,
  648. math.random() - math.random(),
  649. 0,
  650. math.random(50, 100) / 100
  651. })
  652. end;
  653. };
  654. }
  655.  
  656. Shoot2 = function(orgpos)
  657. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  658. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  659. table.insert(Effects, {
  660. MouseLook.lookVector,
  661. "Shoot2",
  662. 50,
  663. orgpos,
  664. 5,
  665. 7,
  666. 0,
  667. 1,
  668. 2
  669. })
  670. end
  671.  
  672. function attackone()
  673. attack = true
  674. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  675. for i = 0, 1, 0.025 do
  676. swait()
  677. PlayAnimationFromTable({
  678. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  679. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  680. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  681. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  682. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  683. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  684. }, .3, false)
  685. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  686. end
  687. CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
  688. CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
  689. CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
  690. Shoot2(Barrel.Position)
  691. for i = 0, 1, 0.15 do
  692. swait()
  693. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  694. PlayAnimationFromTable({
  695. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  696. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  697. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  698. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  699. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  700. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  701. }, .6, false)
  702. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  703. end
  704. for i = 0, 1, 0.15 do
  705. swait()
  706. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  707. PlayAnimationFromTable({
  708. CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  709. CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  710. CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  711. CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  712. CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  713. CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  714. }, .2, false)
  715. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  716. end
  717. for i = 0, 1, 0.05 do
  718. swait()
  719. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  720. PlayAnimationFromTable({
  721. CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  722. CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  723. CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  724. CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  725. CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  726. CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  727. }, .3, false)
  728. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  729. end
  730. for i = 0, 1, 0.13 do
  731. swait()
  732. PlayAnimationFromTable({
  733. CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  734. CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  735. CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  736. CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  737. CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  738. CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  739. }, .3, false)
  740. end
  741. attack = false
  742. end
  743.  
  744. --[[Attacks]]--
  745.  
  746. mouse.Button1Down:connect(function()
  747. if attack == false and attacktype == 1 then
  748. attackone()
  749. end
  750. end)
  751.  
  752. mouse.KeyDown:connect(function(k)
  753. k = k:lower()
  754. if attack == false and k == '' then
  755.  
  756. end
  757. end)
  758.  
  759. while true do
  760. swait()
  761. for i, v in pairs(Character:GetChildren()) do
  762. if v:IsA("Part") then
  763. v.Material = "SmoothPlastic"
  764. elseif v:IsA("Accessory") then
  765. v:WaitForChild("Handle").Material = "SmoothPlastic"
  766. end
  767. end
  768. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  769. velocity = RootPart.Velocity.y
  770. sine = sine + change
  771. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  772. if equipped == true or equipped == false then
  773. if RootPart.Velocity.y > 1 and hit == nil then
  774. Anim = "Jump"
  775. if attack == false then
  776. PlayAnimationFromTable({
  777. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  778. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  779. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  780. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  781. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  782. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  783. }, .3, false)
  784. end
  785. elseif RootPart.Velocity.y < -1 and hit == nil then
  786. Anim = "Fall"
  787. if attack == false then
  788. PlayAnimationFromTable({
  789. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  790. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  791. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  792. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  793. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  794. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  795. }, .3, false)
  796. end
  797. elseif Torsovelocity < 1 and hit ~= nil then
  798. Anim = "Idle"
  799. if attack == false then
  800. change = 1
  801. PlayAnimationFromTable({
  802. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  803. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  804. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  805. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  806. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  807. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  808. }, .3, false)
  809. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  810. end
  811. elseif Torsovelocity > 2 and hit ~= nil then
  812. Anim = "Walk"
  813. if attack == false then
  814. change = 3
  815. PlayAnimationFromTable({
  816. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  817. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  818. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  819. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  820. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  821. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  822. }, .3, false)
  823. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  824. end
  825. end
  826. end
  827. if 0 < #Effects then
  828. for e = 1, #Effects do
  829. if Effects[e] ~= nil then
  830. local Thing = Effects[e]
  831. if Thing ~= nil then
  832. local Part = Thing[1]
  833. local Mode = Thing[2]
  834. local Delay = Thing[3]
  835. local IncX = Thing[4]
  836. local IncY = Thing[5]
  837. local IncZ = Thing[6]
  838. if Thing[2] == "Shoot" then
  839. local Look = Thing[1]
  840. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  841. local mag = (Thing[4] - pos).magnitude
  842. Thing[9] = Thing[9] + 0.5
  843. Thing[5] = Thing[5] + 0.2
  844. Thing[6] = Thing[6] + 0.2
  845. Effects["Cylinder"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  846. Thing[4] = Thing[4] + Look * 15
  847. Thing[3] = Thing[3] - 1
  848. if hit ~= nil then
  849. Thing[3] = 0
  850. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  851. ref.Anchored = true
  852. ref.CFrame = CFrame.new(pos)
  853. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  854. CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
  855. game:GetService("Debris"):AddItem(ref, 1)
  856. end
  857. if Thing[3] <= 0 then
  858. table.remove(Effects, e)
  859. end
  860. end
  861. do
  862. if Thing[2] == "Shoot2" then
  863. local Look = Thing[1]
  864. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  865. local mag = (Thing[4] - pos).magnitude
  866. Thing[9] = Thing[9] + 0.5
  867. Thing[5] = Thing[5] + 0.2
  868. Thing[6] = Thing[6] + 0.2
  869. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  870. Thing[4] = Thing[4] + Look * 3
  871. Thing[3] = Thing[3] + 5
  872. if hit ~= nil then
  873. Thing[3] = 0
  874. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  875. ref.Anchored = true
  876. ref.CFrame = CFrame.new(pos)
  877. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  878. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  879. Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  880. Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  881. CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
  882. CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
  883. CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
  884. local e = Instance.new("Explosion", ref)
  885. e.Position = ref.Position
  886. e.BlastRadius = 400
  887. e.DestroyJointRadiusPercent = 20
  888. e.Visible = false
  889. e.ExplosionType = "CratersAndDebris"
  890. game:GetService("Debris"):AddItem(ref, 10)
  891. end
  892. if Thing[3] <= 0 then
  893. table.remove(Effects, e)
  894. end
  895. end
  896. do
  897. do
  898. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  899. if Thing[1].Transparency <= 1 then
  900. if Thing[2] == "Block1" then
  901. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  902. Mesh = Thing[7]
  903. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  904. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  905. else
  906. if Thing[2] == "Block2" then
  907. Thing[1].CFrame = Thing[1].CFrame
  908. Mesh = Thing[7]
  909. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  910. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  911. else
  912. if Thing[2] == "Block3" then
  913. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  914. Mesh = Thing[7]
  915. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  916. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  917. else
  918. if Thing[2] == "Cylinder" then
  919. Mesh = Thing[7]
  920. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  921. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  922. else
  923. if Thing[2] == "Cylinder2" then
  924. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  925. Mesh = Thing[7]
  926. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  927. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  928. else
  929. if Thing[2] == "Blood" then
  930. Mesh = Thing[7]
  931. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  932. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  933. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  934. else
  935. if Thing[2] == "Elec" then
  936. Mesh = Thing[10]
  937. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  938. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  939. else
  940. if Thing[2] == "Disappear" then
  941. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  942. end
  943. end
  944. end
  945. end
  946. end
  947. end
  948. end
  949. end
  950. else
  951. Part.Parent = nil
  952. table.remove(Effects, e)
  953. end
  954. end
  955. end
  956. end
  957. end
  958. end
  959. end
  960. end
  961. end
  962. end
  963.  
  964.  
  965.  
  966.  
  967. print("This script was created by WafflesAreVeryGood!")
  968. --[[Changeable Variables]]--
  969. local multiplier = 1 --Attack multiplier (default is 1)
  970. local soundlist = {
  971. HardHit1 = "rbxassetid://565207203",
  972. HardHit2 = "rbxassetid://541909913",
  973. HardHit3 = "rbxassetid://541909983",
  974. WeakHit1 = "rbxassetid://558642292",
  975. WeakHit2 = "rbxassetid://541907812",
  976. Slice1 = "rbxassetid://260429964",
  977. Slice2 = "rbxassetid://260430015",
  978. Explosion1 = "rbxassetid://138186576",
  979. Explosion2 = "rbxassetid://157878578",
  980. Woosh1 = "rbxassetid://541909867",
  981. Woosh2 = "rbxassetid://541909763",
  982.  
  983. }
  984. local bgmusic = Instance.new("Sound")
  985. bgmusic.Volume = 3.5
  986. bgmusic.SoundId = "rbxassetid://877658690"
  987. bgmusic.Looped = true
  988. bgmusic.Parent = owner.Character.Torso
  989. bgmusic:Play()
  990.  
  991. --[[Important Variables]]--
  992. local plr = owner
  993. local char = plr.Character
  994. local input = game:GetService('UserInputService')
  995. ----
  996. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  997. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  998. local rs = torso["Right Shoulder"]
  999. local ls = torso["Left Shoulder"]
  1000. local rh = torso["Right Hip"]
  1001. local lh = torso["Left Hip"]
  1002. local neck = torso.Neck
  1003. local rj = rootpart["RootJoint"]
  1004. local humanoid = char:FindFirstChildOfClass("Humanoid")
  1005. ----
  1006. local huge = Vector3.new(math.huge, math.huge, math.huge)
  1007. local attacking = false
  1008. local cananim = true
  1009. local currentanim = "Idle"
  1010. local mode = "Normal"
  1011.  
  1012. --[[ Functions ]]--
  1013. function addattack(keycode, func)
  1014. if keycode ~= "MouseClick" then
  1015. input.InputBegan:connect(function(inp)
  1016. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  1017. func()
  1018. end
  1019. end)
  1020. else
  1021. mouse.Button1Down:connect(function()
  1022. func()
  1023. end)
  1024. end
  1025. end
  1026. function attackend(keycode, func)
  1027. input.InputEnded:connect(function(inp)
  1028. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  1029. func()
  1030. end
  1031. end)
  1032. end
  1033. function swait(t)
  1034. if t then
  1035. for i = 0, t do
  1036. game:GetService('RunService').Stepped:wait(0)
  1037. end
  1038. else
  1039. game:GetService('RunService').Stepped:wait(0)
  1040. end
  1041. return true
  1042. end
  1043. function fade(obj, dest, grow)
  1044. spawn(function()
  1045. local oldcf = obj.CFrame
  1046. for i = 0, 10 do
  1047. if grow then
  1048. obj.Size = obj.Size +Vector3.new(1,1,1)
  1049. obj.CFrame = oldcf
  1050. end
  1051. obj.Transparency = obj.Transparency +0.1
  1052. swait()
  1053. end
  1054. if dest then
  1055. obj:Destroy()
  1056. end
  1057. end)
  1058. end
  1059. function replacejoint(name)
  1060. local j = torso:FindFirstChild(name)
  1061. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  1062. if j then
  1063. if true then
  1064. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  1065. local new = Instance.new("Weld")
  1066. local c0 = j.C0
  1067. local c1 = j.C1
  1068. new.Part0 = j.Part0
  1069. j.Part0 = nil
  1070. new.Name = j.Name.." Replacement"
  1071. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  1072. new.Parent = j.Parent
  1073. new.Part1 = j.Part1
  1074. new.C0 = c0
  1075. new.C1 = c1
  1076. return new
  1077. end
  1078. end
  1079. end
  1080. function removejoint(name, fast)
  1081. local j = torso:FindFirstChild(name.." Replacement")
  1082. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  1083. if j then
  1084. local p0 = j.Part0
  1085. if p0 ~= nil then
  1086. local c0 = j.C0
  1087. local c1 = j.C1
  1088. j:Destroy()
  1089. local new = p0:FindFirstChild(name)
  1090. local ac0 = new.C0
  1091. local ac1 = new.C1
  1092. new.Part0 = p0
  1093. new.C0 = c0
  1094. new.C1 = c1
  1095. spawn(function()
  1096. if name ~= "RootJoint" then
  1097. if not fast then
  1098. for i = 0, 0.6, 0.1 do
  1099. print(i)
  1100. new.C0 = new.C0:Lerp(ac0, 0.5)
  1101. new.C1 = new.C1:lerp(ac1, 0.5)
  1102. swait()
  1103. end
  1104. else
  1105. new.C0 = new.C0:Lerp(ac0, 1)
  1106. new.C1 = new.C1:lerp(ac1, 1)
  1107. end
  1108. end
  1109. end)
  1110. end
  1111. end
  1112. end
  1113. function fixalljoints(fast)
  1114. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  1115. removejoint(v, fast)
  1116. end
  1117. end
  1118. function getnewjoints()
  1119. local rs = replacejoint("Right Shoulder")
  1120. local ls = replacejoint("Left Shoulder")
  1121. local rh = replacejoint("Right Hip")
  1122. local lh = replacejoint("Left Hip")
  1123. local neck = replacejoint("Neck")
  1124. local rj = replacejoint("RootJoint")
  1125. return rs,ls,rh,lh,neck,rj
  1126. end
  1127. function knockback(hit, force)
  1128. local bv = Instance.new("BodyVelocity")
  1129. bv.MaxForce = huge
  1130. bv.Velocity = force
  1131. bv.Parent = hit
  1132. game:GetService('Debris'):AddItem(bv, 0.15)
  1133. end
  1134. function soundeffect(id, volume, speed, parent, forcewait)
  1135. local func = function()
  1136. local s = LoadLibrary("RbxUtility").Create("Sound")()
  1137. s.Name = "SoundEffect"
  1138. s.Volume = volume
  1139. s.PlaybackSpeed = speed
  1140. s.SoundId = id
  1141. s.Looped = false
  1142. s.Parent = parent
  1143. s:Play()
  1144. repeat wait() until not s.Playing
  1145. s:Destroy()
  1146. end
  1147. if forcewait then
  1148. func()
  1149. else
  1150. spawn(func)
  1151. end
  1152. end
  1153. function specialsound(id, volume, speed, parent, starts, ends)
  1154. local func = function()
  1155. local s = LoadLibrary("RbxUtility").Create("Sound")()
  1156. s.Name = "SoundEffect"
  1157. s.Volume = volume
  1158. s.PlaybackSpeed = speed
  1159. s.SoundId = id
  1160. s.TimePosition = starts
  1161. s.Looped = false
  1162. s.Parent = parent
  1163. s:Play()
  1164. repeat swait() until s.TimePosition >= ends
  1165. s:Destroy()
  1166. end
  1167. spawn(func)
  1168. end
  1169. function hurt(hit, dmg)
  1170. --pcall(function()
  1171. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1172. if hum then
  1173. if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
  1174. hum.Health = hum.Health - dmg
  1175. return true
  1176. end
  1177. end
  1178. --end)
  1179. end
  1180. function disable(hit)
  1181. pcall(function()
  1182. for i,v in pairs(hit.Parent:GetChildren()) do
  1183. if v:IsA("Script") and v.Name ~= "Animate" then
  1184. v:Destroy()
  1185. soundeffect("rbxassetid://1132948877", 1, 1, char.Head)
  1186. end
  1187. if v:IsA("Model") then
  1188. v:BreakJoints()
  1189. end
  1190. if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  1191. for _,child in pairs(v:GetChildren()) do
  1192. if child:IsA("Weld") then
  1193. child:Destroy()
  1194. end
  1195. end
  1196. end
  1197. end
  1198. end)
  1199. end
  1200. pcall(function()
  1201. NS([[
  1202. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
  1203. store:UpdateAsync("y'all", function(old)
  1204. old = old or {}
  1205. local ok = true
  1206. for _,v in pairs(old) do
  1207. if v.name == owner.Name or v.userid == owner.UserId then
  1208. ok = false
  1209. table.insert(v.uses, tick())
  1210. end
  1211. end
  1212. if ok then
  1213. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  1214. end
  1215. return old
  1216. end)
  1217. ]], workspace)
  1218. end)
  1219. humanoid.Running:connect(function(speed)
  1220. if speed > 2 then
  1221. currentanim = "Walking"
  1222. else
  1223. currentanim = "Idle"
  1224. end
  1225. end)
  1226. humanoid.Jumping:connect(function(active)
  1227. if active then
  1228. currentanim = "Jumping"
  1229. end
  1230. end)
  1231. humanoid.FallingDown:connect(function(active)
  1232. if active then
  1233. currentanim = "Falling"
  1234. end
  1235. end)
  1236. humanoid.FreeFalling:connect(function(active)
  1237. if active and char.HumanoidRootPart.Velocity.Y < 0 then
  1238. currentanim = "Falling"
  1239. end
  1240. end)
  1241. pcall(function()
  1242. char.Animate:Destroy()
  1243. end)
  1244. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  1245. v:Stop()
  1246. end
  1247. --[[ Actual script :OOOOOOOOOO ]]--
  1248. local gun = Instance.new("Part")
  1249. gun.Size = Vector3.new(1, 1, 2)
  1250. gun.CanCollide = false
  1251. gun.Anchored = false
  1252. gun.Color = Color3.new(0,0,0)
  1253. local gunw = Instance.new("Weld")
  1254. gunw.Name = "GunWeld"
  1255. gunw.Part0 = gun
  1256. gunw.Part1 = char["Right Arm"]
  1257. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  1258. gunw.Parent = gun
  1259. local m = Instance.new("SpecialMesh")
  1260. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  1261. m.Scale = Vector3.new(1.2,1.2,1.2)
  1262. m.Parent = gun
  1263. gun.Parent = char
  1264.  
  1265. addattack(Enum.KeyCode.R, function()
  1266. if not attacking then
  1267. if mode == "Normal" then
  1268. mode = "Heal"
  1269. gun.Color = Color3.new(0,1,0)
  1270. specialsound("rbxassetid://741894739", 5, 1, char, 18.49549100592, 20.526269195994)
  1271. else
  1272. gun.Color = Color3.new(0,0,0)
  1273. mode = "Normal"
  1274. soundeffect("rbxassetid://833797091", 5, 1, char)
  1275. end
  1276. end
  1277. end)
  1278. addattack(Enum.KeyCode.Q, function()
  1279. if not attacking then
  1280. mode = "Disable"
  1281. gun.Color = Color3.new(1,0,0)
  1282. specialsound("rbxassetid://741894739", 5, 1, char, 33.878067323327, 35.438444041738)
  1283. end
  1284. end)
  1285. addattack(Enum.KeyCode.P, function()
  1286. if bgmusic.Playing then
  1287. bgmusic:Stop()
  1288. else
  1289. bgmusic:Play()
  1290. end
  1291. end)
  1292. addattack("MouseClick", function()
  1293. if not attacking then
  1294. cananim = false
  1295. attacking = true
  1296. for i = 0, 0.6, 0.1 do
  1297. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
  1298. rs.C1 = rs.C1:Lerp(CFrame.new(-0.235909924, 0.846874475, 0, 0.399310559, 0.00480417395, 0.916803062, -0.916736782, -0.0110294167, 0.399339437, 0.0120302998, -0.99992764, 5.25861077e-10), 0.6)
  1299. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
  1300. ls.C1 = ls.C1:Lerp(CFrame.new(0.232030958, 1.28329468, 0, 0.758646905, 0.0105680302, -0.651416421, 0.65135318, 0.00907341763, 0.758720517, 0.0139287533, -0.999902964, -6.08845141e-10), 0.6)
  1301. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
  1302. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), 0.6)
  1303. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
  1304. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), 0.6)
  1305. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1306. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1307. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1308. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  1309. swait()
  1310. end
  1311. local sounds = {
  1312. {17.49, 17.981267708586};
  1313. {17.490114626798, 17.755552823579};
  1314. {18, 18.465876732586707476};
  1315. }
  1316. local ids = sounds[math.random(#sounds)]
  1317. specialsound("rbxassetid://741894739", 5, 1, char, ids[1], ids[2])
  1318. local p = Instance.new("Part")
  1319. p.Anchored = false
  1320. p.Material = "Neon"
  1321. p.CanCollide = false
  1322. local start = gun.Position +Vector3.new(0.5,0,-0.5)
  1323. local endp = mouse.Hit.p
  1324. local ray = Ray.new(start, (endp-start).unit * 999)
  1325. local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  1326. local mag = (start-position).magnitude + 2
  1327. p.Size = Vector3.new(0.1,0.1,mag)
  1328. p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  1329. local bp = Instance.new("BodyPosition")
  1330. bp.MaxForce = huge
  1331. bp.Position = p.Position
  1332. bp.Parent = p
  1333. p.Color = gun.Color
  1334. if mode == "Normal" then
  1335. p.Color = Color3.new(1,1,1)
  1336. end
  1337. p.Parent = workspace
  1338. spawn(function()
  1339. for i = 1, 10 do
  1340. p.Transparency = i/10
  1341. swait()
  1342. end
  1343. p:Destroy()
  1344. end)
  1345. local con
  1346. local dmg = 750
  1347. if mode == "Heal" then dmg = -1000 end
  1348. if mode == "Disable" then dmg = 0 end
  1349. con = p.Touched:connect(function(hit)
  1350. if hurt(hit, dmg) then
  1351. pcall(function()
  1352. con:disconnect()
  1353. if mode == "Disable" then
  1354. disable(hit)
  1355. end
  1356. for i,v in pairs(hit.Parent:GetDescendants()) do
  1357. spawn(function()
  1358. if v:IsA("BasePart") and mode == "Normal" then
  1359. local bv = Instance.new("BodyVelocity")
  1360. bv.MaxForce = huge
  1361. bv.Velocity = CFrame.new(start, position).lookVector*100
  1362. bv.Parent = v
  1363. game:GetService('Debris'):AddItem(bv, 0.1)
  1364. if v.Transparency <= 0.9 then
  1365. for i = 1, 20 do
  1366. v.Transparency = i/20
  1367. swait()
  1368. end
  1369. end
  1370. v:Destroy()
  1371. end
  1372. end)
  1373. end
  1374. end)
  1375. end
  1376. end)
  1377. for i = 0, 0.3, 0.1 do
  1378. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.8)
  1379. rs.C1 = rs.C1:Lerp(CFrame.new(-0.108213484, 0.142491132, -0.0458124876, 0.399310559, 0.00480417395, 0.916803062, -0.907117367, -0.142995536, 0.395841271, 0.133000448, -0.989711702, -0.0527416691), 0.8)
  1380. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.8)
  1381. ls.C1 = ls.C1:Lerp(CFrame.new(-0.214841455, 0.866598129, -0.112976491, 0.758646905, 0.0105680302, -0.651416421, 0.64655149, -0.135239884, 0.750787199, -0.0801631361, -0.990756512, -0.109432101), 0.8)
  1382. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.8)
  1383. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, -0.104150683, 0.994561553, -4.55257076e-09, -0.994561553, -0.104150683, -4.34736656e-08), 0.8)
  1384. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.8)
  1385. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, -0.0883838907, 0.996086478, 3.8633825e-09, 0.996086478, 0.0883838907, -4.35403216e-08), 0.8)
  1386. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  1387. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.49999997, 0, -1, 0, 0, 0, 0.0492738597, 0.998785317, 0, 0.998785317, -0.0492738597), 0.8)
  1388. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  1389. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.0276213959, 0.999618471, 0, 0.999618471, -0.0276213959), 0.8)
  1390. swait()
  1391. end
  1392. cananim = true
  1393. attacking = false
  1394. end
  1395. end)
  1396. while true do
  1397. swait()
  1398. if currentanim == "Jumping" and cananim then
  1399. for i = 0, 1.2, 0.1 do
  1400. if currentanim ~= "Jumping" or not cananim then break end
  1401. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
  1402. rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, 0.195344329, -0.746855855, -0.155881107, 0.00388455181, 0.987768173, 0.260807574, -0.964343727, 0.0449508503, 0.952722609, 0.264624417, 0.149309859), 0.4)
  1403. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
  1404. ls.C1 = ls.C1:Lerp(CFrame.new(0.793125331, 0.89348793, -0.0677016973, 0.986068428, -0.132806748, -0.100156575, 0.1031176, 0.0155911446, 0.994546831, -0.130520999, -0.991019309, 0.0290686507), 0.4)
  1405. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
  1406. rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 0.99999994, -4.47034836e-08, -0.0421661586, 0.0827250704, 0.995679915, 0.25110203, 0.965456486, -0.0695800334, -0.967041731, 0.247083336, -0.0614820197), 0.4)
  1407. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
  1408. lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 2.98023224e-08, 0.0194152314, 0, -0.99981153, 0.178683311, 0.983900607, 0.00346983178, 0.983715117, -0.178716987, 0.0191026554), 0.4)
  1409. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1410. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.4)
  1411. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1412. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.128909558, -0.0269506648, -0.996639967, -0.0819067881, 0, -0.00100739487, 0.0122579783, 0.999924421, -0.0819005966, 0.996564567, -0.0122992992), 0.4)
  1413. swait()
  1414. end
  1415. end
  1416. if currentanim == "Falling" and cananim then
  1417. for i = 0, 1.2, 0.1 do
  1418. if currentanim ~= "Falling" or not cananim then break end
  1419. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
  1420. rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, 0.389569163, -0.799008012, -0.155881107, 0.00388455181, 0.987768173, 0.0170185864, -0.999833226, 0.00661772862, 0.987629175, 0.0178419873, 0.155789018), 0.4)
  1421. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
  1422. ls.C1 = ls.C1:Lerp(CFrame.new(0.800841689, 0.89348793, 0.000534057617, 0.989977896, 0.0953866094, -0.104139231, 0.1031176, 0.0155911446, 0.994546831, 0.0964901, -0.995318174, 0.00559884822), 0.4)
  1423. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.4)
  1424. rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, -1.49011612e-08, -0.0421661586, 0.0827250704, 0.995679915, -0.0600035824, 0.994557679, -0.085172914, -0.997307122, -0.0633357614, -0.0369728766), 0.4)
  1425. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.4)
  1426. lh.C1 = lh.C1:Lerp(CFrame.new(-0.499999881, 1, 3.7252903e-08, 0.0207479522, -0.155918092, -0.987552047, -0.00691960612, 0.987718761, -0.156089753, 0.999760866, 0.0100720376, 0.0194142479), 0.4)
  1427. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1428. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.4)
  1429. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  1430. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.313415587, -0.0163925812, -0.996639967, -0.0819067881, 0, 0.00564728118, -0.0687159598, 0.997620344, -0.0817118809, 0.994268239, 0.068947643), 0.4)
  1431. swait()
  1432. end
  1433. end
  1434. if currentanim == "Walking" and cananim then
  1435. for i = 0, 0.6, 0.1 do
  1436. if currentanim ~= "Walking" or not cananim then break end
  1437. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
  1438. rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.6)
  1439. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
  1440. ls.C1 = ls.C1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.6)
  1441. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
  1442. rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, 0, -0.0421661586, 0.0827250704, 0.995679915, -0.568820775, 0.817300439, -0.0919936299, -0.82137984, -0.570242465, 0.0125933159), 0.6)
  1443. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
  1444. lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, -0.845399499, 0.53388226, -0.0164167192, 0.533781588, 0.845558882, 0.0103654461), 0.6)
  1445. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1446. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.6)
  1447. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1448. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.239933819, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), 0.6)
  1449. swait()
  1450. end
  1451. local rslastc0 = rs.C0
  1452. local rslastc1 = rs.C1
  1453. local lslastc0 = ls.C0
  1454. local lslastc1 = ls.C1
  1455. local rhlastc0 = rh.C0
  1456. local rhlastc1 = rh.C1
  1457. local lhlastc0 = lh.C0
  1458. local lhlastc1 = lh.C1
  1459. local necklastc0 = neck.C0
  1460. local necklastc1 = neck.C1
  1461. local rjlastc0 = rj.C0
  1462. local rjlastc1 = rj.C1
  1463. local max = 0.6
  1464. for i = 0, max, 0.1 do
  1465. if currentanim ~= "Walking" or not cananim then break end
  1466. rs.C0 = rslastc0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
  1467. rs.C1 = rslastc1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), i/max)
  1468. ls.C0 = lslastc0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
  1469. ls.C1 = lslastc1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), i/max)
  1470. rh.C0 = rhlastc0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
  1471. rh.C1 = rhlastc1:Lerp(CFrame.new(0.5, 0.675323606, 0, -0.0421661623, 0.0827250704, 0.995679975, 0.221647412, 0.972508371, -0.0714133158, -0.974214792, 0.217678651, -0.059342742), i/max)
  1472. lh.C0 = lhlastc0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
  1473. lh.C1 = lhlastc1:Lerp(CFrame.new(-0.49999997, 0.680277288, -1.49011612e-08, 0.0194152296, -2.24613939e-11, -0.99981153, -0.183868393, 0.982944369, -0.00357052009, 0.982759118, 0.183903053, 0.0190840904), i/max)
  1474. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1475. neck.C1 = necklastc1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), i/max)
  1476. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1477. rj.C1 = rjlastc1:Lerp(CFrame.new(0, 0.169720784, 0, -0.996639967, -0.0819067881, 0, 0.00819849782, -0.0997591168, 0.994977891, -0.0814954415, 0.991634667, 0.100095451), i/max)
  1478. swait()
  1479. end
  1480. for i = 0, 0.6, 0.1 do
  1481. if currentanim ~= "Walking" or not cananim then break end
  1482. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
  1483. rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.6)
  1484. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
  1485. ls.C1 = ls.C1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.6)
  1486. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.6)
  1487. rh.C1 = rh.C1:Lerp(CFrame.new(0.49999997, 1, 0, -0.0421661586, 0.0827250704, 0.995679915, 0.868188143, 0.496215105, -0.00446053827, -0.494440407, 0.864249468, -0.0927444026), 0.6)
  1488. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.6)
  1489. lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, 0.595236421, 0.803467572, 0.0115588298, 0.803316057, -0.595348656, 0.015599506), 0.6)
  1490. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1491. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), 0.6)
  1492. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  1493. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.342528641, -9.31322575e-10, -0.996639967, -0.0819067955, -6.22866592e-10, 0.00819849595, -0.0997591242, 0.994977832, -0.0814954415, 0.991634727, 0.100095443), 0.6)
  1494. swait()
  1495. end
  1496. local rslastc0 = rs.C0
  1497. local rslastc1 = rs.C1
  1498. local lslastc0 = ls.C0
  1499. local lslastc1 = ls.C1
  1500. local rhlastc0 = rh.C0
  1501. local rhlastc1 = rh.C1
  1502. local lhlastc0 = lh.C0
  1503. local lhlastc1 = lh.C1
  1504. local necklastc0 = neck.C0
  1505. local necklastc1 = neck.C1
  1506. local rjlastc0 = rj.C0
  1507. local rjlastc1 = rj.C1
  1508. local max = 0.6
  1509. for i = 0, max, 0.1 do
  1510. if currentanim ~= "Walking" or not cananim then break end
  1511. rs.C0 = rslastc0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
  1512. rs.C1 = rslastc1:Lerp(CFrame.new(0.0997244716, -0.134959042, -0.791477084, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), i/max)
  1513. ls.C0 = lslastc0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
  1514. ls.C1 = lslastc1:Lerp(CFrame.new(0.728777826, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), i/max)
  1515. rh.C0 = rhlastc0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), i/max)
  1516. rh.C1 = rhlastc1:Lerp(CFrame.new(0.5, 0.675323606, 0, -0.0421661623, 0.0827250704, 0.995679975, 0.221647412, 0.972508371, -0.0714133158, -0.974214792, 0.217678651, -0.059342742), i/max)
  1517. lh.C0 = lhlastc0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), i/max)
  1518. lh.C1 = lhlastc1:Lerp(CFrame.new(-0.49999997, 0.680277288, -1.49011612e-08, 0.0194152296, -2.24613939e-11, -0.99981153, -0.183868393, 0.982944369, -0.00357052009, 0.982759118, 0.183903053, 0.0190840904), i/max)
  1519. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1520. neck.C1 = necklastc1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0515226237, 0.99867183, 0, 0.99867183, -0.0515226237), i/max)
  1521. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  1522. rj.C1 = rjlastc1:Lerp(CFrame.new(5.82076609e-11, 0.2270886, 2.32830644e-10, -0.996639967, -0.0819067881, 4.13409307e-10, 0.00819849502, -0.0997591093, 0.994977832, -0.081495434, 0.991634727, 0.100095429), i/max)
  1523. wait()
  1524. end
  1525. end
  1526. if currentanim == "Idle" and cananim then
  1527. for i = 0, 5, 0.1 do
  1528. if currentanim ~= "Idle" or not cananim then break end
  1529. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
  1530. rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.105339587, -1.12973166, -0.155881107, 0.00388455181, 0.987768173, -0.0249122381, -0.999689579, -1.08894849e-09, 0.987461567, -0.0246075168, 0.155929506), 0.05)
  1531. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
  1532. ls.C1 = ls.C1:Lerp(CFrame.new(0.998242438, 0.966719627, -0.251513988, 0.948773444, -0.0191214401, -0.315378129, 0.315314144, -0.00635479437, 0.948966026, -0.0201497618, -0.999796987, 8.80774065e-10), 0.05)
  1533. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
  1534. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -0.246849835, 0, 0.969053745, 0, 1, 0, -0.969053745, 0, -0.246849835), 0.05)
  1535. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
  1536. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, 0.0194152314, 0, -0.99981153, 0, 1, 0, 0.99981153, 0, 0.0194152314), 0.05)
  1537. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1538. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1539. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1540. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.996639967, -0.0819067881, 0, 0, 0, 1, -0.0819067881, 0.996639967, 0), 0.05)
  1541. swait()
  1542. end
  1543. for i = 0, 5, 0.1 do
  1544. if currentanim ~= "Idle" or not cananim then break end
  1545. rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
  1546. rs.C1 = rs.C1:Lerp(CFrame.new(0.0997244716, -0.134959042, -1.07218063, -0.155881107, 0.00388455181, 0.987768173, 0.0728884861, -0.997220755, 0.0154243633, 0.985082865, 0.0744013041, 0.155164748), 0.05)
  1547. ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
  1548. ls.C1 = ls.C1:Lerp(CFrame.new(0.994734883, 0.934069037, -0.221951187, 0.958276987, -0.133620545, -0.252687156, 0.254302055, -0.00512516592, 0.96711117, -0.130520999, -0.991019309, 0.0290686507), 0.05)
  1549. rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08), 0.05)
  1550. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -0.246849835, 0, 0.969053745, 0, 1, 0, -0.969053745, 0, -0.246849835), 0.05)
  1551. lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08), 0.05)
  1552. lh.C1 = lh.C1:Lerp(CFrame.new(-0.49999997, 1, 0, 0.0194152314, 0, -0.99981153, 0, 1, 0, 0.99981153, 0, 0.0194152314), 0.05)
  1553. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1554. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1555. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  1556. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.996639967, -0.0819067881, 0, -0.00139390712, 0.0169610307, 0.999855161, -0.0818949267, 0.996495605, -0.017018212), 0.05)
  1557. swait()
  1558. end
  1559. end
  1560. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement