zubastik_cakes

Millennium (fe script)

Oct 18th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.47 KB | None | 0 0
  1.  
  2. local SetSimulationRadius = setsimulationradius or function(radius)
  3.     sethiddenproperty(game:GetService("Players").LocalPlayer,"MaximumSimulationRadius",radius)
  4.     sethiddenproperty(game:GetService("Players").LocalPlayer,"SimulationRadius",radius)
  5. end
  6.  
  7. game:GetService("RunService").Stepped:Connect(function()
  8.   SetSimulationRadius(math.huge, math.huge)
  9. end)
  10.     local gui = game:GetObjects("rbxassetid://5725019371")[1]
  11.     gui.Parent = game.CoreGui
  12.     local script = Instance.new("LocalScript",gui.Frame)
  13. local origcirclesize = UDim2.new(0, 330,0, 330)
  14. local origcircleudim = UDim.new(1,0)
  15. local origtopbarsize = script.Parent.Frame.Size
  16. script.Parent.Gui.Frame.BackgroundTransparency=0
  17. script.Parent.Gui.Buttons.Size = UDim2.new(0,0,0,0)
  18. script.Parent.Frame.Size=UDim2.new(0,0,0,0)
  19. script.Parent.Size = UDim2.new(0,0,0,0)
  20. script.Parent.Gui.Size=UDim2.new(0,0,0,0)
  21. script.Parent.TextLabel.TextSize=50
  22. script.Parent.TextLabel.TextTransparency=0
  23. script.Parent.UICorner.CornerRadius=origcircleudim
  24. local tweenInfo = TweenInfo.new(
  25.     1, -- Time
  26.     Enum.EasingStyle.Sine, -- EasingStyle
  27.     Enum.EasingDirection.InOut, -- EasingDirection
  28.     0, -- RepeatCount (when less than zero the tween will loop indefinitely)
  29.     false, -- Reverses (tween will reverse once reaching it's goal)
  30.     0 -- DelayTime
  31. )
  32. wait(1)
  33. script.Parent:TweenSize(origcirclesize,Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,1)
  34. wait(2)
  35. script.Parent:TweenSize(UDim2.new(0, 668,0, 330),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,1)
  36. game:GetService("TweenService"):Create(script.Parent.UICorner, tweenInfo, {CornerRadius = UDim.new(0,15)}):Play()
  37.  
  38. wait(.7)
  39. script.Parent.Frame:TweenSize(origtopbarsize,Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,.7)
  40.  
  41. game:GetService("TweenService"):Create(script.Parent.TextLabel, tweenInfo, {TextTransparency = 1}):Play()
  42. game:GetService("TweenService"):Create(script.Parent.TextLabel, tweenInfo, {TextSize = 0}):Play()
  43. game:GetService("TweenService"):Create(script.Parent.TextLabel, tweenInfo, {TextTransparency = 1}):Play()
  44. script.Parent.Gui:TweenSize(UDim2.new(0, 668,0, 314),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,1)
  45. script.Parent.Gui.Buttons:TweenSize(UDim2.new(0, 667,0, 198),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,1)
  46. wait(1)
  47. game:GetService("TweenService"):Create(script.Parent.Gui.Frame, tweenInfo, {BackgroundTransparency = 1}):Play()
  48.  
  49. local UIS = game:GetService("UserInputService")
  50. function dragify(Frame)
  51.     dragToggle = nil
  52.     local dragSpeed = 0.50
  53.     dragInput = nil
  54.     dragStart = nil
  55.     local dragPos = nil
  56.     function updateInput(input)
  57.         local Delta = input.Position - dragStart
  58.         local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  59.         game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.05), {Position = Position}):Play()
  60.     end
  61.     Frame.InputBegan:Connect(function(input)
  62.         if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  63.             dragToggle = true
  64.             dragStart = input.Position
  65.             startPos = Frame.Position
  66.             input.Changed:Connect(function()
  67.                 if input.UserInputState == Enum.UserInputState.End then
  68.                     dragToggle = false
  69.                 end
  70.             end)
  71.         end
  72.     end)
  73.     Frame.InputChanged:Connect(function(input)
  74.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  75.             dragInput = input
  76.         end
  77.     end)
  78.     game:GetService("UserInputService").InputChanged:Connect(function(input)
  79.         if input == dragInput and dragToggle then
  80.             updateInput(input)
  81.         end
  82.     end)
  83. end
  84.  
  85. function playId(id)
  86.     run = false
  87.     for i=0,10 do resetatt() end
  88. wait(.5)
  89.     local kfs = game:GetObjects('rbxassetid://' .. tostring(id))[1];
  90.     local poses = {};
  91.     local frames = {};
  92.     local plr = game.Players.LocalPlayer;
  93.     local chr = plr.Character;
  94.     local hum = chr.Humanoid;
  95.     for i, v in pairs(kfs:GetChildren()) do
  96.         table.insert(frames, v.Time)
  97.         poses[v.Time] = {};
  98.         for o, b in pairs(v:GetDescendants()) do
  99.             b.Parent = v;
  100.             table.insert(poses[v.Time], b);
  101.         end
  102.     end
  103.     for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  104.         v:Stop();
  105.     end
  106.     local timex = 1;
  107.     spawn(function()
  108.         hum.Died:Connect(function()
  109.             run = false
  110.         end)
  111.     end);
  112.     run = true
  113.  
  114.     while run do
  115.         for K, v in pairs(frames) do
  116.             if not run then
  117.                 resetatt()
  118.                 break
  119.             end
  120.             if frames[K-1] ~= nil then
  121.                 swait(2)
  122.             end
  123.             for o, b in pairs(poses[v]) do
  124.             if not run then
  125.                 resetatt()
  126.                 break
  127.             end
  128.                 local Duration = frames[K+1] ~= nil and (frames[K+1] - frames[K])/.5
  129.                 local Pose = b
  130.                 if Pose.ClassName == "Pose" then
  131.                 local EasingStyle = Enum.EasingStyle[tostring(Pose["EasingStyle"]):split(".")[3]]
  132.                 local EasingDirection = Enum.EasingDirection[tostring(Pose["EasingDirection"]):split(".")[3]]
  133.                 if Pose['Name'] == "HumanoidRootPart" then
  134.                 elseif Pose['Name'] == "Head" then
  135.                 else
  136.                     game:GetService("TweenService"):Create(chr[b.Name].Attachment0, TweenInfo.new(Duration or .5,EasingStyle,EasingDirection,0,false,0), {CFrame = PoseToCF(b, Joints[Pose['Name']])}):Play()
  137.                 end
  138.                 end
  139.             end
  140.  
  141.         end
  142.             if not run then
  143.                 resetatt()
  144.                 break
  145.             end
  146.     end
  147.     for i,v in pairs(Joints) do
  148.         resetatt()
  149.         wait()
  150.         resetatt()
  151.     end
  152. end
  153.  
  154.  
  155.  
  156. dragify(script.Parent)
  157. function c(e,id)
  158.     local t = e.text
  159.     e.MouseButton1Click:Connect(function() if game.Players.LocalPlayer.Character.Head:FindFirstChild("ClientRan") then  playId(id) else e.Text="Run Client" wait(1) e.Text = t end end)
  160. end
  161. local script = Instance.new("LocalScript",gui.Frame.Gui.Buttons)
  162. c(script.Parent.Pogo,3053543383)
  163. c(script.Parent.TPose,2736568442)
  164. c(script.Parent.Rewind,5011408603)
  165. c(script.Parent.Skibidi,4835795413)
  166. c(script.Parent["prickly pose"],3478880765)
  167. c(script.Parent["smooth moves"],4900539662)
  168. c(script.Parent["the roll"],4699826237)
  169. c(script.Parent["double step"],4715102040)
  170. c(script.Parent.anthonyshuffle,4837748730)
  171. c(script.Parent.Spongebob,4896926493)
  172. c(script.Parent.carlton,4837749916)
  173. c(script.Parent.billiejean,4791471969)
  174.     local UserInputService = game:GetService("UserInputService")
  175.  
  176. local oogabooga = gui.Frame
  177.  
  178. local dragging
  179. local dragInput
  180. local dragStart
  181. local startPos
  182.  
  183. local function update(input)
  184.     local delta = input.Position - dragStart
  185.     oogabooga.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  186. end
  187.  
  188. oogabooga.InputBegan:Connect(function(input)
  189.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  190.         dragging = true
  191.         dragStart = input.Position
  192.         startPos = oogabooga.Position
  193.        
  194.         input.Changed:Connect(function()
  195.             if input.UserInputState == Enum.UserInputState.End then
  196.                 dragging = false
  197.             end
  198.         end)
  199.     end
  200. end)
  201.  
  202. oogabooga.InputChanged:Connect(function(input)
  203.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  204.         dragInput = input
  205.     end
  206. end)
  207.  
  208. UserInputService.InputChanged:Connect(function(input)
  209.     if input == dragInput and dragging then
  210.         update(input)
  211.     end
  212. end)
  213.     Joints={}
  214.     script.Parent.Parent.Client.MouseButton1Down:Connect(function()
  215.        
  216.      Root = game.Players.LocalPlayer.Character.HumanoidRootPart
  217.      coroutine.wrap(function()
  218.         Root['Anchored'] = true;
  219.         wait(.8)
  220.         Root['Anchored'] = false;
  221.     end)()
  222.     Torso = game.Players.LocalPlayer.Character.Torso
  223.     Create = function(Obj, Parent)
  224.         local I = Instance.new(Obj);
  225.         I['Parent'] = Parent;
  226.         return I
  227.     end
  228.     Joints = {
  229.         ['Torso'] = Root['RootJoint'];
  230.         ['Left Arm'] = Torso['Left Shoulder'];
  231.         ['Right Arm'] = Torso['Right Shoulder'];
  232.         ['Left Leg'] = Torso['Left Hip'];
  233.         ['Right Leg'] = Torso['Right Hip'];
  234.     }
  235.     JointsCFrame = {}
  236.     for K, V in pairs(Joints) do
  237.         local AP, AO, A0, A1 = Create('AlignPosition', V['Part1']), Create('AlignOrientation', V['Part1']), Create('Attachment', V['Part1']), Create('Attachment', V['Part0'])
  238.         AP['RigidityEnabled'] = true;
  239.         AO['RigidityEnabled'] = true;
  240.         AP['Attachment0'] = A0;
  241.         AP['Attachment1'] = A1;
  242.         AO['Attachment0'] = A0;
  243.         AO['Attachment1'] = A1;
  244.         A0['Name'] = 'Attachment0';
  245.         A1['Name'] = 'Attachment1';
  246.         A0['CFrame'] = V['C1'] * V['C0']:Inverse();
  247.         V:Remove()
  248.         table.insert(JointsCFrame,A0.CFrame)
  249.     end
  250.     game.Players.LocalPlayer.Character.Animate.Disabled = true
  251.     for K, V in next, game.Players.LocalPlayer.Character:GetChildren() do
  252.         if V:IsA('BasePart') then
  253.             coroutine.wrap(function()
  254.                 repeat
  255.                     V['CanCollide'] = false
  256.                     game:GetService("RunService").Stepped:Wait()
  257.                 until game.Players.LocalPlayer.Character.Humanoid['Health'] < 1
  258.             end)()
  259.         end
  260.     end
  261.     Instance.new("StringValue",game.Players.LocalPlayer.Character.Head).Name="ClientRan"
  262.     script.Parent.Parent.Client.Text = "Ran Client.."
  263.     wait(1)
  264.     script.Parent.Parent.Client.Text="Client"
  265.     end)
  266.     script.Parent.Frame.Play.MouseButton1Click:Connect(function()
  267.     playId(script.Parent.Frame.TextBox.Text)
  268.     end)
  269.  
  270.     function LoadLibrary(a)
  271.         return loadstring(game:HttpGet("https://pastebin.com/raw/KstdzZVB", true))()
  272.     end
  273.    
  274. function swait(n)
  275.     if n > 1 then for i = 1, n do
  276.         game:GetService("RunService").Heartbeat:Wait();
  277.     end elseif n == 1 then game:GetService("RunService").Heartbeat:Wait() elseif n == 0 then game.RunService.RenderStepped:Wait() end
  278. end
  279.     PoseToCF = function(Pose, Motor)
  280.         return (Motor['Part0'].CFrame * Motor['C0'] * Pose['CFrame'] * Motor['C1']:Inverse()):ToObjectSpace(Motor['Part0'].CFrame)
  281.     end
  282.     function resetatt(att)
  283.     i = 1
  284.     for n,v in pairs(Joints) do
  285.         game.Players.LocalPlayer.Character[n].Attachment0.CFrame = JointsCFrame[i]
  286.         i=i+1
  287.     end
  288.     end
  289.  
  290.     run = false;
  291.     current_id = 0
  292.     local Edit = function(Part,Value,Duration,Style,Direction)
  293.         Style = Style or 'Enum.EasingStyle.Linear'; Direction = Direction or 'Enum.EasingDirection.In'
  294.         local Attachment = Part:FindFirstChild('Attachment0')
  295.         if Attachment ~= nil then
  296.             game:GetService("TweenService"):Create(Attachment,TweenInfo.new(Duration,Enum['EasingStyle'][tostring(Style):split('.')[3]],Enum['EasingDirection'][tostring(Direction):split('.')[3]],0,false,0),{CFrame = Value}):Play()
  297.         end
  298.     end
  299.  function Yield(Seconds)
  300.         local Time = Seconds * .2
  301.         for I = 0,1 do
  302.             game:GetService('RunService').Stepped:Wait()
  303.         end
  304.     end
Add Comment
Please, Sign In to add comment