Advertisement
Cizzy

Vibe Nyc

Feb 25th, 2021
5,997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. local l__Players__1 = game:GetService("Players")
  2. local l__Anim__6 = game.Players.LocalPlayer.PlayerGui.Main.Anim
  3. game.Players.LocalPlayer.PlayerGui.Main.Anim.Visible = true
  4. game.Players.LocalPlayer.PlayerGui.Main.Anim.Position = UDim2.new(0.2,0,0.5,0)
  5.  
  6. local gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  7. local toggle = Instance.new("TextButton",gui)
  8. toggle.Text = "Toggle Emote GUI"
  9. toggle.TextScaled = true
  10. toggle.AnchorPoint = Vector2.new(0.5,0)
  11. toggle.Size = UDim2.new(0,100,0,35,0)
  12. toggle.Position = UDim2.new(0.5,0,0,0)
  13.  
  14. toggle.MouseButton1Click:Connect(function()
  15. if l__Players__1.LocalPlayer.PlayerGui.Main.Anim.Visible == true then
  16. l__Players__1.LocalPlayer.PlayerGui.Main.Anim.Visible = false
  17. else
  18. l__Players__1.LocalPlayer.PlayerGui.Main.Anim.Visible = true
  19. end
  20. end)
  21.  
  22. for v28, v29 in pairs(l__Anim__6:GetDescendants()) do
  23. if v29:IsA("ImageButton") and v29.Name == "Template" then
  24. local u16 = v11;
  25. v29.MouseButton1Click:Connect(function()
  26. --if l__MarketplaceService__2:UserOwnsGamePassAsync(l__Players__1.LocalPlayer.UserId, 10944572) and l__Players__1.LocalPlayer.Character and l__Players__1.LocalPlayer.Character:FindFirstChild("Humanoid") then
  27. if not script:FindFirstChild("Animation") then
  28. if u16 then
  29. local v30 = l__Players__1.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks();
  30. if #v30 > 0 then
  31. for v31, v32 in pairs(v30) do
  32. if v32.Animation.AnimationId == "rbxassetid://" .. u16 then
  33. v32:Stop();
  34. end;
  35. end;
  36. end;
  37. end;
  38. u16 = nil;
  39. u15 = nil;
  40. local v33 = Instance.new("Animation", script);
  41. v33.AnimationId = "rbxassetid://" .. tostring(v29.ID.Value);
  42. local v34 = l__Players__1.LocalPlayer.Character.Humanoid:LoadAnimation(v33);
  43. v34:Play();
  44. v34:AdjustSpeed(u11);
  45. u16 = v29.ID.Value;
  46. u15 = v34;
  47. return;
  48. end;
  49. if script.Animation.AnimationId ~= "rbxassetid://" .. tostring(v29.ID.Value) then
  50. if u16 then
  51. local v35 = l__Players__1.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks();
  52. if #v35 > 0 then
  53. for v36, v37 in pairs(v35) do
  54. if v37.Animation.AnimationId == "rbxassetid://" .. u16 then
  55. v37:Stop();
  56. end;
  57. end;
  58. end;
  59. end;
  60. u16 = nil;
  61. u15 = nil;
  62. local l__Animation__38 = script.Animation;
  63. l__Animation__38.AnimationId = "rbxassetid://" .. tostring(v29.ID.Value);
  64. local v39 = l__Players__1.LocalPlayer.Character.Humanoid:LoadAnimation(l__Animation__38);
  65. v39:Play();
  66. v39:AdjustSpeed(u11);
  67. u16 = v29.ID.Value;
  68. u15 = v39;
  69. return;
  70. elseif u16 then
  71. local v40 = l__Players__1.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks();
  72. if #v40 > 0 then
  73. for v41, v42 in pairs(v40) do
  74. if v42.Animation.AnimationId == "rbxassetid://" .. u16 then
  75. v42:Stop();
  76. end;
  77. end;
  78. end;
  79. u16 = nil;
  80. u15 = nil;
  81. script.Animation:Destroy();
  82. end;
  83. end);
  84. end;
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement