Advertisement
idkwhatiam

T POSE

May 18th, 2019
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.78 KB | None | 0 0
  1. --RARE--
  2.  
  3. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  4. do
  5.     script.Parent = owner.Character
  6.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  7.     local function NewFakeEvent()
  8.         local Bind = Instance.new("BindableEvent")
  9.         local Fake;Fake = {Connections = {},
  10.         fakeEvent=true;
  11.         Connect=function(self,Func)
  12.             Bind.Event:connect(Func)
  13.             self.Connections[Bind] = true
  14.             return setmetatable({Connected = true},{
  15.             __index = function (self,Index)
  16.                 if Index:lower() == "disconnect" then
  17.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  18.                 end
  19.                 return Fake[Index]
  20.             end;
  21.             __tostring = function() return "Connection" end;
  22.         })
  23.         end}
  24.         Fake.connect = Fake.Connect;return Fake;
  25.     end
  26.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  27.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  28.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  29.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  30.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  31.     local function TriggerEvent(self,Event,...)
  32.         local Trigger = Mouse[Event]
  33.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  34.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  35.         end
  36.     end
  37.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  38.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  39.         if FiredBy.Name ~= owner.Name then return end
  40.         if Input.MouseEvent then
  41.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  42.         else
  43.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  44.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  45.             for _,Action in pairs(ContextActionService.Actions) do
  46.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  47.             end
  48.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50.         end
  51.     end)
  52.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  53.     Event.Parent = NLS([[
  54.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  55.         local Input = function(Input,gameProcessedEvent)
  56.             if gameProcessedEvent then return end
  57.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58.         end
  59.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  60.         local Hit,Target
  61.         while wait(1/30) do
  62.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64.             end
  65.         end
  66.     ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69.     __index = function (self,Index)
  70.         local Sandbox = function (Thing)
  71.             if Thing:IsA("Player") then
  72.                 local RealPlayer = Thing
  73.                 return setmetatable({},{
  74.                     __index = function (self,Index)
  75.                         local Type = type(RealPlayer[Index])
  76.                         if Type == "function" then
  77.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78.                                 return function (self)return InternalData["Mouse"] end
  79.                             end
  80.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  81.                         end
  82.                         return RealPlayer[Index]
  83.                     end;
  84.                     __tostring = function(self) return RealPlayer.Name end
  85.                 })
  86.             end
  87.         end
  88.         if RealGame[Index] then
  89.             local Type = type(RealGame[Index])
  90.             if Type == "function" then
  91.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  92.                     return function (self,Service)
  93.                         local FakeServices = {
  94.                             ["players"] = function()
  95.                                 return setmetatable({},{
  96.                                     __index = function (self2,Index2)
  97.                                         local RealService = RealGame:GetService(Service)
  98.                                         local Type2 = type(Index2)
  99.                                         if Type2 == "function" then
  100.                                             return function (self,...) return RealService[Index2](RealService,...)end
  101.                                         else
  102.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  103.                                             return RealService[Index2]
  104.                                         end
  105.                                     end;
  106.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  107.                                 })
  108.                             end;
  109.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  110.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  111.                             ["runservice"] = function()
  112.                                 return setmetatable({},{
  113.                                     __index = function(self2,Index2)
  114.                                         local RealService = RealGame:GetService(Service)
  115.                                         local Type2 = type(Index2)
  116.                                         if Type2 == "function" then
  117.                                             return function (self,...) return RealService[Index2](RealService,...) end
  118.                                         else
  119.                                             local RunServices = {
  120.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  121.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  122.                                             }
  123.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  124.                                             return RealService[Index2]
  125.                                         end
  126.                                     end
  127.                                 })
  128.                             end
  129.                         }
  130.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  131.                         return RealGame:GetService(Service)
  132.                     end
  133.                 end
  134.                 return function (self,...) return RealGame[Index](RealGame,...) end
  135.             else
  136.                 if game:GetService(Index) then return game:GetService(Index) end
  137.                 return RealGame[Index]
  138.             end
  139.         end
  140.         return nil
  141.     end
  142. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  143.  
  144. Player=game.Players.LocalPlayer
  145. Character=Player.Character
  146. Character.Humanoid.Name = "noneofurbusiness"
  147. hum = Character.noneofurbusiness
  148. LeftArm=Character["Left Arm"]
  149. LeftLeg=Character["Left Leg"]
  150. RightArm=Character["Right Arm"]
  151. RightLeg=Character["Right Leg"]
  152. Root=Character["HumanoidRootPart"]
  153. Head=Character["Head"]
  154. Torso=Character["Torso"]
  155. Neck=Torso["Neck"]
  156. mouse = Player:GetMouse()
  157. walking = false
  158. jumping = false
  159. attacking = false
  160. firsttime = false
  161. tauntdebounce = false
  162. position = nil
  163. MseGuide = true
  164. running = false
  165. settime = 0
  166. sine = 0
  167. t = 0
  168. ws = 14
  169. change = 1
  170. combo1 = true
  171. dancing = false
  172. equip = false
  173. dgs = 75
  174. combo2 = false
  175. switch1 = true
  176. switch2 = false
  177. firsttime2 = false
  178. combo3 = false
  179. gunallowance = false
  180. shooting = false
  181. RunSrv = game:GetService("RunService")
  182. RenderStepped = game:GetService("RunService").RenderStepped
  183. removeuseless = game:GetService("Debris")
  184.  
  185. screenGui = Instance.new("ScreenGui")
  186. screenGui.Parent = script.Parent
  187.  
  188. local HEADLERP = Instance.new("ManualWeld")
  189. HEADLERP.Parent = Head
  190. HEADLERP.Part0 = Head
  191. HEADLERP.Part1 = Head
  192. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  193.  
  194. local TORSOLERP = Instance.new("ManualWeld")
  195. TORSOLERP.Parent = Root
  196. TORSOLERP.Part0 = Torso
  197. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  198.  
  199. local ROOTLERP = Instance.new("ManualWeld")
  200. ROOTLERP.Parent = Root
  201. ROOTLERP.Part0 = Root
  202. ROOTLERP.Part1 = Torso
  203. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  204.  
  205. local RIGHTARMLERP = Instance.new("ManualWeld")
  206. RIGHTARMLERP.Parent = RightArm
  207. RIGHTARMLERP.Part0 = RightArm
  208. RIGHTARMLERP.Part1 = Torso
  209. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  210.  
  211. local LEFTARMLERP = Instance.new("ManualWeld")
  212. LEFTARMLERP.Parent = LeftArm
  213. LEFTARMLERP.Part0 = LeftArm
  214. LEFTARMLERP.Part1 = Torso
  215. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  216.  
  217. local RIGHTLEGLERP = Instance.new("ManualWeld")
  218. RIGHTLEGLERP.Parent = RightLeg
  219. RIGHTLEGLERP.Part0 = RightLeg
  220. RIGHTLEGLERP.Part1 = Torso
  221. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  222.  
  223. local LEFTLEGLERP = Instance.new("ManualWeld")
  224. LEFTLEGLERP.Parent = LeftLeg
  225. LEFTLEGLERP.Part0 = LeftLeg
  226. LEFTLEGLERP.Part1 = Torso
  227. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  228.  
  229. local function weldBetween(a, b)
  230.     local weld = Instance.new("ManualWeld", a)
  231.     weld.Part0 = a
  232.     weld.Part1 = b
  233.     weld.C0 = a.CFrame:inverse() * b.CFrame
  234.     return weld
  235. end
  236.  
  237. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  238. A = Instance.new("Attachment", PARENT)
  239. A.Position = POSITION1
  240. A.Name = "A"
  241. B = Instance.new("Attachment", PARENT)
  242. B.Position = POSITION2
  243. B.Name = "B"
  244. tr1 = Instance.new("Trail", PARENT)
  245. tr1.Attachment0 = A
  246. tr1.Attachment1 = B
  247. tr1.Enabled = true
  248. tr1.Lifetime = LIFETIME
  249. tr1.TextureMode = "Static"
  250. tr1.LightInfluence = 0
  251. tr1.Color = COLOR
  252. tr1.Transparency = NumberSequence.new(0, 1)
  253. end
  254.  
  255. introsound = Instance.new("Sound",Head)
  256. introsound.SoundId = "rbxassetid://236146895"
  257. introsound.Volume = 8
  258. introsound:Play()
  259.  
  260. lighting = game.Lighting
  261.  
  262. fedora = Instance.new("Part",lighting)
  263. mfedora = Instance.new("SpecialMesh", fedora)
  264.  
  265. shades = Instance.new("Part",lighting)
  266. mshades = Instance.new("SpecialMesh", shades)
  267.  
  268. godmode = coroutine.wrap(function()
  269. for i,v in pairs(Character:GetChildren()) do
  270. if v:IsA("BasePart") and v ~= Root then
  271. v.Anchored = false
  272. end
  273. end
  274. while true do
  275. hum.MaxHealth = math.huge
  276. wait(0.0000001)
  277. hum.Health = math.huge
  278. wait()
  279. end
  280. end)
  281. godmode()
  282. ff = Instance.new("ForceField", Character)
  283. ff.Visible = false
  284.  
  285. coroutine.wrap(function()
  286. for i,v in pairs(Character:GetChildren()) do
  287. if v.Name == "Animate" then v:Remove()
  288. end
  289. end
  290. end)()
  291.  
  292. function damagealll(Radius,Position)       
  293.     local Returning = {}       
  294.     for _,v in pairs(workspace:GetChildren()) do       
  295.         if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  296. if v:FindFirstChild("Torso") then      
  297.             local Mag = (v.Torso.Position - Position).magnitude    
  298.             if Mag < Radius then       
  299.                 table.insert(Returning,v)      
  300.             end
  301. elseif v:FindFirstChild("UpperTorso") then 
  302.             local Mag = (v.UpperTorso.Position - Position).magnitude       
  303.             if Mag < Radius then       
  304.                 table.insert(Returning,v)      
  305.             end
  306. end
  307.         end    
  308.     end    
  309.     return Returning       
  310. end
  311.  
  312. ArtificialHB = Instance.new("BindableEvent", script)
  313. ArtificialHB.Name = "Heartbeat"
  314. script:WaitForChild("Heartbeat")
  315.  
  316. frame = 1 / 60
  317. tf = 0
  318. allowframeloss = false
  319. tossremainder = false
  320.  
  321.  
  322. lastframe = tick()
  323. script.Heartbeat:Fire()
  324.  
  325.  
  326. game:GetService("RunService").Heartbeat:connect(function(s, p)
  327.     tf = tf + s
  328.     if tf >= frame then
  329.         if allowframeloss then
  330.             script.Heartbeat:Fire()
  331.             lastframe = tick()
  332.         else
  333.             for i = 1, math.floor(tf / frame) do
  334.                 script.Heartbeat:Fire()
  335.             end
  336.             lastframe = tick()
  337.         end
  338.         if tossremainder then
  339.             tf = 0
  340.         else
  341.             tf = tf - frame * math.floor(tf / frame)
  342.         end
  343.     end
  344. end)
  345.  
  346. function swait(num)
  347.     if num == 0 or num == nil then
  348.         game:service("RunService").Stepped:wait(0)
  349.     else
  350.         for i = 0, num do
  351.             game:service("RunService").Stepped:wait(0)
  352.         end
  353.     end
  354. end
  355.  
  356. intro = true
  357. ws = 0
  358.  
  359. bigfedora = Instance.new("Part",Character)
  360. bigfedora.Size = Vector3.new(2,2,2)
  361. bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
  362. bigfedora.CanCollide = false
  363. bigfedora.Anchored = true
  364. bigfedora.Name = "mbigf"
  365. mbigfedora = Instance.new("SpecialMesh", bigfedora)
  366. mbigfedora.MeshType = "FileMesh"
  367. mbigfedora.Scale = Vector3.new(6, 7, 7)
  368. mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  369. for i,v in pairs(Character:GetDescendants()) do
  370. if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
  371. end
  372. end
  373. for i = 1, 60 do
  374. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09)
  375. swait()
  376. end
  377. wait(.25)
  378. for i,v in pairs(Character:GetDescendants()) do
  379. if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0
  380. end
  381. end
  382. for i = 1, 50 do
  383. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
  384. swait()
  385. end
  386. zmc = 0
  387. for i = 1, 29 do
  388. zmc = zmc + 2
  389. mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
  390. bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
  391. swait()
  392. end
  393. bigfedora:Remove()
  394.  
  395. ws = 14
  396.  
  397. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  398. so = Instance.new("Sound")
  399. so.Parent = PARENT
  400. so.SoundId = "rbxassetid://"..ID
  401. so.Volume = VOL
  402. so.Looped = LOOP
  403.  
  404. so:Play()
  405. removeuseless:AddItem(so,REMOVE)
  406. end
  407.  
  408. MUSIK = Instance.new("Sound", Head)
  409. MUSIK.Playing = true
  410. MUSIK.Looped = true
  411. MUSIK.SoundId = "rbxassetid://1296208488"
  412. MUSIK.Volume = 10
  413.  
  414. mouse.Button1Down:connect(function()
  415. if attacking == false then
  416. attacking = true
  417. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0 + 0.2) * CFrame.Angles(-90,0,math.rad(0)),.6 + .2)
  418. lemonti = "rbxassetid://430648525"
  419. lemonmi = "rbxassetid://430648522"
  420. size = Vector3.new(0.07, 0.07, 0.07)
  421.  
  422. function DMG(hit)
  423.     hah = hit.Parent
  424.     hahtorso = hah.Torso
  425.     hahhead = hah.Head
  426.     haharm1 = hah["Left Arm"]
  427.     haharm2 = hah["Right Arm"]
  428.     hahleg1 = hah["Left Leg"]
  429.     hahleg2 = hah["Right Leg"]
  430.     hahtorso.Anchored = true
  431.     wait(0.5)
  432.     hahtorso.Transparency = 0.2
  433.     hahhead.Transparency = 0.2
  434.     haharm1.Transparency = 0.2
  435.     haharm2.Transparency = 0.2
  436.     hahleg1.Transparency = 0.2
  437.     hahleg2.Transparency = 0.2
  438.     wait(0.05)
  439.     hahtorso.Transparency = 0.5
  440.     hahhead.Transparency = 0.5
  441.     haharm1.Transparency = 0.5
  442.     haharm2.Transparency = 0.5
  443.     hahleg1.Transparency = 0.5
  444.     hahleg2.Transparency = 0.5
  445.     wait(0.05)
  446.     hahtorso.Transparency = 0.7
  447.     hahhead.Transparency = 0.7
  448.     haharm1.Transparency = 0.7
  449.     haharm2.Transparency = 0.7
  450.     hahleg1.Transparency = 0.7
  451.     hahleg2.Transparency = 0.7
  452.     wait(0.05)
  453.     hahtorso.Transparency = 1
  454.     hahhead.Transparency = 1
  455.     haharm1.Transparency = 1
  456.     haharm2.Transparency = 1
  457.     hahleg1.Transparency = 1
  458.     hahleg2.Transparency = 1
  459.     hahtorso:Destroy()
  460. end
  461.  
  462. local sur = Instance.new("BillboardGui", Character.Head)
  463. sur.Name = "Billboard"
  464. sur.Adornee = Character.Head
  465. sur.Size = UDim2.new(10, 0, 5, 0)
  466. sur.StudsOffset = Vector3.new(0, 5, 0)
  467. local text = Instance.new("TextLabel", sur)
  468. text.Text = "you lemon"
  469. text.Size = UDim2.new(1, 0, 1, 0)
  470. text.TextScaled = true
  471. text.BackgroundTransparency = 1
  472. text.Font = Enum.Font.SourceSansLight
  473. text.TextColor3 = Color3.new(1, 1, 1)
  474. text.TextStrokeTransparency = 0
  475.  
  476. lemon = Instance.new("Part")
  477. lemon.Parent = RightArm
  478. lemon.Name = "TPOSELEMONTXT"
  479. lemon.Anchored = false
  480. lemon.CanCollide = false
  481. lemon.Size = Vector3.new(2.5, 2.5, 2.5)
  482. lemon.Touched:connect(function(hit)
  483.     hah = hit.Parent
  484.     hahtorso = hah.Torso
  485.     hahhead = hah.Head
  486.     haharm1 = hah["Left Arm"]
  487.     haharm2 = hah["Right Arm"]
  488.     hahleg1 = hah["Left Leg"]
  489.     hahleg2 = hah["Right Leg"]
  490.     hahtorso.Anchored = true
  491.     wait(0.5)
  492.     hahtorso.Transparency = 0.2
  493.     hahhead.Transparency = 0.2
  494.     haharm1.Transparency = 0.2
  495.     haharm2.Transparency = 0.2
  496.     hahleg1.Transparency = 0.2
  497.     hahleg2.Transparency = 0.2
  498.     wait(0.05)
  499.     hahtorso.Transparency = 0.5
  500.     hahhead.Transparency = 0.5
  501.     haharm1.Transparency = 0.5
  502.     haharm2.Transparency = 0.5
  503.     hahleg1.Transparency = 0.5
  504.     hahleg2.Transparency = 0.5
  505.     wait(0.05)
  506.     hahtorso.Transparency = 0.7
  507.     hahhead.Transparency = 0.7
  508.     haharm1.Transparency = 0.7
  509.     haharm2.Transparency = 0.7
  510.     hahleg1.Transparency = 0.7
  511.     hahleg2.Transparency = 0.7
  512.     wait(0.05)
  513.     hahtorso.Transparency = 1
  514.     hahhead.Transparency = 1
  515.     haharm1.Transparency = 1
  516.     haharm2.Transparency = 1
  517.     hahleg1.Transparency = 1
  518.     hahleg2.Transparency = 1
  519.     hahtorso:Destroy()
  520. end)
  521. wlemon = Instance.new("Weld")
  522. wlemon.Parent = lemon
  523. wlemon.Part0 = lemon
  524. wlemon.Part1 = RightArm
  525. wlemon.C0 = CFrame.new(0, 0.85, 0)
  526. mlemon = Instance.new("SpecialMesh")
  527. mlemon.Parent = lemon
  528. mlemon.MeshId = lemonmi
  529. mlemon.TextureId = lemonti
  530. mlemon.Scale = size
  531. wait(0.5)
  532. attacking = false
  533. sur:Destroy()
  534. text:Destroy()
  535. wlemon:Destroy()
  536. mlemon:Destroy()
  537. lemon:Destroy()
  538. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  539. end
  540. end)
  541.  
  542. function ray(pos, dir, rang, ignoredesc)
  543.     return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  544. end
  545.  
  546. function ray2(startpos, endpos, distance, ignore)
  547. local dir = CFrame.new(startpos,endpos).lookVector
  548. return ray(startpos, dir, distance, ignore)
  549. end
  550.  
  551. checks1 = coroutine.wrap(function() -------Checks
  552. while true do
  553. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  554. if Root.Velocity.y > 1 then
  555. position = "Jump"
  556. elseif Root.Velocity.y < -1 then
  557. position = "Falling"
  558. elseif Root.Velocity.Magnitude < 2 then
  559. position = "Idle"
  560. elseif Root.Velocity.Magnitude > 2 then
  561. position = "Walking"
  562. elseif Root.Velocity.Magnitude > 20 then
  563. position = "Running"
  564. else
  565. end
  566. wait()
  567. end
  568. end)
  569. checks1()
  570.  
  571. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  572.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  573. end
  574.  
  575. function ray2(StartPos, EndPos, Distance, Ignore)
  576. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  577. return ray(StartPos, DIRECTION, Distance, Ignore)
  578. end
  579.  
  580. OrgnC0 = Neck.C0
  581. local movelimbs = coroutine.wrap(function()
  582. while RunSrv.RenderStepped:wait() do
  583. TrsoLV = Torso.CFrame.lookVector
  584. Dist = nil
  585. Diff = nil
  586. if not MseGuide then
  587. print("Failed to recognize")
  588. else
  589. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  590. Dist = (Head.CFrame.p-Point).magnitude
  591. Diff = Head.CFrame.Y-Point.Y
  592. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  593. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  594. Diff2 = LeftArm.CFrame.Y-Point.Y
  595. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  596. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  597. end
  598. end
  599. end)
  600. movelimbs()
  601. immortal = {}
  602. for i,v in pairs(Character:GetDescendants()) do
  603.     if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  604.         if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  605.             v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  606.         end
  607.         table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  608.     elseif v:IsA("JointInstance") then
  609.         table.insert(immortal,{v,v.Parent,nil,nil,nil})
  610.     end
  611. end
  612. for e = 1, #immortal do
  613.     if immortal[e] ~= nil then
  614.         local STUFF = immortal[e]
  615.         local PART = STUFF[1]
  616.         local PARENT = STUFF[2]
  617.         local MATERIAL = STUFF[3]
  618.         local COLOR = STUFF[4]
  619.         local TRANSPARENCY = STUFF[5]
  620. if levitate then
  621.         if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  622.             PART.Material = MATERIAL
  623.             PART.Color = COLOR
  624.             PART.Transparency = TRANSPARENCY
  625.         end
  626.         PART.AncestryChanged:connect(function()
  627.             PART.Parent = PARENT
  628.         end)
  629. else
  630.         if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  631.             PART.Material = MATERIAL
  632.             PART.Color = COLOR
  633.             PART.Transparency = TRANSPARENCY
  634.         end
  635.         PART.AncestryChanged:connect(function()
  636.             PART.Parent = PARENT
  637.         end)
  638. end
  639.     end
  640. end
  641. function immortality()
  642.     for e = 1, #immortal do
  643.         if immortal[e] ~= nil then
  644.             local STUFF = immortal[e]
  645.             local PART = STUFF[1]
  646.             local PARENT = STUFF[2]
  647.             local MATERIAL = STUFF[3]
  648.             local COLOR = STUFF[4]
  649.             local TRANSPARENCY = STUFF[5]
  650.             if PART.ClassName == "Part" and PART == Root then
  651.                 PART.Material = MATERIAL
  652.                 PART.Color = COLOR
  653.                 PART.Transparency = TRANSPARENCY
  654.             end
  655.             if PART.Parent ~= PARENT then
  656.                 hum:Remove()
  657.                 PART.Parent = PARENT
  658.                 hum = Instance.new("Humanoid",Character)
  659.                                 hum.Name = "noneofurbusiness"
  660.             end
  661.         end
  662.     end
  663. end
  664. coroutine.wrap(function()
  665. while true do
  666. if hum.Health < .1 then
  667. deadsound = Instance.new("Sound", Torso)
  668. deadsound.Volume = 6
  669. deadsound.SoundId = "rbxassetid://1411352723"
  670. deadsound:Play()
  671. immortality()
  672. end
  673. wait()
  674. end
  675. end)()
  676.  
  677. local anims = coroutine.wrap(function()
  678. while true do
  679. settime = 0.05
  680. sine = sine + change
  681. if position == "Jump" and attacking == false then
  682. change = 1
  683. spin = false
  684. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  685. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)),math.rad(0),math.rad(0)),0)
  686. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  687. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  688. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(-0)), 0)
  689. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(0)), 0)
  690. elseif position == "Falling" and attacking == false then
  691. change = 1
  692. spin = false
  693. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  694. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)),math.rad(0),math.rad(0)),0)
  695. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  696. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  697. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(-0)), 0)
  698. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(0)), 0)
  699. elseif position == "Walking" and attacking == false and running == false then
  700. change = 1.2
  701. walking = true
  702. spin = false
  703. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  704. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)),math.rad(0),math.rad(0)),0)
  705. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  706. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  707. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(-0)), 0)
  708. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(0)), 0)
  709. elseif position == "Idle" and attacking == false and running == false then
  710. change = .5
  711. spin = true
  712. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  713. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)),math.rad(0),math.rad(0)),0)
  714. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  715. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  716. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(-0)), 0)
  717. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(0)), 0)
  718. elseif position == "Running" and attacking == false then
  719. change = 1
  720. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  721. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  722. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
  723. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  724. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
  725. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  726. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
  727. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  728. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
  729. end
  730. swait()
  731. end
  732. end)
  733. anims()
  734. warn("Back from the past to dance the dance. Made by Supr14(Credits to Krystalteam).")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement