Advertisement
HURRYUPKAREN

Roblox FE Spin Script

Jul 26th, 2023
3,647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. local spinning = false
  2. local spinSpeed = 1
  3.  
  4. local function activateSpin()
  5. spinning = true
  6. end
  7.  
  8. local function stopSpin()
  9. spinning = false
  10. end
  11.  
  12. local function speedUpSpin()
  13. spinSpeed = spinSpeed + 1
  14. end
  15.  
  16. local function onRenderStepped()
  17. if spinning then
  18. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(spinSpeed), 0)
  19. end
  20. end
  21.  
  22. local gui = Instance.new("ScreenGui")
  23. gui.Name = "RobloxSpinFE"
  24. gui.Parent = game.Players.LocalPlayer.PlayerGui
  25.  
  26. local frame = Instance.new("Frame")
  27. frame.Size = UDim2.new(0, 150, 0, 100)
  28. frame.Position = UDim2.new(0.5, -75, 0.5, -50)
  29. frame.BackgroundColor3 = Color3.new(1, 1, 0)
  30. frame.BorderSizePixel = 2
  31. frame.BorderColor3 = Color3.new(0, 0, 0)
  32. frame.Active = true
  33. frame.Draggable = true
  34. frame.Parent = gui
  35.  
  36. local title = Instance.new("TextLabel")
  37. title.Text = "Roblox Spin FE Script"
  38. title.Size = UDim2.new(1, 0, 0, 30)
  39. title.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  40. title.Parent = frame
  41.  
  42. local activateButton = Instance.new("TextButton")
  43. activateButton.Text = "Activate Spin"
  44. activateButton.Size = UDim2.new(0.4, 0, 0, 30)
  45. activateButton.Position = UDim2.new(0.05, 0, 0.4, 0)
  46. activateButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  47. activateButton.Parent = frame
  48.  
  49. local stopButton = Instance.new("TextButton")
  50. stopButton.Text = "Stop Spin"
  51. stopButton.Size = UDim2.new(0.4, 0, 0, 30)
  52. stopButton.Position = UDim2.new(0.55, 0, 0.4, 0)
  53. stopButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  54. stopButton.Parent = frame
  55.  
  56. local speedUpButton = Instance.new("TextButton")
  57. speedUpButton.Text = "Speed Up Spin"
  58. speedUpButton.Size = UDim2.new(0.8, 0, 0, 30)
  59. speedUpButton.Position = UDim2.new(0.1, 0, 0.7, 0)
  60. speedUpButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  61. speedUpButton.Parent = frame
  62.  
  63. activateButton.MouseButton1Click:Connect(activateSpin)
  64. stopButton.MouseButton1Click:Connect(stopSpin)
  65. speedUpButton.MouseButton1Click:Connect(speedUpSpin)
  66.  
  67. game:GetService("RunService").RenderStepped:Connect(onRenderStepped)
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement