@TBNRfrags_pro123 (Frags) posted a new topic, subject "How can I make this part spin slower?". It read:

   So the part I want to make spin slower is this:  
    
    
    image588×565 27.8 KB
    
      
    (It's 55³)
    
    Now, This is the script I currently have for it:
    [code] 
            local RunService = game:GetService'RunService'
            local rad = math.rad
            local clock = os.clock
            local noise = math.nois
            local random = math.random
            local Heartbeat = RunService.Heartbeat
        
            local bullsquid = workspace:WaitForChild("Cube")
        
            local xseed = random(10000, 100000)
            local yseed = random(10000, 100000)
            local zseed = random(10000, 100000)
            while true do
            local x = noise(xseed, clock() % 1000 * 0.5) * 360
            local y = noise(yseed, clock() % 1000 * 0.5) * 360
            local z = noise(zseed, clock() % 1000 * 0.5) * 360
        
            bullsquid.CFrame = CFrame.new(bullsquid.Position) * CFrame.Angles(rad(x), rad(y), rad(z))
            Heartbeat:Wait()
        
            end
        
    [/code]
    
    And this is what happens:  
    robloxapp-20210619-2025240.wmv (888.2 KB)
    
    I want to make it spin like this but even slower:  
    
    
    //devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/4X/d/d/0/dd0feeed9fdb537db8a4335c50e80e3a2214963a.mp4
    
    Any ways to make the script better and slow the spinning down?
      *[tables]: with mixed keys, including userdata!

To which @Zompocolypse (LolRektSoFast) replied

    Have you tried using the tween service?  
    TweenService (roblox.com)
      *[tables]: with mixed keys, including userdata!

So @TBNRfrags_pro123 (Frags) replied

    Nope, I'm very very bad at scripting, and even this script is not mine. I tried to look for the same thing but with tween service and didn't find anything.
      *[tables]: with mixed keys, including userdata!

To which @FuturisticGP (FuturisticGP) replied

    Try changing the variables x,y and z  
    Change 1000 for some lower number.
      *[tables]: with mixed keys, including userdata!

After which, @TBNRfrags_pro123 (Frags) added

    Doesn't work. Thanks for the reply though.
      *[tables]: with mixed keys, including userdata!

So @D0RYU (nici) replied

    what did that do when making them lower?
      *[tables]: with mixed keys, including userdata!

Then @TBNRfrags_pro123 (Frags) said

    I didn't notice any changes actually.
      *[tables]: with mixed keys, including userdata!

After which, @D0RYU (nici) added

    oh yea sorry it's using modulo forgot about that
    
    what about changing the 0.5?
      *[tables]: with mixed keys, including userdata!

To which @TBNRfrags_pro123 (Frags) replied

    Works!!! Thank you so much!!!
      *[tables]: with mixed keys, including userdata!

Then @D0RYU (nici) said

    np 
    
    reason the 1000 didn't do anything is because “%” gets the remainder when dividing
    
    meanwhile you were multiplying that remainder by 0.5 which is what controls the speed
      *[tables]: with mixed keys, including userdata!

To which @TBNRfrags_pro123 (Frags) replied

    Thanks for the explanations! Have a nice day!
      *[tables]: with mixed keys, including userdata!


{'source': 'discourse', 'url': 'https://devforum.roblox.com/t/how-can-i-make-this-part-spin-slower/1299797', 'title': 'How can I make this part spin slower?', 'views': 283, 'has_accepted_answer': True, 'word_count': 314, 'like_count': 4, 'reply_count': 8, 'participant_count': 4, 'posts': 11, 'tags': 'scripting studio', 'author': '@TBNRfrags_pro123 (Frags)', 'participants': '@TBNRfrags_pro123 (Frags), @Zompocolypse (LolRektSoFast), @FuturisticGP (FuturisticGP), @D0RYU (nici)', 'image_url': ['//devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/4X/5/4/7/547015b60f67711a135ae930226c5755022463a6.jpeg'], 'created_at': '2021-06-19T17:28:38.718Z', 'last_posted_at': '2021-06-19T18:46:43.335Z'}