Тёмный

How to make object spin 2021 - Roblox Studio Tutorial in 1 Minute 

Terabyte
Подписаться 7 тыс.
Просмотров 82 тыс.
50% 1

In this 1 minute tutorial i will be teaching you how to make object spin in roblox studio!!!!
PLS CONSIDER SUBSCRIBING :)
---------------------------------
Normal Spin Script -
sphere = script.Parent
a = 0
repeat
sphere.Rotation = Vector3.new( 0, a, 0) --The second value of vector3 is a,
wait(.01)
a = a+3
until pigs == 1
Vertical Spin Script -
local part = script.Parent
a = 0
local speed = 10 -- the higher the number the faster it spins
while true do
a = a + speed
part.Orientation = Vector3.new(a,0,0)
wait()
---------------------------------
sick of watching 30 minute tutorials? you found the right place suggest future videos in the comment section! i do roblox studio tutorials and try to make them as short and simple as possible for new people and i hope you enjoy them.
#robloxstudio #tutorial

Игры

Опубликовано:

 

24 ноя 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 256   
@chriscopley3005
@chriscopley3005 5 месяцев назад
"sick of watching 30 minute tutorials?" Damn right! Thank you for making this quick and easy.
@EmberZ16
@EmberZ16 Год назад
amazing video bro. straight to the point and i can copy n paste the script! Thx!
@booztedworld
@booztedworld Год назад
thank you so much bro, its so easy and i thought it would take me hours to make this! :)
@MatthvdG
@MatthvdG 2 месяца назад
that was so simple to add, thanks
@Evertech.
@Evertech. Год назад
the issue with this is and idk how to solve it is that it always reverts back to its original position. How do i fix?
@s_1020v
@s_1020v Год назад
tysm! i was making a rockafire stage and this helped! tysm!!
@CrypticReal
@CrypticReal 7 месяцев назад
Thank You Dude You Just Made my Game a LOT EASIER TO MAKE!
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@foggyhillsstudios777
@foggyhillsstudios777 2 года назад
for the 2nd script, there is a mistake mistake part.orientantion = Vector3 = (a,0,0) you have to move the a to the 2nd like this (0,a,0) this is correct!
@danieldelazzer6417
@danieldelazzer6417 2 года назад
ohhhh I think this is why it wasn't working properly.
@SimplySamir
@SimplySamir 4 месяца назад
still isnt working
@rpdpod2097
@rpdpod2097 Год назад
Really Good. It worked for us! Cheers
@fakecannolli
@fakecannolli 11 месяцев назад
thanks bro, i was making a chronostasis ability and the script i usually use to rotate parts was breaking it. this worked. got a like from me!!
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@toberclock877
@toberclock877 2 месяца назад
@@spotishii ty but how do i change to rotation
@avxtionwxxb
@avxtionwxxb Год назад
Hi, I’m just wondering if you could do a tutorial on how to make wheels spin without like the wheel being the main source. So like for wheels on a planes landing gear. They only spin when the plane is pushed by thrust. Is there a way to create that system. I’ve seen it in many aircraft games and can’t figure out how to do it
@O2U_
@O2U_ Год назад
Basically you need to create the bit where the wheel attaches to the gear itself attached with something like a constraint that's loose so that it can spin but without it being powered so that the wheel can spin freely
@bonniefanlmao
@bonniefanlmao 3 месяца назад
thanks so much man this helped with my game with a space update
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@AbyssalWisp
@AbyssalWisp Год назад
I have an issue doing this with an equilateral triangle with a triangular hole in the middle mainly because i can only make triangles using two wedges and for some reason, the pivot point (no matter where I move it) seems to remain near one specific corner of the triangle. Is there a way I can fix this issue?
@total_blasphemy
@total_blasphemy 11 месяцев назад
turn the two parts into a union, then put in the script
@danielklett5065
@danielklett5065 2 года назад
Thank you for putting the script in the description 😀👍
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@Stuffed_Freddy
@Stuffed_Freddy Год назад
Thank you for the tutorial!
@daswarzenschwein
@daswarzenschwein 2 года назад
You know what I hate? When people say "right click then click insert object" cuz there's an easier way to do it. When you hover over something in the explorer, you'll see a plus sign that does the same thing, it pulls up the menu to insert something like a light or something. It'll sure save you some time. Great vid btw
@HR1A554
@HR1A554 2 года назад
sometimes it just becomes a habit
@MichaelDoesYt
@MichaelDoesYt 2 года назад
its not easier?
@daswarzenschwein
@daswarzenschwein 2 года назад
@@MichaelDoesYt how is it not
@daswarzenschwein
@daswarzenschwein 2 года назад
@@louisewright9814 how
@daswarzenschwein
@daswarzenschwein 2 года назад
@@louisewright9814 you can literally type in what you want to find like a script or fire. So how is it harder
@soup.tart.
@soup.tart. Год назад
Thanks! this will help me make my super mario 64 remake on roblox
@bluemasked_gaming6016
@bluemasked_gaming6016 Год назад
you earnes a sub! This was really easy to do snice you put the script in the description
@DaveField-em8lp
@DaveField-em8lp 9 дней назад
tysm this worked
@mrbagginz5963
@mrbagginz5963 2 года назад
You earned a sub! This was so easy you deserve a lot more subs
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@mrbagginz5963
@mrbagginz5963 3 месяца назад
thx ig
@AnAvrageRobloxDev
@AnAvrageRobloxDev 3 месяца назад
I honestly just watched this video for 10 seconds to find out how to chande the rotation and still i leart a bit more
@Chlrintruc
@Chlrintruc Год назад
How do I make it so that it spins right when I press right and left when i press left.
@BokiX_TDT
@BokiX_TDT 2 года назад
how to make it rotate like left for 5 seconds then right for 5 seconds and then re[eat?
@madbeetvshorts183
@madbeetvshorts183 2 года назад
How do you make it, so it has a click detector? And so it can stop after 5 seconds.
@hydra7878
@hydra7878 Месяц назад
thx this helped me make an obby
@jacobcass951
@jacobcass951 Год назад
is there anyway to make it spin with a mouse click ?
@theninjaallay8224
@theninjaallay8224 10 месяцев назад
thank you soooo much. Ton's of garbage online finally a script that makes works! You earned a like + sub, buddy
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@r2meo
@r2meo Месяц назад
learned in 50 seconds tyyyyy
@ZieKcc
@ZieKcc Год назад
ty now i can make a black hole that can spin
@malexanderb106
@malexanderb106 2 месяца назад
how do i make it spin with a player as well?
@kinleyyarrington4502
@kinleyyarrington4502 3 месяца назад
i cant tell if its just me but i put the script in and it doesnt work
@haydenn_r
@haydenn_r Год назад
the second script wont work for me, how can I fix it?
@DemonicW0rm
@DemonicW0rm 8 месяцев назад
my character doesnt move with the spinning object.. any tips ?
@ffdavfafd
@ffdavfafd 11 месяцев назад
how do I make like a box or multiple parts spin together, like the normal elevator where the elevator spins.
@cyphfrix1620
@cyphfrix1620 8 месяцев назад
just group the objects into a model and put the script in the model
@TheGoatJ0LLY
@TheGoatJ0LLY Год назад
idk why i am so happy this worked just wanna say THANK YOU!!
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@mangovr112
@mangovr112 Год назад
can i make it only spin 180 degrees and 90 degrees?
@evgensty
@evgensty 2 года назад
Cool!
@terabyte3210
@terabyte3210 2 года назад
Thank you!
@silverattalk4473
@silverattalk4473 Год назад
you´re my savior
@KaliberOfXcalibur
@KaliberOfXcalibur 2 месяца назад
bro pigs was never gonna equal to 1 till i found those 1 hour tutorials on how to scale an object
@caniiday
@caniiday 11 месяцев назад
Hey! I'm trying to look up how to animate a character spinning, but I can't find anything on it. Can someone please help?
@smadrid
@smadrid 2 месяца назад
wdym like how do u want to spin it? if u want it to spin its so easy bro you just rotate the torso
@mrbabythatpoopsalotboringguy69
@mrbabythatpoopsalotboringguy69 5 месяцев назад
how do I change the speed?
@tanyayungmann3637
@tanyayungmann3637 19 дней назад
thanks bro
@louisewright9814
@louisewright9814 Год назад
How to make it so it spins the other way (on both)
@NotASilentGD
@NotASilentGD 2 месяца назад
how do i change the speed
@breaddacat7935
@breaddacat7935 Год назад
how to make it turn clock wise?
@davidgy
@davidgy 5 месяцев назад
how do i rotate models though?
@GingFreecss824
@GingFreecss824 Год назад
Can anyone who understands this script completely explain to me in detail the purpose of setting a as a variable for 0 & the purpose of putting until pigs == 1, I understand everything else but since I'm a beginner I'm still confused & been trying to break down this script to full comprehension.
@isuck121
@isuck121 Год назад
Basically the purpose of the variable "a" is to keep a constant change of that value in the coordinates because the code keeps adding 3 to the a variable every time it loops through the code. the purpose of putting until pigs == 1 is basically saying until that variable is = to 1, will keep running. But using this repeat loop is basically just the same as a while loop so I just changed my code to this: sphere = script.Parent a = 0 while wait() do sphere.Rotation = Vector3.new( 0, a, 0) a = a+1 end Also if you want to change the starting orientation, just change the "a" variable to what you want
@GingFreecss824
@GingFreecss824 Год назад
@@isuck121 Thanks, that clears a lot up for me.
@isuck121
@isuck121 Год назад
np
@Trash-Astronaut
@Trash-Astronaut Месяц назад
can you make a tutorial like this but for rigs?
@unicornpupart
@unicornpupart Год назад
how do i make a multiple model spin? do i just copy the script and place it in all the models?
@Christian-wl8kn
@Christian-wl8kn Год назад
no u use collection service cuz thats better local CS = game:GetService("CollectionService") local runService = game:GetService("RunService") local spinners = CS:GetTagged("Spinner") runService.Stepped:Connect(function() for _, spinner in pairs(spinners) do spinner.CFrame = spinner.CFrame * CFrame.fromEulerAnglesXYZ(0,.025,0) end end) but for some reason the part moves from under the player without the player moving and idk why just use tag editor, create a tag called "Spinner" then tag all the parts u want to spin with just this one script (no copy and pasting into every model, just place this in serverscriptservice)
@unicornpupart
@unicornpupart Год назад
@@Christian-wl8kn ok thank you so much!
@zach9760
@zach9760 Год назад
what is the music on this video?
@alaznethehuman
@alaznethehuman Год назад
Nothing worked because this one model I have is being a huge pain in the neck but thanks for the help anyway
@ffa_bowling
@ffa_bowling 2 года назад
Now I know how to spin an object, now how to attach objects into spinning objects. I really really need it please
@danieldelazzer6417
@danieldelazzer6417 2 года назад
yes me too
@qweatak1967
@qweatak1967 2 года назад
You can either weld those objects or make those parts a union
@Baconii_
@Baconii_ 3 месяца назад
After vector3what does it say..
@gabriellepipikakaland3693
@gabriellepipikakaland3693 11 дней назад
the thing is... how do I make it in the opposite way
@RmsOlympic1913
@RmsOlympic1913 4 месяца назад
If i anchor it it doesnt work if i dont anchor it falls apart someone please help me
@dumitrusveica1768
@dumitrusveica1768 2 месяца назад
i guess just weld the parts. if you dont know how to do it then search up a tutorial its quite simple
@redcat79
@redcat79 2 дня назад
yo tysm
@doglovespvp127
@doglovespvp127 Год назад
For anyone who copy and pasted without it not working, you need to put end after the last line.
@egos4994
@egos4994 Год назад
Thanks man
@Deranged_Peanut
@Deranged_Peanut 11 месяцев назад
W man
@edit_moneyboi
@edit_moneyboi 9 месяцев назад
How to put a end
@Fdy_L
@Fdy_L 9 месяцев назад
@@edit_moneyboi just press enter then say end
@user-vi8ir2pd1w
@user-vi8ir2pd1w 5 месяцев назад
Thank you!
@jaykis9143
@jaykis9143 Год назад
how to make a model spin? i used that script and it doesnt work
@emmadidyournails
@emmadidyournails 11 месяцев назад
try this local RunService = game:GetService("RunService") local unionPart = script.Parent local targetRotation = CFrame.Angles(math.pi, 0, 0) -- Rotate 180 degrees around the X-axis local rotationSpeed = 0.5 -- Adjust the rotation speed as needed local function RotateAndFlipForward() local lastUpdateTime = tick() while true do local currentTime = tick() local deltaTime = currentTime - lastUpdateTime local rotationDelta = CFrame.Angles(rotationSpeed * deltaTime, 0, 0) unionPart.CFrame = unionPart.CFrame * rotationDelta lastUpdateTime = currentTime wait() end end RotateAndFlipForward()
@unofficialadverts6046
@unofficialadverts6046 Год назад
amazing
@thesupergirlplays857
@thesupergirlplays857 Год назад
IT DOSENT WORK right it the first one is vertical and the other dosent even work
@msmothertarisa1460
@msmothertarisa1460 2 года назад
Is there a way you could rotate a cylinder? also with something on top? cause it doesn't work for me.
@felixkranken9675
@felixkranken9675 2 года назад
weld
@maralysis7
@maralysis7 2 года назад
sameee
@MrKontiki
@MrKontiki 2 года назад
Tysm
@pringlescringe
@pringlescringe Год назад
worked! thanks
@spotishii
@spotishii 3 месяца назад
better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@imacoral
@imacoral Месяц назад
How to make it spin in all axis
@RektTSB
@RektTSB Год назад
Hay I'm just saying but when I anchor it it does not spin at all btw because I'm am have a problem here just saying.
@CHULASDIGITAL
@CHULASDIGITAL Год назад
Thank you!!!!!!
@user-vi4lc4zg2g
@user-vi4lc4zg2g 9 дней назад
does this still work today?
@HallowFractions
@HallowFractions 2 года назад
really underrated
@terabyte3210
@terabyte3210 2 года назад
Thanks!!!
@redhotsol7440
@redhotsol7440 Год назад
does it work with unions?
@fr4mp
@fr4mp 2 года назад
How do i make it spin faster??
@purpletom_yt3138
@purpletom_yt3138 Год назад
You can just do a += 3 instead of a = a + 3 it saves time
@spotishii
@spotishii 3 месяца назад
yup. better, updated script: x = 0 repeat script.Parent.Rotation = Vector3.new(0, x, 0) x += -0.5 -- change this for spin speed wait(.01) until x == nil reasons this is better: you don't need another variable for one part += is the newest format for adding on to existing value nil lets you go any amount, even negatives. more space / memory efficient.
@legoeggot
@legoeggot 2 года назад
question: how can i make a script that spins for a few seconds and then stops when you click it?
@MaxBaxPamparapa
@MaxBaxPamparapa Год назад
add a click detector to the part, then add a script in the click detector then write this script local click = script.Parent local spinscript = script.Parent.Parent.Script click.MouseClick:Connect(function() spinscript.Disabled = true end) hope this helps!
@jacobcass951
@jacobcass951 Год назад
@@MaxBaxPamparapa and how do i make it spin with a click again ?
@artemiygogolev6395
@artemiygogolev6395 Год назад
thank you
@hamburger7478
@hamburger7478 Год назад
can you do a tutorial on that but with a switch please 🙏
@kleinersboss
@kleinersboss 4 месяца назад
i made a steel ball spin with this
@zacmarvelian
@zacmarvelian Год назад
btw how to make it slower?
@aeonnni
@aeonnni 7 месяцев назад
I grouped some models together, but somehow the vertical spin script doesn't work at all.
@asirenenthusiast
@asirenenthusiast 5 месяцев назад
MModels cant spin,
@nathanchen5375
@nathanchen5375 Год назад
How would you take the player along with the spinner?
@DevKitetsu
@DevKitetsu 11 месяцев назад
add body gyro
@TicoTheDev
@TicoTheDev 4 месяца назад
is it possible to make it spin faster
@trueMSB
@trueMSB 2 года назад
i normally like it when i actually know what the scripts do instead of just nothing
@woahtayy7841
@woahtayy7841 2 года назад
sphere = script.Parent -- variable referencing the scripts parent a = 0 -- variable holding the original second value in the rotation repeat -- repeating the code until a condition is met sphere.Rotation = Vector3.new( 0, a, 0) -- substituting a for the second value which gives it the spin effect wait(.01) -- time until the object moves again a = a+3 -- amount a is being added by each time (increasing or decreasing this will increase or decrease the time it takes to make a complete circle) until a == 1 -- once this condition is met, it will break the loop
@somememe9224
@somememe9224 2 года назад
@@woahtayy7841 why a == 1
@somememe9224
@somememe9224 2 года назад
@@woahtayy7841 also why does the video use the variable pigs
@nooooooooooooob
@nooooooooooooob Год назад
@@somememe9224 I don't know much at scripting but I'm sure the variable pigs doesn't exist and since it doesn't exist it's gonna repeat forever
@smilecoder801
@smilecoder801 5 месяцев назад
@@somememe9224 ik why pigs
@c_xber
@c_xber 2 года назад
man, anything i try to do. it doesn't work. i've been to 5 different types of tutorials. and none of them worked because the script did not work. someone please help
@terabyte3210
@terabyte3210 2 года назад
It should defiantly work check if it’s anchored and copy all my settings on the top
@c_xber
@c_xber 2 года назад
@@terabyte3210 I am trying to make a model spin. The model consists of nine blocks, eight of them having a wedge type special mesh. and they are grouped together. The model is anchored but it still does not work.
@c_xber
@c_xber 2 года назад
@@terabyte3210 btw this is what i did sphere = script.Parent a = 0 repeat sphere.Rotation = Vector3.new( 0, a, 0) --The second value of vector3 is a, wait(.01) a = a+3 until pigs == 1
@sabrinadiyorio
@sabrinadiyorio 7 месяцев назад
Thanks
@7x7889
@7x7889 Год назад
ty
@malexanderb106
@malexanderb106 11 месяцев назад
thanks
@Mr_Vans
@Mr_Vans Месяц назад
The vertical one doesn't work
@Marcos_I._T.
@Marcos_I._T. Месяц назад
how do i make it faster
@JeanLukeAnimations
@JeanLukeAnimations Год назад
how do i make a group of objects (so like a sphere with rings around it) rotate because this tutorial didn't work and nothing else is working!
@gisprofessional4935
@gisprofessional4935 Год назад
You basically gotta select them all, and then click "group" and then insert the code that is in the description. Or, you can just position and anchor them and apply the same script to all of them. The first method is easier, for sure.
@JeanLukeAnimations
@JeanLukeAnimations Год назад
@@gisprofessional4935 it’s already grouped together and it doesn’t work
@sharkie5946
@sharkie5946 Год назад
weld them all together and put it in one of the parts
@Minijuz
@Minijuz 2 года назад
Laziest tutorial but still thanks tho
@red_chicken_not_redchicken1800
cool dude anways how to i make it spin when sit
@ameliaxx4538
@ameliaxx4538 2 года назад
The vertical one doesnt work, could someone help?
@sourfilms9889
@sourfilms9889 2 года назад
Try this, I found this one worked for me: while true do script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.05,0.0,0.0) * CFrame.new(0, 0, 0) wait(0.001) end
@m4ttii_
@m4ttii_ 2 года назад
@@sourfilms9889 how do you make it spin slower?
@cragasm
@cragasm Год назад
Could you make a tutplorial to rotate meshes?
@paratsz383
@paratsz383 Год назад
It's the same thing.
@ferdisirin4967
@ferdisirin4967 Год назад
tysm
@iamsown1801
@iamsown1801 2 года назад
how do you make it spin faster each second
@foxgamer7581
@foxgamer7581 2 года назад
local a = 0.01 while true do script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, a, 0) wait(0.001) a = a+0.01 end
@PkxdAdventuresGo
@PkxdAdventuresGo 2 года назад
+1 sub
@nerveswayHAHA
@nerveswayHAHA 2 года назад
how can you change the rotation speed? (for normal script)
@dasher307
@dasher307 Год назад
Change a += 3 to a *= 3
@dasher307
@dasher307 Год назад
@Abdullah Danish x+=y meant to add y to x variable and x*= means to multiple y variable by x
@iamcrixz
@iamcrixz 2 года назад
the rotation is kinda lag and its not smooth
@majmunV2
@majmunV2 Год назад
why dose it not work for me
@RektTSB
@RektTSB Год назад
The vertical script does not work btw.
@minecraftnews9162
@minecraftnews9162 Год назад
question, how do you change the speed for the spinning part?
@purpletom_yt3138
@purpletom_yt3138 Год назад
On line 6, you can just change the number you are adding by. The higher, the faster! I hope that helped
@ObeseMommy
@ObeseMommy 26 дней назад
@@purpletom_yt3138 hey do you know how i can make it spin clock wise? :(
@HypersonicMissile77
@HypersonicMissile77 3 месяца назад
Very nice tutorial I learned about nothing
Далее
How To Make A Spinning Model | Roblox Studio Guide
3:04
Выпускаем трек? #iribaby
00:14
Просмотров 378 тыс.
3 Hours vs. 3 Years of Blender
17:44
Просмотров 4,3 млн
A Fan Asked Why His Game is Failing...
30:53
Просмотров 116 тыс.
the strongest battlegrounds bingo is WAY too easy
10:09
I Made a Roblox Game in 1 Week!
11:45
Просмотров 563 тыс.
I spent 500 DAYS Building My Roblox Game!
14:21
Просмотров 1 млн