SHARE
TWEET

Untitled

Skylanderminnion May 21st, 2019 312 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5.     print("FE Compatibility code V2 by Skylanderminion01")
  6.     local RealPlayer = RealPlayer
  7.     script.Parent = RealPlayer.Character
  8.  
  9.     --Fake event to make stuff like Mouse.KeyDown work
  10.     local Disconnect_Function = function(this)
  11.         this[1].Functions[this[2]] = nil
  12.     end
  13.     local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14.     local FakeEvent_Metatable = {__index={
  15.         Connect = function(this,f)
  16.             local i = tostring(math.random(0,10000))
  17.             while this.Functions[i] do
  18.                 i = tostring(math.random(0,10000))
  19.             end
  20.             this.Functions[i] = f
  21.             return setmetatable({this,i},Disconnect_Metatable)
  22.         end
  23.     }}
  24.     FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25.     local function fakeEvent()
  26.         return setmetatable({Functions={}},FakeEvent_Metatable)
  27.     end
  28.  
  29.     --Creating fake input objects with fake variables
  30.     local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31.     FakeMouse.keyUp = FakeMouse.KeyUp
  32.     FakeMouse.keyDown = FakeMouse.KeyDown
  33.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36.     end}
  37.     --Merged 2 functions into one by checking amount of arguments
  38.     CAS.UnbindAction = CAS.BindAction
  39.  
  40.     --This function will trigger the events that have been :Connect()'ed
  41.     local function TriggerEvent(self,ev,...)
  42.         for _,f in pairs(self[ev].Functions) do
  43.             f(...)
  44.         end
  45.     end
  46.     FakeMouse.TriggerEvent = TriggerEvent
  47.     UIS.TriggerEvent = TriggerEvent
  48.  
  49.     --Client communication
  50.     local Event = Instance.new("RemoteEvent")
  51.     Event.Name = "UserInput_Event"
  52.     Event.OnServerEvent:Connect(function(plr,io)
  53.         if plr~=RealPlayer then return end
  54.         FakeMouse.Target = io.Target
  55.         FakeMouse.Hit = io.Hit
  56.         if not io.isMouse then
  57.             local b = io.UserInputState == Enum.UserInputState.Begin
  58.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59.                 return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60.             end
  61.             if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62.                 return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63.             end
  64.             for _,t in pairs(CAS.Actions) do
  65.                 for _,k in pairs(t.Keys) do
  66.                     if k==io.KeyCode then
  67.                         t.Function(t.Name,io.UserInputState,io)
  68.                     end
  69.                 end
  70.             end
  71.             FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72.             UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73.         end
  74.     end)
  75.     Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76.     local Mouse = owner:GetMouse()
  77.     local UIS = game:GetService("UserInputService")
  78.     local input = function(io,RobloxHandled)
  79.         if RobloxHandled then return end
  80.         --Since InputObject is a client-side instance, we create and pass table instead
  81.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82.     end
  83.     UIS.InputBegan:Connect(input)
  84.     UIS.InputEnded:Connect(input)
  85.     local h,t
  86.     --Give the server mouse data every second frame, but only if the values changed
  87.     --If player is not moving their mouse, client won't fire events
  88.     local HB = game:GetService("RunService").Heartbeat
  89.     while true do
  90.         if h~=Mouse.Hit or t~=Mouse.Target then
  91.             h,t=Mouse.Hit,Mouse.Target
  92.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  93.         end
  94.         --Wait 2 frames
  95.         for i=1,2 do
  96.             HB:Wait()
  97.         end
  98.     end]==],script)
  99.  
  100.     ----Sandboxed game object that allows the usage of client-side methods and services
  101.     --Real game object
  102.     local RealGame = game
  103.  
  104.     --Metatable for fake service
  105.     local FakeService_Metatable = {
  106.         __index = function(self,k)
  107.             local s = rawget(self,"_RealService")
  108.             if s then
  109.                 return typeof(s[k])=="function"
  110.                 and function(_,...)return s[k](s,...)end or s[k]
  111.             end
  112.         end,
  113.         __newindex = function(self,k,v)
  114.             local s = rawget(self,"_RealService")
  115.             if s then s[k]=v end
  116.         end
  117.     }
  118.     local function FakeService(t,RealService)
  119.         t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  120.         return setmetatable(t,FakeService_Metatable)
  121.     end
  122.  
  123.     --Fake game object
  124.     local FakeGame = {
  125.         GetService = function(self,s)
  126.             return rawget(self,s) or RealGame:GetService(s)
  127.         end,
  128.         Players = FakeService({
  129.             LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  130.         },"Players"),
  131.         UserInputService = FakeService(UIS,"UserInputService"),
  132.         ContextActionService = FakeService(CAS,"ContextActionService"),
  133.         RunService = FakeService({
  134.             _btrs = {},
  135.             RenderStepped = RealGame:GetService("RunService").Heartbeat,
  136.             BindToRenderStep = function(self,name,_,fun)
  137.                 self._btrs[name] = self.Heartbeat:Connect(fun)
  138.             end,
  139.             UnbindFromRenderStep = function(self,name)
  140.                 self._btrs[name]:Disconnect()
  141.             end,
  142.         },"RunService")
  143.     }
  144.     rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  145.     FakeGame.service = FakeGame.GetService
  146.     FakeService(FakeGame,game)
  147.     --Changing owner to fake player object to support owner:GetMouse()
  148.     game,owner = FakeGame,FakeGame.Players.LocalPlayer
  149. end
  150. --Kidd_Anonymouse#9926
  151. local player = game.Players.LocalPlayer
  152. local char = player.Character
  153. local hum = char:FindFirstChildOfClass("Humanoid")
  154. local RArm = char["Right Arm"]
  155. local LArm = char["Left Arm"]
  156. local RLeg = char["Right Leg"]
  157. local LLeg = char["Left Leg"]
  158. local To = char["Torso"]
  159. local He = char["Head"]
  160. local HRP = char["HumanoidRootPart"]
  161. local mouse = player:GetMouse()
  162. local taunting = false
  163. local dancing = false
  164. dead = false
  165. local face = "rbxasset://textures/face.png"
  166. hum.WalkSpeed = 10
  167. hum.MaxHealth = 5000
  168. wait()
  169. hum.Health = 500
  170. lasthealth = hum.MaxHealth
  171.  
  172.  
  173.  
  174. if char:FindFirstChild("Animation") ~= nil then
  175. char:FindFirstChild("Animation"):remove()
  176. end
  177.  
  178. function Lerp(c1,c2,al)
  179. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  180. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  181. for i,v in pairs(com1) do
  182. com1[i] = v+(com2[i]-v)*al
  183. end
  184. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  185. end
  186.  
  187.  
  188. function CreateWeld(P0,P1,Name,x,y,z)
  189. local w = Instance.new("Weld",P0)
  190. w.Part0 = w.Parent
  191. w.Part1 = P1
  192. w.Name = Name
  193. w.C0 = CFrame.new(x, y, z)
  194. return w
  195. end
  196.  
  197. local RS = CreateWeld(To,RArm,"Right Shoulder",1.5,0,0)
  198. local LS = CreateWeld(To,LArm,"Left Shoulder",-1.5,0,0)
  199. local RH = CreateWeld(To,RLeg,"Right Hip",.5,-2,0)
  200. local LH = CreateWeld(To,LLeg,"Left Hip",-.5,-2,0)
  201. local Ne = CreateWeld(To,He,"Neck",0,1.5,0)
  202. local RJ = CreateWeld(HRP,To,"RootJoint")
  203.  
  204. for i = 5,1,-1 do
  205. if To:FindFirstChildOfClass("Motor6D") ~= nil then
  206. To:FindFirstChildOfClass("Motor6D"):remove()
  207. end
  208. end
  209.  
  210. --[[
  211. for i = 20,1,-1 do
  212.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  213.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  214.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  215.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  216.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  217.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  218. wait()
  219. end
  220. --]]
  221.  
  222. local pose = "Idle"
  223. local lastpose = nil
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233. hum.Running:connect(function(Speed)
  234. if Speed > 1 then
  235. pose = "Walking"
  236. else
  237. pose = "Idle"
  238. end
  239. print(pose)
  240.  
  241. end)
  242.  
  243. hum.StateChanged:connect(function(State)
  244. if State == Enum.HumanoidStateType.Jumping then
  245. pose = "Jumping"
  246. elseif State == Enum.HumanoidStateType.Freefall then
  247. pose = "Falling"
  248. end
  249. print(State)
  250. end)
  251.  
  252.  
  253. -------------------------------------------Start of Attacks & Stuff-------------------------------------------
  254.  
  255. function taunt(t)
  256. if dead == false then
  257. if t.Parent.ClassName == "Model" and t.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  258.    
  259. local RS2 = CreateWeld(t.Parent.Torso,t.Parent["Right Arm"],"Right Shoulder",1.5,0,0)
  260. local LS2 = CreateWeld(t.Parent.Torso,t.Parent["Left Arm"],"Left Shoulder",-1.5,0,0)
  261. local RH2 = CreateWeld(t.Parent.Torso,t.Parent["Right Leg"],"Right Hip",.5,-2,0)
  262. local LH2 = CreateWeld(t.Parent.Torso,t.Parent["Left Leg"],"Left Hip",-.5,-2,0)
  263. local Ne2 = CreateWeld(t.Parent.Torso,t.Parent["Head"],"Neck",0,1.5,0)
  264. local RJ2 = CreateWeld(t.Parent.HumanoidRootPart,t.Parent.Torso,"RootJoint")   
  265.  
  266. local URDED = Instance.new("Sound",char.Head)
  267. URDED.SoundId = "rbxassetid://991087693"
  268. URDED.Volume = 1
  269. URDED.PlaybackSpeed = .9
  270. URDED.PlayOnRemove = true
  271.  
  272. local NO = Instance.new("Sound",char.Head)
  273. NO.SoundId = "rbxassetid://679798810"
  274. NO.Volume = 1
  275. NO.PlaybackSpeed = 1
  276. NO.PlayOnRemove = true
  277. NO.TimePosition = .15
  278.  
  279. local Yus = Instance.new("Sound",char.Head)
  280. Yus.SoundId = "rbxassetid://269597232"
  281. Yus.Volume = 1
  282. Yus.PlaybackSpeed = 1
  283. Yus.PlayOnRemove = true
  284.  
  285. local Ded = Instance.new("Sound",t.Parent.Head)
  286. Ded.SoundId = "rbxassetid://153259684"
  287. Ded.Volume = 1
  288. Ded.PlaybackSpeed = 1
  289. Ded.PlayOnRemove = true
  290.  
  291. local DeathIsSTUPID = Instance.new("Sound",t.Parent.Head)
  292. DeathIsSTUPID.SoundId = "rbxassetid://203952633"
  293. DeathIsSTUPID.Volume = 1
  294. DeathIsSTUPID.PlaybackSpeed = 1
  295. DeathIsSTUPID.TimePosition = 4.5
  296. DeathIsSTUPID.PlayOnRemove = false
  297.  
  298.  
  299. local UhNo = Instance.new("Sound",t.Parent.Head)
  300. UhNo.SoundId = "rbxassetid://154606531"
  301. UhNo.Volume = 1
  302. UhNo.PlaybackSpeed = 1
  303. UhNo.PlayOnRemove = true
  304.  
  305. local DeathScream = Instance.new("Sound",t.Parent.Head)
  306. DeathScream.SoundId = "rbxassetid://527970724"
  307. DeathScream.Volume = 1
  308. DeathScream.PlaybackSpeed = 1
  309. DeathScream.PlayOnRemove = true
  310.  
  311. hum.WalkSpeed = 0
  312. hum.JumpPower = 0
  313.  
  314. t.Parent:FindFirstChildOfClass("Humanoid").WalkSpeed = 0.01
  315. t.Parent:FindFirstChildOfClass("Humanoid").JumpPower = 0
  316. wait(2)
  317. t.Parent:FindFirstChildOfClass("Humanoid").WalkToPart = To
  318. wait(.1)
  319. t.Parent:FindFirstChildOfClass("Humanoid").WalkSpeed = 0
  320.  
  321. for i = 20,1,-1 do
  322.  RS2.C0 = Lerp(RS2.C0, CFrame.new(1.8,.9,0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(120)), 0.2)
  323.  LS2.C0 = Lerp(LS2.C0, CFrame.new(-1.8,.9,0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(-120)), 0.2)
  324.  Ne2.C0 = Lerp(Ne2.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  325.  RJ2.C0 = Lerp(RJ2.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  326.  LH2.C0 = Lerp(LH2.C0, CFrame.new(-.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  327.  RH2.C0 = Lerp(RH2.C0, CFrame.new(.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  328. wait()
  329. end
  330. DeathIsSTUPID:Play()
  331. wait(2.5)
  332. DeathIsSTUPID:remove()
  333. for i = 20,1,-1 do
  334.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  335.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  336.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  337.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  338.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  339.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  340. wait()
  341. end
  342. NO:remove()
  343. wait(1)
  344. URDED:remove()
  345. for i = 20,1,-2 do
  346.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0.5,-.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  347.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.8)
  348.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.8)
  349.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  350.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.8)
  351.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.8)
  352. wait()
  353. end
  354.  
  355. for i = 20,1,-2 do
  356.  RS.C0 = Lerp(RS.C0, CFrame.new(.3,0.6,-.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.8)
  357.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.8)
  358.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(13), math.rad(0), math.rad(8)),0.8)
  359.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  360.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.8)
  361.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.8)
  362. wait()
  363. end
  364. for i = 20,1,-1 do
  365.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0.6,-.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.2)
  366.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  367.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(13), math.rad(0), math.rad(8)),0.2)
  368.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  369.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  370.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  371. wait()
  372. end
  373.  
  374. for i = 20,1,-1 do
  375.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  376.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  377.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  378.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  379.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  380.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  381. wait()
  382. end
  383. wait(1.5)
  384. UhNo:remove()
  385. for i = 2,1,-1 do
  386. for i = 20,1,-2 do
  387.  RS2.C0 = Lerp(RS2.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  388.  LS2.C0 = Lerp(LS2.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  389.  Ne2.C0 = Lerp(Ne2.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)),0.2)
  390.  RJ2.C0 = Lerp(RJ2.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  391.  LH2.C0 = Lerp(LH2.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  392.  RH2.C0 = Lerp(RH2.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  393. wait()
  394. end
  395. for i = 20,1,-2 do
  396.  RS2.C0 = Lerp(RS2.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  397.  LS2.C0 = Lerp(LS2.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  398.  Ne2.C0 = Lerp(Ne2.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)),0.2)
  399.  RJ2.C0 = Lerp(RJ2.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  400.  LH2.C0 = Lerp(LH2.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  401.  RH2.C0 = Lerp(RH2.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  402. wait()
  403. end
  404. end
  405.  
  406. for i = 20,1,-1 do
  407.  RS2.C0 = Lerp(RS2.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  408.  LS2.C0 = Lerp(LS2.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  409.  Ne2.C0 = Lerp(Ne2.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  410.  RJ2.C0 = Lerp(RJ2.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  411.  LH2.C0 = Lerp(LH2.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  412.  RH2.C0 = Lerp(RH2.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  413. wait()
  414. end
  415. wait(0.5)
  416. Yus:remove()
  417. for i = 2,1,-1 do
  418. for i = 20,1,-2 do
  419.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  420.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  421.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)),0.2)
  422.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  423.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  424.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  425. wait()
  426. end
  427. for i = 20,1,-2 do
  428.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  429.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  430.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.2)
  431.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  432.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  433.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  434. wait()
  435. end
  436. end
  437.  
  438. for i = 20,1,-1 do
  439.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  440.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  441.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
  442.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  443.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  444.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  445. wait()
  446. end
  447. DeathScream:remove()
  448.  
  449. for i = 20,1,-2 do
  450.  RS2.C0 = Lerp(RS2.C0, CFrame.new(1.5,0.6,-.7) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  451.  LS2.C0 = Lerp(LS2.C0, CFrame.new(-.5,0.5,-.5) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(90)), 0.8)
  452.  Ne2.C0 = Lerp(Ne2.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(13), math.rad(0), math.rad(8)),0.8)
  453.  RJ2.C0 = Lerp(RJ2.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(10), math.rad(0), 0), 0.8)
  454.  LH2.C0 = Lerp(LH2.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.8)
  455.  RH2.C0 = Lerp(RH2.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.8)
  456. wait()
  457. end
  458. wait(.5)
  459. Ded:remove()
  460. for i = 20,1,-2 do
  461.  RS2.C0 = Lerp(RS2.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  462.  LS2.C0 = Lerp(LS2.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.4)
  463.  Ne2.C0 = Lerp(Ne2.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.4)
  464.  RJ2.C0 = Lerp(RJ2.C0, CFrame.new(0,-2.5,3.5) * CFrame.Angles(math.rad(90), math.rad(0), 0), 0.4)
  465.  LH2.C0 = Lerp(LH2.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.4)
  466.  RH2.C0 = Lerp(RH2.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.4)
  467. wait()
  468. end
  469.  
  470. wait(1)
  471. hum.WalkSpeed = 10
  472. hum.JumpPower = 50
  473. t.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  474.  
  475.  
  476.  
  477. end
  478. end
  479. taunting = false
  480. end
  481.  
  482.  
  483. function dance()
  484. if dead == false then
  485. local moosic = Instance.new("Sound",char.Head)
  486. local notimportantthing2 = math.random(1,8)
  487. if notimportantthing2 == 1 then
  488. moosic.SoundId = "rbxassetid://744874281"
  489. elseif notimportantthing2 == 2 then
  490. moosic.SoundId = "rbxassetid://171124369"
  491. elseif notimportantthing2 == 3 then
  492. moosic.SoundId = "rbxassetid://575705300"
  493. elseif notimportantthing2 == 4 then
  494. moosic.SoundId = "rbxassetid://685408383"
  495. elseif notimportantthing2 == 5 then
  496. moosic.SoundId = "rbxassetid://202006112"
  497. elseif notimportantthing2 == 6 then
  498. moosic.SoundId = "rbxassetid://524642625"
  499. elseif notimportantthing2 == 7 then
  500. moosic.SoundId = "rbxassetid://164281616"
  501. elseif notimportantthing2 == 8 then
  502. moosic.SoundId = "rbxassetid://288703954"
  503. end
  504. moosic.Volume = 1
  505. moosic.PlaybackSpeed = 1
  506. moosic.PlayOnRemove = false
  507. moosic.Looped = true
  508. moosic:Play()
  509. hum.WalkSpeed = 5
  510.  
  511. function thing()
  512.  
  513.  
  514. local dancevalue = math.random(1,3)
  515. local face = "rbxassetid://319908966"
  516. char.Head:FindFirstChildOfClass("Decal").Texture = face
  517.  
  518. if dancevalue == 1 then
  519. for i = 5,1,-1 do  
  520. for i = 20,1,-2 do
  521. if dancing == true then
  522.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0.5,-.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  523.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0.5,-.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  524.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.8)
  525.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  526.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,0.4) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.8)
  527.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1.6,-.5) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.8)
  528. wait()
  529. end
  530. end
  531.  
  532. for i = 20,1,-2 do
  533. if dancing == true then
  534.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0.5,-.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  535.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0.5,-.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  536.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.8)
  537.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  538.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,0.4) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.8)
  539.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-2,-0.5) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.8)
  540. wait()
  541. end
  542. end
  543.  
  544. for i = 20,1,-2 do
  545. if dancing == true then
  546.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0.5,-.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  547.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0.5,-.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  548.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.8)
  549.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  550.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1.5,-0.5) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.8)
  551.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-2,0.4) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.8)
  552. wait()
  553. end
  554. end
  555.  
  556.  
  557. for i = 20,1,-2 do
  558. if dancing == true then
  559.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0.5,-.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  560.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0.5,-.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.8)
  561.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.8)
  562.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  563.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,-0.5) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.8)
  564.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-2,0.4) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.8)
  565. wait()
  566. end
  567. end
  568.  
  569.  
  570.  
  571. end
  572. elseif dancevalue == 2 then
  573.  
  574.  
  575. for i = 5,1,-1 do
  576.  
  577. for i = 20,1,-1 do
  578. if dancing == true then
  579.  RS.C0 = Lerp(RS.C0, CFrame.new(.1,0,-.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4)
  580.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.4)
  581.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)),0.4)
  582.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.4)
  583.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-7)), 0.4)
  584.  RH.C0 = Lerp(RH.C0, CFrame.new(.6,-2.1,0) * CFrame.Angles(math.rad(0), 0, math.rad(3)), 0.4)
  585. wait()
  586. end
  587. end
  588.  
  589.  
  590.  
  591. for i = 20,1,-1 do
  592. if dancing == true then
  593.  RS.C0 = Lerp(RS.C0, CFrame.new(2,0.8,0) * CFrame.Angles(math.rad(90), math.rad(20), math.rad(89)), 0.4)
  594.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.4)
  595.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)),0.4)
  596.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.4)
  597.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-3)), 0.4)
  598.  RH.C0 = Lerp(RH.C0, CFrame.new(.6,-2.1,0) * CFrame.Angles(math.rad(0), 0, math.rad(7)), 0.4)
  599. wait()
  600. end
  601. end
  602.  
  603.  
  604.  
  605. end
  606. elseif dancevalue == 3 then
  607.  
  608.  
  609.  
  610.  
  611.  
  612. for i = 5,1,-1 do
  613.  
  614. for i = 20,1,-1 do
  615. if dancing == true then
  616.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,-.5) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-5)), 0.2)
  617.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,.5) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(-5)), 0.2)
  618.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)),0.2)
  619.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(5)), 0.2)
  620.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1,-1) * CFrame.Angles(math.rad(90), 0, math.rad(-5)), 0.2)
  621.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1.5,-.3) * CFrame.Angles(math.rad(-20), 0, math.rad(-5)), 0.2)
  622. wait()
  623. end
  624. end
  625.  
  626.  
  627. for i = 20,1,-5 do
  628. if dancing == true then
  629.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  630.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  631.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.4)
  632.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,-0.2,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  633.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1.5,-.3) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.4)
  634.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1.5,-.3) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.4)
  635. wait()
  636. end
  637. end
  638.  
  639.  
  640.  
  641. for i = 20,1,-1 do
  642. if dancing == true then
  643.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,.5) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(5)), 0.2)
  644.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,-.5) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(5)), 0.2)
  645.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)),0.2)
  646.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,-0.5,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-5)), 0.2)
  647.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1.5,-.3) * CFrame.Angles(math.rad(-20), 0, math.rad(5)), 0.2)
  648.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1,-1) * CFrame.Angles(math.rad(90), 0, math.rad(5)), 0.2)
  649. wait()
  650. end
  651. end
  652.  
  653.  
  654.  
  655.  
  656.  
  657. for i = 20,1,-5 do
  658. if dancing == true then
  659.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  660.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  661.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.4)
  662.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,-0.2,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  663.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1.5,-.3) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.4)
  664.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1.5,-.3) * CFrame.Angles(math.rad(-20), 0, math.rad(0)), 0.4)
  665. wait()
  666. end
  667. end
  668.  
  669. end
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676. elseif dancevalue == 4 then
  677.    
  678.    
  679.  
  680.    
  681. for i = 5,1,-1 do
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691. for i = 20,1,-1 do
  692. if dancing == true then
  693.  RS.C0 = Lerp(RS.C0, CFrame.new(1.1,0,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(25)), 0.2)
  694.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.7,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(25)), 0.2)
  695.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)),0.2)
  696.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.2)
  697.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(5)), 0.2)
  698.  RH.C0 = Lerp(RH.C0, CFrame.new(.6,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.2)
  699. wait()
  700. end
  701. end
  702.  
  703.  
  704. for i = 20,1,-1 do
  705. if dancing == true then
  706.  RS.C0 = Lerp(RS.C0, CFrame.new(1.1,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-25)), 0.2)
  707.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.7,0,0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-25)), 0.2)
  708.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)),0.2)
  709.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.2)
  710.  LH.C0 = Lerp(LH.C0, CFrame.new(-.6,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.2)
  711.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-5)), 0.2)
  712. wait()
  713. end
  714. end
  715.  
  716.  
  717. end
  718.  
  719.  
  720.  
  721.  
  722. end
  723.  
  724.  
  725.  
  726.  
  727.  
  728. end--end of "thing" function
  729.  
  730.  
  731. repeat thing() until dancing == false
  732. moosic:remove()
  733.  
  734.  
  735. end
  736.  
  737. end--end of "dance" function
  738.  
  739.  
  740.  
  741.  
  742. -------------------------------------------end of Attacks & Stuff-------------------------------------------
  743.  
  744.  
  745. hum.HealthChanged:connect(function()
  746. if dead == false then
  747. if hum.Health > 10 then
  748. if hum.Health < lasthealth then
  749. local randomface = math.random(1,3)
  750. local s = Instance.new("Sound",char.Head)
  751. s.SoundId = "rbxasset://sounds/uuhhh.mp3"
  752. s.Volume = 20
  753. s.PlayOnRemove = true
  754. local notimportantthing = math.random(1,3)
  755. if notimportantthing == 1 then
  756. s.PlaybackSpeed = .8
  757. elseif notimportantthing == 2 then
  758. s.PlaybackSpeed = 1
  759. elseif notimportantthing == 3 then
  760. s.PlaybackSpeed = 1.2
  761. end
  762. s:remove()
  763.  
  764. if randomface == 1 then
  765. char.Head:FindFirstChildOfClass("Decal").Texture = "rbxassetid://319908799"
  766. elseif randomface == 2 then
  767. char.Head:FindFirstChildOfClass("Decal").Texture = "rbxassetid://323571827"
  768. elseif randomface == 3 then
  769. char.Head:FindFirstChildOfClass("Decal").Texture = "rbxassetid://321234100"
  770. end
  771. wait(.3)
  772. char.Head:FindFirstChildOfClass("Decal").Texture = face
  773.  
  774. end
  775.  
  776. lasthealth = hum.Health - 2
  777. else
  778. dead = true
  779. taunting = nil
  780. dancing = nil
  781. hum.Health = 0
  782. wait(5)
  783. taunting = nil
  784. dancing = nil
  785. end
  786. end
  787. end)
  788.  
  789.  
  790.  
  791.  
  792. mouse.KeyDown:connect(function(key)
  793. if dead == false then
  794. if key == "m" then
  795. if taunting == false then
  796. taunting = true
  797. taunt(mouse.Target)
  798. end
  799. elseif key == "q" then
  800.  
  801. if dancing == false and taunting == false then
  802. taunting = true
  803. dancing = true
  804. dance()
  805. elseif dancing == true and taunting == true then
  806. taunting = false
  807. dancing = false
  808. hum.WalkSpeed = 10
  809. local face = "rbxasset://textures/face.png"
  810. char.Head:FindFirstChildOfClass("Decal").Texture = face
  811. end
  812. end
  813. end
  814. end)
  815.  
  816. while true do
  817. if dead == false then
  818. if taunting == false then
  819. if lastpose ~= pose then
  820.    
  821.    
  822.     ------------------------------------------Lastpose ~= pose
  823. if pose == "Idle" then
  824.    
  825. ---------------------------------Idle1-------------------------------  
  826. for i = 20,1,-1 do
  827. if pose == "Idle" then
  828.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.05)
  829.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0.1,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.05)
  830.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)),0.05)
  831.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0), math.rad(30), 0), 0.05)
  832.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.05)
  833.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-2,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.05)
  834. wait()
  835. end
  836. end
  837. ---------------------------------Idle1-------------------------------  
  838.  
  839.  
  840. elseif pose == "Walking" then
  841.  
  842.  
  843. ---------------------------------Walking1-------------------------------   
  844. for i = 20,1,-1 do
  845. if pose == "Walking" then
  846.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,0.45) * CFrame.Angles(math.rad(-25), math.rad(8), math.rad(0)), 0.08)
  847.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,-0.5) * CFrame.Angles(math.rad(20), math.rad(8), math.rad(0)), 0.08)
  848.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(5), math.rad(8), math.rad(0)),0.08)
  849.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-5), math.rad(-8), 0), 0.08)
  850.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1.95,0.6) * CFrame.Angles(math.rad(-25), math.rad(8), math.rad(0)), 0.08)
  851.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1.95,-1) * CFrame.Angles(math.rad(25), math.rad(8), math.rad(0)), 0.08)
  852. wait()
  853. end
  854. end
  855. ---------------------------------Walking1-------------------------------   
  856.  
  857. elseif pose == "Jumping" then
  858.  
  859.  
  860.  
  861. ---------------------------------Jumping-------------------------------
  862. --None--
  863. ---------------------------------Jumping-------------------------------
  864.  
  865.  
  866.  
  867.  
  868.  
  869. end
  870. lastpose = pose
  871. elseif lastpose == pose then
  872.     -------------------------------------------Lastpose == pose
  873.    
  874.    
  875. if pose == "Idle" then
  876.    
  877. ---------------------------------Idle2-------------------------------      
  878. for i = 20,1,-1 do
  879. if pose == "Idle" then
  880.  RS.C0 = Lerp(RS.C0, CFrame.new(1.6,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(7)), 0.05)
  881.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.6,0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-7)), 0.05)
  882.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)),0.05)
  883.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,-0.05,0) * CFrame.Angles(math.rad(0), math.rad(30), 0), 0.05)
  884.  LH.C0 = Lerp(LH.C0, CFrame.new(-.7,-1.95,0) * CFrame.Angles(math.rad(0), 0, math.rad(-10)), 0.05)
  885.  RH.C0 = Lerp(RH.C0, CFrame.new(.7,-1.95,0) * CFrame.Angles(math.rad(0), 0, math.rad(10)), 0.05)
  886. wait()
  887. end
  888. end
  889. ---------------------------------Idle2-------------------------------  
  890. elseif pose == "Walking" then
  891.    
  892. ---------------------------------Walking2-------------------------------   
  893. for i = 20,1,-1 do
  894. if pose == "Walking" then
  895.  RS.C0 = Lerp(RS.C0, CFrame.new(1.5,0,-0.45) * CFrame.Angles(math.rad(20), math.rad(-8), math.rad(0)), 0.08)
  896.  LS.C0 = Lerp(LS.C0, CFrame.new(-1.5,0,0.5) * CFrame.Angles(math.rad(-25), math.rad(-8), math.rad(0)), 0.08)
  897.  Ne.C0 = Lerp(Ne.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(4), math.rad(-8), math.rad(0)),0.08)
  898.  RJ.C0 = Lerp(RJ.C0, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-5), math.rad(8), 0), 0.08)
  899.  LH.C0 = Lerp(LH.C0, CFrame.new(-.5,-1.95,-1) * CFrame.Angles(math.rad(25), math.rad(-8), math.rad(0)), 0.08)
  900.  RH.C0 = Lerp(RH.C0, CFrame.new(.5,-1.95,0.6) * CFrame.Angles(math.rad(-25), math.rad(-8), math.rad(0)), 0.08)
  901. wait()
  902. end
  903. end
  904. ---------------------------------Walking2-------------------------------   
  905.  
  906. end
  907.    
  908.    
  909. lastpose = nil 
  910.    
  911. end
  912. end
  913. end
  914. wait()
  915. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top