Advertisement
justneed

Jerk 0ff FE roblox gui

Dec 7th, 2024
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.80 KB | Gaming | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2.  
  3. local screen  = Instance.new("ScreenGui")
  4. screen.Parent = plr.PlayerGui
  5. screen.Name   = "Jerk"
  6.  
  7. local frame    = Instance.new("Frame")
  8. frame.Parent   = screen
  9. frame.Size     = UDim2.new(0,250,0,250)
  10. frame.Position = UDim2.new(0,15,0,680)
  11.  
  12. frame.Active     = true
  13. frame.Selectable = true
  14. frame.Draggable  = true
  15.  
  16. local btn    = Instance.new("TextButton")
  17. btn.Parent   = frame
  18. btn.Size     = UDim2.new(0,25,0,25)
  19. btn.Position = UDim2.new(0,225,0,0)
  20. btn.Text     = "X"
  21. btn.TextSize = 12
  22.  
  23. local text             = Instance.new("TextBox")
  24. text.Parent            = frame
  25. text.Size              = UDim2.new(0,80,0,35)
  26. text.Position          = UDim2.new(0,90,0,100)
  27. text.Text              = ""
  28. text.PlaceholderText   = "Speed"
  29. text.PlaceholderColor3 = Color3.fromRGB(70,70,70)
  30. text.TextSize          = 12
  31.  
  32. local btn2    = Instance.new("TextButton")
  33. btn2.Parent   = frame
  34. btn2.Size     = text.Size
  35. btn2.Position = UDim2.new(0,30,0,140)
  36. btn2.Text     = "Start"
  37. btn2.TextSize = 12
  38.  
  39. local btn3    = Instance.new("TextButton")
  40. btn3.Parent   = frame
  41. btn3.Size     = text.Size
  42. btn3.Position = UDim2.new(0,150,0,140)
  43. btn3.Text     = "Stop"
  44. btn3.TextSize = 12
  45.  
  46. btn.MouseButton1Click:Connect(function()
  47.     screen:Destroy()
  48. end)
  49.  
  50. btn2.MouseButton1Click:Connect(function()
  51.     local anim       = Instance.new("Animation")
  52.     anim.AnimationId = "rbxassetid://168268306"
  53.     local animtrack  = game.Players.LocalPlayer.Character.Humanoid.Animator:LoadAnimation(anim)
  54.     animtrack.Looped = true
  55.     animtrack:Play()
  56.     animtrack:AdjustSpeed(100)
  57.    
  58.     btn3.MouseButton1Click:Connect(function()
  59.         animtrack:Stop()
  60.     end)
  61.     text.FocusLost:Connect(function()
  62.         animtrack:AdjustSpeed(text.Text)
  63.     end)
  64. end)
  65.  
  66. plr.CharacterAdded:Connect(function()
  67.     local plr = game.Players.LocalPlayer
  68.  
  69.     local screen  = Instance.new("ScreenGui")
  70.     screen.Parent = plr.PlayerGui
  71.     screen.Name   = "Jerk"
  72.  
  73.     local frame    = Instance.new("Frame")
  74.     frame.Parent   = screen
  75.     frame.Size     = UDim2.new(0,250,0,250)
  76.     frame.Position = UDim2.new(0,15,0,680)
  77.  
  78.     frame.Active     = true
  79.     frame.Selectable = true
  80.     frame.Draggable  = true
  81.  
  82.     local btn    = Instance.new("TextButton")
  83.     btn.Parent   = frame
  84.     btn.Size     = UDim2.new(0,25,0,25)
  85.     btn.Position = UDim2.new(0,225,0,0)
  86.     btn.Text     = "X"
  87.     btn.TextSize = 12
  88.  
  89.     local text             = Instance.new("TextBox")
  90.     text.Parent            = frame
  91.     text.Size              = UDim2.new(0,80,0,35)
  92.     text.Position          = UDim2.new(0,90,0,100)
  93.     text.Text              = ""
  94.     text.PlaceholderText   = "Speed"
  95.     text.PlaceholderColor3 = Color3.fromRGB(70,70,70)
  96.     text.TextSize          = 12
  97.  
  98.     local btn2    = Instance.new("TextButton")
  99.     btn2.Parent   = frame
  100.     btn2.Size     = text.Size
  101.     btn2.Position = UDim2.new(0,30,0,140)
  102.     btn2.Text     = "Start"
  103.     btn2.TextSize = 12
  104.  
  105.     local btn3    = Instance.new("TextButton")
  106.     btn3.Parent   = frame
  107.     btn3.Size     = text.Size
  108.     btn3.Position = UDim2.new(0,150,0,140)
  109.     btn3.Text     = "Stop"
  110.     btn3.TextSize = 12
  111.  
  112.     btn.MouseButton1Click:Connect(function()
  113.         screen:Destroy()
  114.     end)
  115.  
  116.     btn2.MouseButton1Click:Connect(function()
  117.         local anim       = Instance.new("Animation")
  118.         anim.AnimationId = "rbxassetid://168268306"
  119.         local animtrack  = game.Players.LocalPlayer.Character.Humanoid.Animator:LoadAnimation(anim)
  120.         animtrack.Looped = true
  121.         animtrack:Play()
  122.         animtrack:AdjustSpeed(100)
  123.    
  124.         btn3.MouseButton1Click:Connect(function()
  125.             animtrack:Stop()
  126.         end)
  127.         text.FocusLost:Connect(function()
  128.             animtrack:AdjustSpeed(text.Text)
  129.         end)
  130.     end)
  131. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement