How to Make a Rotating/Spinning Model in Roblox Studio

Поділитися
Вставка
  • Опубліковано 30 тра 2022
  • Thank you for watching!
    If you enjoyed, please subscribe and like, as it is how you show your appreciation on this whole UA-cam website, yeah you probably haven't heard of it... anyways, have a good day.

КОМЕНТАРІ • 102

  • @millzzz_
    @millzzz_  Рік тому +16

    Script if you need any help:
    while true do
    script.Parent:SetPrimaryPartCFrame(script.Parent.Center.CFrame * CFrame.fromEulerAnglesXYZ(.1, 0, 0))
    wait()
    end

    • @ganotgame4310
      @ganotgame4310 Рік тому

      pin this bro

    • @test62290
      @test62290 7 місяців тому +2

      you can use CFrame.Angles instead of CFrame.fromEularAnglesXYZ

  • @CartmanRoblox
    @CartmanRoblox Рік тому +7

    dude you have no idea how helpful this was, thanks so much!

  • @ShotsByNut_
    @ShotsByNut_ 3 місяці тому

    Dude, you dont know how much this helped. I was building a drag car and wanted to get fancy and wanted my turbos turbine to spin, and it worked. Thank you so much!

  • @Lolbitzz
    @Lolbitzz Рік тому +2

    dude i was searching this up for like 7 months and you just did it the simplest way possible you DESERVE more subscribers then this (i will subscribe in a second :D)

  • @Ehovercraft
    @Ehovercraft 10 місяців тому +1

    Actually exactly what I needed. Great Tutorial!

  • @LadWithTheHat
    @LadWithTheHat Рік тому +5

    always the genius kid coming in clutch thanks so much man

  • @SamuelASMR
    @SamuelASMR 5 місяців тому

    Great tutorial. Watched maybe 10 from other creators and none of them worked. Thank you! 🎉

  • @Stuffed_Freddy
    @Stuffed_Freddy Рік тому +2

    Now I have a working fan in my game, thank you so much!

  • @HorrorChef929
    @HorrorChef929 8 місяців тому

    Thank you so much! I am making a obby game and needed this. Thanks again! 😁

  • @forgottenreaper7541
    @forgottenreaper7541 Рік тому

    Bro helped me a lot. Here's a subscribe for u.
    =)) Hope you succeed in the youtube career.

  • @fel_us
    @fel_us 9 місяців тому

    thank you so much 🎉🎉🎉
    this is so useful
    with this guide I made a rotating skybox

  • @simplynewball9511
    @simplynewball9511 3 місяці тому

    omg your a lifesaver, i needed this script for a bossfight where a laser machine would spin around

  • @Atomik_Records
    @Atomik_Records 2 місяці тому +1

    Thanks, great video

  • @Nathan66077
    @Nathan66077 2 місяці тому

    it worked! now i can make my fan!

  • @BumblebeeRoblox
    @BumblebeeRoblox 8 місяців тому

    THANK YOU. I am making a car game, and I was exploding my brain trying to figure out how to make it spin inside of the viewportframe. This video really helped.

    • @millzzz_
      @millzzz_  8 місяців тому

      No problem! Glad it helped!

  • @joecraft9098
    @joecraft9098 Рік тому +3

    Easy way to center something: get the position of the part(or parts) that you want to center the other part on, and then paste the location onto the part you want to center.

    • @joecraft9098
      @joecraft9098 Рік тому +1

      I may make a tutorial video on it at some point

  • @therealnugget435
    @therealnugget435 2 роки тому

    Straight up actually helped

  • @yurpogortam8091
    @yurpogortam8091 Рік тому +1

    This Helped Me Make Hex - A - Ring

  • @therealnugget435
    @therealnugget435 2 роки тому

    I've been looking for this for months

  • @KaushalNRL
    @KaushalNRL 2 місяці тому +1

    Could you make a video on how to make something swing like a pendulum?

  • @szymek_dude
    @szymek_dude Рік тому +1

    thank you so much

  • @Cenn_Devel
    @Cenn_Devel 4 місяці тому

    Thanks! I wanted to make an air raid siren that would rotate but I didn't know how. 😃👍

    • @millzzz_
      @millzzz_  4 місяці тому

      Glad I could help!

  • @ead91
    @ead91 Рік тому

    Yo what are your font settings they look rlly nice

  • @JohnPlaysGamezYT
    @JohnPlaysGamezYT Рік тому

    so i have a question, do you know how to make the hinge go faster over-time?

  • @lucasthechad
    @lucasthechad 7 місяців тому

    Thank you so much.

  • @dojurin
    @dojurin 16 днів тому

    Thanks

  • @Karmaplays824
    @Karmaplays824 Рік тому

    My primary part wont allows anything in it help and Idk if it's anchored or not it won't tell me this is my first day using it as well

  • @rezeauzero7390
    @rezeauzero7390 9 місяців тому

    My model refuses to spin no matter what I do. I have no error in the script, anchored both the parts, they are both in a model, Center is set as primary. I don't understand.

  • @CubeOF
    @CubeOF 11 місяців тому

    Tysm!

  • @thisisnotfunny69
    @thisisnotfunny69 11 місяців тому

    good tutorial now i can make a wind turbine

  • @theminions2369
    @theminions2369 Рік тому

    this is great for the lighthouse i am building thanks!

  • @MposTitanic
    @MposTitanic Місяць тому

    I have one question. How to make it like stop while some angle is made. Like when it turns 360 it stops. Imo it is smth with while not true but wat to put there as if I am correct.Anyways great tut.

    • @ISG_Official
      @ISG_Official 5 днів тому

      tween it, add conditions to the loop, or use a repeat until with a condition

  • @CDTCDT1
    @CDTCDT1 7 місяців тому

    Anyother way is using align positions and angles

  • @JayXenox
    @JayXenox Рік тому

    how would i make it do like a vertical spin, bc im making a windmill and all the other people are doings it by the x axis

    • @millzzz_
      @millzzz_  Рік тому

      vertical spin where is spins on the y axis? you change the code. in the script, theres the three numbers in parenthesis. mess around with where the number is until your satisfied. ex: (1, 0, 0) change it to (0, 1, 0) etc until you are happy with the results.

  • @refundableuser
    @refundableuser Місяць тому

    If you want it to move smoother, use task.wait. it will make your rotations more smooth.
    while task.wait() do
    script.Parent:SetPrimaryPartCFrame(script.Parent.Primary.CFrame * CFrame.fromEulerAnglesXYZ(0, .01, 0))
    end

  • @sensei1781
    @sensei1781 Рік тому

    Got it to work, but doesn't seem to physically effect the player if they were to stand on the part for example. Anyway to make a player effected by the rotation? Or have them fall off if they were on a rotating log for example?

    • @millzzz_
      @millzzz_  Рік тому

      Might have to watch a video on the first one 🤷‍♂️, I do know you can get two parts on the sides of the parts, and then connected them with loose joints to make a wipeout twisty-type thing. Getting a rotating log that moves around when you walk on it would be a bit harder, at the moment I can’t think of how, but if you need help I can try to make it on Roblox studio. Thanks!

    • @sensei1781
      @sensei1781 Рік тому

      @@millzzz_ Its not that I need the log to rotate with the players weight, but in theory the physics engine should handle that automatically if I set up a proper point to pivot on right?

    • @millzzz_
      @millzzz_  Рік тому

      @@sensei1781 if it’s unanchored, yes. It can move freely wherever you want when in’s unanchored, so this can cause some problems, but the physics engine can comprehend spinning on a pivot point.

  • @perrolocoyt
    @perrolocoyt Рік тому

    It didn't work :(
    Edit: Lol, it didn't work because the video was playing at 360p and i didn't see well and i put wrong symbol

  • @tps.england_zhack1404
    @tps.england_zhack1404 4 місяці тому

    primary part isnt under pivot,??

  • @TheOneAndOnlyRec
    @TheOneAndOnlyRec 7 місяців тому +1

    Do you by chance know how to make a part spinning around another part?

    • @millzzz_
      @millzzz_  7 місяців тому

      Group the two parts in the same model and set the center part as the primary part. if you think about it, that’s exactly what you normally do, except you hide the center part inside the main part.

  • @Doorknob359
    @Doorknob359 Рік тому

    i tried this again on a different model and it didnt work, I did everything on the video
    I tried to edit XYZ but it still didnt work
    EDIT: i renamed it incorrectly

  • @goochtoob6800
    @goochtoob6800 10 місяців тому

    Im trying to make a fan but it wont spin

  • @TheRealKensterBoosteryt
    @TheRealKensterBoosteryt 9 місяців тому

    **heavy breathing**

  • @iheartsnapple
    @iheartsnapple 9 місяців тому

    How would I make a player move with the object? Currently the player doesn't continue standing on it but I want it to move with it

    • @millzzz_
      @millzzz_  9 місяців тому

      tbh donno. i used to script a lot but i haven’t scripted much anymore and have lost lots of memory. there is probably a youtube tutorial out there somewhere. try a different rotation script from a different video

    • @iheartsnapple
      @iheartsnapple 9 місяців тому

      @@millzzz_ dw man ill try n figure it out myself lmfao maybe ill try tweening or smth

  • @gleba2284
    @gleba2284 5 місяців тому

    i have a question. how did you make the scripting window look like a terminal?

    • @millzzz_
      @millzzz_  5 місяців тому +1

      There is a free plugin that you can add that lets you customize your roblox studio layout and colors. I chose the terminal one but there’s many color pallets to choose from. I can’t remember what the plugin is called at the time but it shouldn’t be hard to find.

    • @gleba2284
      @gleba2284 5 місяців тому

      @millzzz_ Oh okay thanks

  • @CDTCDT1
    @CDTCDT1 7 місяців тому

    Eular angles is a bad example, you should do .angles

  • @subforcookie_
    @subforcookie_ Рік тому

    Do u know how I can make a swinging bell that goes back and forth endlessly?

    • @millzzz_
      @millzzz_  Рік тому

      Make the bell, and put on the script and make it spin on the y axis, wait a second or two seconds, then make it spin on the y axis negatively (all of this in the while true do loop) edit the numbers and the wait time until it looks good

  • @constantincosmin368
    @constantincosmin368 Місяць тому

    in my roblox game is like lagging when i enter

  • @HorrorChef929
    @HorrorChef929 8 місяців тому

    I was wondering if there was a way to make it go in the opposite direction at random times, do you know how to do that?

    • @millzzz_
      @millzzz_  8 місяців тому

      in the “wait()” do “wait(math.random(lowest possible wait time, highest possible
      wait time)” and then copy the script on the other side but invert the number.
      Ex. while true do
      (the script)
      wait(math.random(1,10))
      (the script)
      wait(math.random(1,10))
      end
      so it will wait a random number between one and 10 seconds and then invert
      lmk if this works!

    • @HorrorChef929
      @HorrorChef929 8 місяців тому

      @@millzzz_ Thanks, do I use this script as the spin script or a separate script?

    • @millzzz_
      @millzzz_  8 місяців тому

      @@HorrorChef929 in the same script as the spin one.

  • @Kidaneh
    @Kidaneh Рік тому

    will this work for helicopter

  • @s0rww
    @s0rww Рік тому +1

    Is there any way to make it spin more smoothly?

    • @millzzz_
      @millzzz_  Рік тому

      To make it smoother you would make the wait faster, and 0.01 is the lowest it can be without being zero. Maybe if you try “wait()” it might run smooth but cause a bit more lag. I don’t even know if it works.

    • @millzzz_
      @millzzz_  Рік тому

      @MarkoUkraine

  • @samminatorr
    @samminatorr Рік тому

    Would this be able to work on multiple unions?

    • @millzzz_
      @millzzz_  Рік тому

      If you put them in one group, yes 👍

    • @samminatorr
      @samminatorr Рік тому

      @@millzzz_ You wouldn't mind putting that into more detail? Do you mean put the unions in their own group or keep all the unions in the same group with the script and center part?

  • @user-gw8zh6mb4k
    @user-gw8zh6mb4k 4 місяці тому

    How do you adjust the speed?

    • @BeninjaBlue
      @BeninjaBlue 3 місяці тому

      edit the Euler angles value :)

  • @betmenlike
    @betmenlike 11 місяців тому

    How i can change the speed of spinning?

    • @millzzz_
      @millzzz_  11 місяців тому

      Change the number in the parenthesis

  • @jackthehacker05
    @jackthehacker05 Місяць тому

    isnt this deprecated

  • @JonasPoker
    @JonasPoker 10 місяців тому

    while true do
    script.parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.1,0,0) -- change it to ur liking
    wait(0.01)
    end this is a much simpler script but am new to scripting so dont be mad if it turns out wrong

  • @glossy4027
    @glossy4027 Рік тому

    I don’t have the primary part option?

    • @millzzz_
      @millzzz_  Рік тому +1

      I had this same problem. Make sure it’s a group model. If that works keep looking idk

  • @sculpturedroyal
    @sculpturedroyal Рік тому

    how do i do this with more than 1 part

    • @millzzz_
      @millzzz_  Рік тому

      group the parts together by selecting the ones you want to spin, and then pressing control-g or by pressing "group" on the top of the screen. then, select a primary part, as it explains in the video. then do the script as normal, inside of the group, and your set/

  • @Noasuuu
    @Noasuuu Рік тому

    how do you make it slower?

    • @millzzz_
      @millzzz_  Рік тому

      adjust the numbers in the parenthesis. i set it to .1, but you can set it higher to 1 to make it really fast, or lower like .01 to. make it real slow. so. adjust it and make the number smaller or bigger depending on the speed you want.

  • @thepoet9253
    @thepoet9253 Рік тому +1

    What's the background music? I love it.

    • @millzzz_
      @millzzz_  Рік тому +1

      Glad you asked! The background music is actually made by me! They are pretty old, but if you look on my videos you might be able to find them. “Lofi Rainy Day” and “Grain” are the two songs used. You can use them in your videos if you provide credit. Hope this helps!

    • @millzzz_
      @millzzz_  Рік тому +1

      @The POET

  • @Terratomere
    @Terratomere Рік тому

    it wont work!!

    • @millzzz_
      @millzzz_  Рік тому

      Weird! Have you double checked the script is fully correct? Is it a model? Is there a primary part in the model selected? Try restarting the video with a new model to see if it works

    • @Terratomere
      @Terratomere Рік тому

      @@millzzz_ script is the exact same, its a model, model has primary part

    • @perrolocoyt
      @perrolocoyt Рік тому

      @@millzzz_ PrimaryPart doesnt show

  • @Anastasiatoons
    @Anastasiatoons Рік тому

    Can you help me recreate this System ua-cam.com/video/crzL8yLfFmU/v-deo.html ?so there are those green cylinder platforms. They behave like would locks in water. Basically when the player moves left or right, the cylinder platform rotates under them into the opposite direction .

    • @millzzz_
      @millzzz_  Рік тому

      Totally! Can you put a time stamp where there’s the green cylinder platforms so I can understand what you mean? Shouldn’t be too tricky, i can definitely help

    • @Anastasiatoons
      @Anastasiatoons Рік тому

      @@millzzz_ 2:11:35

  • @5yl.
    @5yl. 8 місяців тому

    i'm watching this to make a spinning peter griffin cube.
    i'm making an obby time trial game

  • @Terratomere
    @Terratomere Рік тому

    copy and paste for yall enjoy
    while true do
    script.Parent:SetPrimaryPartCFrame(script.Parent.Reactor core.CFrame * CFrame.EulerAnglesXYZ(0, 0, 0))
    wait()
    end
    replace the 0's with whatever number u want lmao the bigger the number the faster it is the first number is X the second number is Y the third number is Z