Advertisement
teotv202

Untitled

Apr 22nd, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 32.06 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. -------------------------------------------------------
  84.     --[[Changeable Variables]]--
  85. local multiplier = 1 --Attack multiplier (default is 1)
  86. local soundlist = {
  87.     HardHit1 = "rbxassetid://565207203",
  88.     HardHit2 = "rbxassetid://541909913",
  89.     HardHit3 = "rbxassetid://541909983",
  90.     WeakHit1 = "rbxassetid://558642292",
  91.     WeakHit2 = "rbxassetid://541907812",
  92.     Slice1 = "rbxassetid://260429964",
  93.     Slice2 = "rbxassetid://260430015",
  94.     Explosion1 = "rbxassetid://138186576",
  95.     Explosion2 = "rbxassetid://157878578",
  96.     Woosh1 = "rbxassetid://541909867",
  97.     Woosh2 = "rbxassetid://541909763",
  98.    
  99. }
  100. local bgmusic = Instance.new("Sound")
  101. bgmusic.Volume = 3.5
  102. bgmusic.SoundId = "rbxassetid://877658690"
  103. bgmusic.Looped = true
  104. bgmusic.Parent = owner.Character.Torso
  105. bgmusic:Play()
  106.  
  107.     --[[Important Variables]]--
  108. local plr = owner
  109. local char = plr.Character
  110. local input = game:GetService('UserInputService')
  111. ----
  112. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  113. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  114. local rs = torso["Right Shoulder"]
  115. local ls = torso["Left Shoulder"]
  116. local rh = torso["Right Hip"]
  117. local lh = torso["Left Hip"]
  118. local neck = torso.Neck
  119. local rj = rootpart["RootJoint"]
  120. local humanoid = char:FindFirstChildOfClass("Humanoid")
  121. ----
  122. local huge = Vector3.new(math.huge, math.huge, math.huge)
  123. local attacking = false
  124. local cananim = true
  125. local currentanim = "Idle"
  126. local mode = "Normal"
  127.  
  128.     --[[ Functions ]]--
  129. function addattack(keycode, func)
  130.     if keycode ~= "MouseClick" then
  131.         input.InputBegan:connect(function(inp)
  132.             if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  133.                 func()
  134.             end
  135.         end)
  136.     else
  137.         mouse.Button1Down:connect(function()
  138.             func()
  139.         end)
  140.     end
  141. end
  142. function attackend(keycode, func)
  143.     input.InputEnded:connect(function(inp)
  144.         if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  145.             func()
  146.         end
  147.     end)
  148. end
  149. function swait(t)
  150.     if t then
  151.         for i = 0, t do
  152.             game:GetService('RunService').Stepped:wait(0)
  153.         end
  154.     else
  155.         game:GetService('RunService').Stepped:wait(0)
  156.     end
  157.     return true
  158. end
  159. function fade(obj, dest, grow)
  160.     spawn(function()
  161.         local oldcf = obj.CFrame
  162.         for i = 0, 10 do
  163.             if grow then
  164.                 obj.Size = obj.Size +Vector3.new(1,1,1)
  165.                 obj.CFrame = oldcf
  166.             end
  167.             obj.Transparency = obj.Transparency +0.1
  168.             swait()
  169.         end
  170.         if dest then
  171.         obj:Destroy()
  172.         end
  173.     end)
  174. end
  175. function replacejoint(name)
  176.     local j = torso:FindFirstChild(name)
  177.     if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  178.     if j then
  179.         if true then
  180.             local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  181.             local new = Instance.new("Weld")
  182.             local c0 = j.C0
  183.             local c1 = j.C1
  184.             new.Part0 = j.Part0
  185.             j.Part0 = nil
  186.             new.Name = j.Name.." Replacement"
  187.             if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  188.             new.Parent = j.Parent
  189.             new.Part1 = j.Part1
  190.             new.C0 = c0
  191.             new.C1 = c1
  192.             return new
  193.         end
  194.     end
  195. end
  196. function removejoint(name, fast)
  197.     local j = torso:FindFirstChild(name.." Replacement")
  198.     if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  199.     if j then
  200.         local p0 = j.Part0
  201.         if p0 ~= nil then
  202.         local c0 = j.C0
  203.         local c1 = j.C1
  204.         j:Destroy()
  205.         local new = p0:FindFirstChild(name)
  206.         local ac0 = new.C0
  207.         local ac1 = new.C1
  208.         new.Part0 = p0
  209.         new.C0 = c0
  210.         new.C1 = c1
  211.         spawn(function()
  212.             if name ~= "RootJoint" then
  213.             if not fast then
  214.             for i = 0, 0.6, 0.1 do
  215.                 print(i)
  216.                 new.C0 = new.C0:Lerp(ac0, 0.5)
  217.                 new.C1 = new.C1:lerp(ac1, 0.5)
  218.                 swait()
  219.             end
  220.             else
  221.                 new.C0 = new.C0:Lerp(ac0, 1)
  222.                 new.C1 = new.C1:lerp(ac1, 1)
  223.             end
  224.             end
  225.         end)
  226.         end
  227.     end
  228. end
  229. function fixalljoints(fast)
  230.     for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip",  "Neck", "RootJoint"}) do
  231.         removejoint(v, fast)
  232.     end
  233. end
  234. function getnewjoints()
  235.     local rs = replacejoint("Right Shoulder")
  236.     local ls = replacejoint("Left Shoulder")
  237.     local rh = replacejoint("Right Hip")
  238.     local lh = replacejoint("Left Hip")
  239.     local neck = replacejoint("Neck")
  240.     local rj = replacejoint("RootJoint")
  241.     return rs,ls,rh,lh,neck,rj
  242. end
  243. function knockback(hit, force)
  244.     local bv = Instance.new("BodyVelocity")
  245.     bv.MaxForce = huge
  246.     bv.Velocity = force
  247.     bv.Parent = hit
  248.     game:GetService('Debris'):AddItem(bv, 0.15)
  249. end
  250. function soundeffect(id, volume, speed, parent, forcewait)
  251.     local func = function()
  252.         local s = LoadLibrary("RbxUtility").Create("Sound")()
  253.         s.Name = "SoundEffect"
  254.         s.Volume = volume
  255.         s.PlaybackSpeed = speed
  256.         s.SoundId = id
  257.         s.Looped = false
  258.         s.Parent = parent
  259.         s:Play()
  260.         repeat wait() until not s.Playing
  261.         s:Destroy()
  262.     end
  263.     if forcewait then
  264.         func()
  265.     else
  266.         spawn(func)
  267.     end
  268. end
  269. function specialsound(id, volume, speed, parent, starts, ends)
  270.     local func = function()
  271.         local s = LoadLibrary("RbxUtility").Create("Sound")()
  272.         s.Name = "SoundEffect"
  273.         s.Volume = volume
  274.         s.PlaybackSpeed = speed
  275.         s.SoundId = id
  276.         s.TimePosition = starts
  277.         s.Looped = false
  278.         s.Parent = parent
  279.         s:Play()
  280.         repeat swait() until s.TimePosition >= ends
  281.         s:Destroy()
  282.     end
  283.     spawn(func)
  284. end
  285. function hurt(hit, dmg)
  286.     --pcall(function()
  287.         local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  288.         if hum then
  289.             if hum.Parent ~= char and not hum.Parent:FindFirstChild("kk_urcool") then
  290.                 hum.Health = hum.Health - dmg
  291.                 return true
  292.             end
  293.         end
  294.     --end)
  295. end
  296. function disable(hit)
  297.     pcall(function()
  298.         for i,v in pairs(hit.Parent:GetChildren()) do
  299.             if v:IsA("Script") and v.Name ~= "Animate" then
  300.                 v:Destroy()
  301.                 soundeffect("rbxassetid://1132948877", 1, 1, char.Head)
  302.             end
  303.             if v:IsA("Model") then
  304.                 v:BreakJoints()
  305.             end
  306.             if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  307.                 for _,child in pairs(v:GetChildren()) do
  308.                     if child:IsA("Weld") then
  309.                         child:Destroy()
  310.                     end
  311.                 end
  312.             end
  313.         end
  314.     end)
  315. end
  316. pcall(function()
  317. NS([[
  318. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:KitchenGun")
  319. store:UpdateAsync("y'all", function(old)
  320. old = old or {}
  321. local ok = true
  322. for _,v in pairs(old) do
  323. if v.name == owner.Name or v.userid == owner.UserId then
  324. ok = false
  325. table.insert(v.uses, tick())
  326. end
  327. end
  328. if ok then
  329. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  330. end
  331. return old
  332. end)
  333. ]], workspace)
  334. end)
  335. humanoid.Running:connect(function(speed)
  336.     if speed > 2 then
  337.         currentanim = "Walking"
  338.     else
  339.         currentanim = "Idle"
  340.     end
  341. end)
  342. humanoid.Jumping:connect(function(active)
  343.     if active then
  344.         currentanim = "Jumping"
  345.     end
  346. end)
  347. humanoid.FallingDown:connect(function(active)
  348.     if active then
  349.         currentanim = "Falling"
  350.     end
  351. end)
  352. humanoid.FreeFalling:connect(function(active)
  353.     if active and char.HumanoidRootPart.Velocity.Y < 0 then
  354.         currentanim = "Falling"
  355.     end
  356. end)
  357. pcall(function()
  358.     char.Animate:Destroy()
  359. end)
  360. for i,v in pairs(humanoid:GetPlayingAnimationTracks()) do
  361.     v:Stop()
  362. end
  363.     --[[ Actual script :OOOOOOOOOO ]]--
  364. local gun = Instance.new("Part")
  365. gun.Size = Vector3.new(1, 1, 2)
  366. gun.CanCollide = false
  367. gun.Anchored = false
  368. gun.Color = Color3.new(0,0,0)
  369. local gunw = Instance.new("Weld")
  370. gunw.Name = "GunWeld"
  371. gunw.Part0 = gun
  372. gunw.Part1 = char["Right Arm"]
  373. gunw.C1 = CFrame.new(0,-1,-0.25) *CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
  374. gunw.Parent = gun
  375. local m = Instance.new("SpecialMesh")
  376. m.MeshId = "http://www.roblox.com/asset/?id=4372594"
  377. m.Scale = Vector3.new(1.2,1.2,1.2)
  378. m.Parent = gun
  379. gun.Parent = char
  380.  
  381. addattack(Enum.KeyCode.R, function()
  382.     if not attacking then
  383.         if mode == "Normal" then
  384.             mode = "Heal"
  385.             gun.Color = Color3.new(0,1,0)
  386.             specialsound("rbxassetid://741894739", 5, 1, char, 18.49549100592, 20.526269195994)
  387.         else
  388.             gun.Color = Color3.new(0,0,0)
  389.             mode = "Normal"
  390.             soundeffect("rbxassetid://833797091", 5, 1, char)
  391.         end
  392.     end
  393. end)
  394. addattack(Enum.KeyCode.Q, function()
  395.     if not attacking then
  396.         mode = "Disable"
  397.         gun.Color = Color3.new(1,0,0)
  398.         specialsound("rbxassetid://741894739", 5, 1, char, 33.878067323327, 35.438444041738)
  399.     end
  400. end)
  401. addattack(Enum.KeyCode.P, function()
  402.     if bgmusic.Playing then
  403.         bgmusic:Stop()
  404.     else
  405.         bgmusic:Play()
  406.     end
  407. end)
  408. addattack("MouseClick", function()
  409.     if not attacking then
  410.         cananim = false
  411.         attacking = true
  412.         for i = 0, 0.6, 0.1 do
  413.         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)
  414.         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)
  415.         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)
  416.         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)
  417.         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)
  418.         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)
  419.         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)
  420.         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)
  421.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  422.         neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  423.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  424.         rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.6)
  425.         swait()
  426.         end
  427.         local sounds = {
  428.             {17.49, 17.981267708586};
  429.             {17.490114626798, 17.755552823579};
  430.             {18, 18.465876732586707476};
  431.         }
  432.         local ids = sounds[math.random(#sounds)]
  433.         specialsound("rbxassetid://741894739", 5, 1, char, ids[1], ids[2])
  434.         local p = Instance.new("Part")
  435.         p.Anchored = false
  436.         p.Material = "Neon"
  437.         p.CanCollide = false
  438.         local start = gun.Position +Vector3.new(0.5,0,-0.5)
  439.         local endp = mouse.Hit.p
  440.         local ray = Ray.new(start, (endp-start).unit * 999)
  441.         local hit,position = workspace:FindPartOnRayWithIgnoreList(ray, {char, gun})
  442.         local mag = (start-position).magnitude + 2
  443.         p.Size = Vector3.new(0.1,0.1,mag)
  444.         p.CFrame = CFrame.new(start, position) *CFrame.new(0,0,-mag/2)
  445.         local bp = Instance.new("BodyPosition")
  446.         bp.MaxForce = huge
  447.         bp.Position = p.Position
  448.         bp.Parent = p
  449.         p.Color = gun.Color
  450.         if mode == "Normal" then
  451.             p.Color = Color3.new(1,1,1)
  452.         end
  453.         p.Parent = workspace
  454.         spawn(function()
  455.             for i = 1, 10 do
  456.                 p.Transparency = i/10
  457.                 swait()
  458.             end
  459.             p:Destroy()
  460.         end)
  461.         local con
  462.         local dmg = 750
  463.         if mode == "Heal" then dmg = -1000 end
  464.         if mode == "Disable" then dmg = 0 end
  465.         con = p.Touched:connect(function(hit)
  466.             if hurt(hit, dmg) then
  467.                 pcall(function()
  468.                     con:disconnect()
  469.                     if mode == "Disable" then
  470.                         disable(hit)
  471.                     end
  472.                     for i,v in pairs(hit.Parent:GetDescendants()) do
  473.                         spawn(function()
  474.                             if v:IsA("BasePart") and mode == "Normal" then
  475.                                 local bv = Instance.new("BodyVelocity")
  476.                                 bv.MaxForce = huge
  477.                                 bv.Velocity = CFrame.new(start, position).lookVector*100
  478.                                 bv.Parent = v
  479.                                 game:GetService('Debris'):AddItem(bv, 0.1)
  480.                                 if v.Transparency <= 0.9 then
  481.                                     for i = 1, 20 do
  482.                                         v.Transparency = i/20
  483.                                         swait()
  484.                                     end
  485.                                 end
  486.                                 v:Destroy()
  487.                             end
  488.                         end)
  489.                     end
  490.                 end)
  491.             end
  492.         end)
  493.         for i = 0, 0.3, 0.1 do
  494.         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)
  495.         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)
  496.         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)
  497.         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)
  498.         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)
  499.         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)
  500.         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)
  501.         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)
  502.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  503.         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)
  504.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), 0.8)
  505.         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)
  506.         swait()
  507.         end
  508.         cananim = true
  509.         attacking = false
  510.     end
  511. end)
  512. while true do
  513.     swait()
  514.     if currentanim == "Jumping" and cananim then
  515. for i = 0, 1.2, 0.1 do
  516. if currentanim ~= "Jumping" or not cananim then break end
  517. 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)
  518. 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)
  519. 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)
  520. 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)
  521. 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)
  522. 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)
  523. 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)
  524. 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)
  525. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  526. 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)
  527. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  528. 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)
  529. swait()
  530. end
  531.     end
  532.     if currentanim == "Falling" and cananim then
  533. for i = 0, 1.2, 0.1 do
  534. if currentanim ~= "Falling" or not cananim then break end
  535. 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)
  536. 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)
  537. 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)
  538. 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)
  539. 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)
  540. 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)
  541. 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)
  542. 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)
  543. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  544. 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)
  545. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.4)
  546. 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)
  547. swait()
  548. end
  549.     end
  550.     if currentanim == "Walking" and cananim then
  551. for i = 0, 0.6, 0.1 do
  552. if currentanim ~= "Walking" or not cananim then break end
  553. 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)
  554. 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)
  555. 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)
  556. 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)
  557. 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)
  558. 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)
  559. 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)
  560. 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)
  561. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  562. 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)
  563. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  564. 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)
  565. swait()
  566. end
  567. local rslastc0 = rs.C0
  568. local rslastc1 = rs.C1
  569. local lslastc0 = ls.C0
  570. local lslastc1 = ls.C1
  571. local rhlastc0 = rh.C0
  572. local rhlastc1 = rh.C1
  573. local lhlastc0 = lh.C0
  574. local lhlastc1 = lh.C1
  575. local necklastc0 = neck.C0
  576. local necklastc1 = neck.C1
  577. local rjlastc0 = rj.C0
  578. local rjlastc1 = rj.C1
  579. local max = 0.6
  580. for i = 0, max, 0.1 do
  581. if currentanim ~= "Walking" or not cananim then break end
  582. 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)
  583. 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)
  584. 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)
  585. 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)
  586. 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)
  587. 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)
  588. 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)
  589. 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)
  590. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  591. 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)
  592. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  593. 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)
  594. swait()
  595. end
  596. for i = 0, 0.6, 0.1 do
  597. if currentanim ~= "Walking" or not cananim then break end
  598. 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)
  599. 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)
  600. 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)
  601. 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)
  602. 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)
  603. 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)
  604. 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)
  605. 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)
  606. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  607. 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)
  608. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.6)
  609. 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)
  610. swait()
  611. end
  612. local rslastc0 = rs.C0
  613. local rslastc1 = rs.C1
  614. local lslastc0 = ls.C0
  615. local lslastc1 = ls.C1
  616. local rhlastc0 = rh.C0
  617. local rhlastc1 = rh.C1
  618. local lhlastc0 = lh.C0
  619. local lhlastc1 = lh.C1
  620. local necklastc0 = neck.C0
  621. local necklastc1 = neck.C1
  622. local rjlastc0 = rj.C0
  623. local rjlastc1 = rj.C1
  624. local max = 0.6
  625. for i = 0, max, 0.1 do
  626. if currentanim ~= "Walking" or not cananim then break end
  627. 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)
  628. 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)
  629. 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)
  630. 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)
  631. 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)
  632. 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)
  633. 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)
  634. 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)
  635. neck.C0 = necklastc0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  636. 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)
  637. rj.C0 = rjlastc0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), i/max)
  638. 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)
  639. wait()
  640. end
  641.     end
  642.     if currentanim == "Idle" and cananim then
  643.         for i = 0, 5, 0.1 do
  644.         if currentanim ~= "Idle" or not cananim then break end
  645.         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)
  646.         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)
  647.         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)
  648.         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)
  649.         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)
  650.         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)
  651.         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)
  652.         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)
  653.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  654.         neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  655.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  656.         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)
  657.         swait()
  658.         end
  659.         for i = 0, 5, 0.1 do
  660.         if currentanim ~= "Idle" or not cananim then break end
  661.         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)
  662.         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)
  663.         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)
  664.         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)
  665.         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)
  666.         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)
  667.         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)
  668.         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)
  669.         neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  670.         neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  671.         rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.05)
  672.         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)
  673.         swait()
  674.         end
  675.     end
  676. owner.Character.Humanoid:Destroy()
  677. Instance.new("ForceField",owner.Character).Visible = false
  678. local remote = NLS ([==[
  679. char = game:GetService("Players").LocalPlayer.Character
  680. Instance.new("Humanoid",char)
  681. game:GetService("Workspace").CurrentCamera.CameraSubject = char
  682.  
  683. gc = char:GetChildren()
  684. for i=1, #gc do
  685. if gc[i].ClassName == "CharacterMesh" then
  686. gc[i]:Destroy()
  687. end
  688. end
  689.  
  690. mesh = Instance.new("SpecialMesh",char.Torso)
  691. mesh.MeshType = "Brick"
  692.  
  693. mesh = Instance.new("SpecialMesh",char["Left Arm"])
  694. mesh.MeshType = "Brick"
  695.  
  696. mesh = Instance.new("SpecialMesh",char["Right Arm"])
  697. mesh.MeshType = "Brick"
  698.  
  699. mesh = Instance.new("SpecialMesh",char["Left Leg"])
  700. mesh.MeshType = "Brick"
  701.  
  702. mesh = Instance.new("SpecialMesh",char["Right Leg"])
  703. mesh.MeshType = "Brick"
  704.  
  705. mesh = Instance.new("SpecialMesh",char["Right Arm"])
  706. mesh.MeshType = "Brick"
  707.  
  708. char.Humanoid.DisplayDistanceType = "None"
  709. char.Humanoid.Name = "0 ANTI-DAMAGE 0"
  710. tool = Instance.new("Tool",game:GetService("Players").LocalPlayer.Backpack)
  711. tool.RequiresHandle = false
  712. tool.Name = "Float Tool"
  713. tool.CanBeDropped = false
  714. tool.Equipped:connect(function()
  715. char:FindFirstChildOfClass("Humanoid").HipHeight = 5
  716. end)
  717. tool.Unequipped:connect(function()
  718. char:FindFirstChildOfClass("Humanoid").HipHeight = 0
  719. end)
  720. ]==], owner.Character):WaitForChild 'ServerRemote';
  721. mouse = owner:GetMouse ();
  722. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement