How do I do this? Model Change Loop

I’m trying to make it where my model changes to a different model at a certain time and then it goes back to its original model, and then it changes to another different model, and then goes back. this is what I mean:
roblox spongebot steelpants - YouTube
The model changing is supposed to be attacks and that’s basically what goes on in the video. These are my models that I’m using.



So does anyone know how to do this? I’ve already tried looking for solutions but still no luck.
Also please note that this is my first topic! I’m not sure how to be more specific about this.
Edit: Here’s a screenshot of what I mean.

Also here’s the script I tried using

--This script has not been tested.I, Christopherandrews are not responsible for a non working script.
--Questions?Don't hesitate to ask
--ModelNo:001
--Hard to make?No
--INSTRUCTIONS:
--Put the model you WANT to appear in the lighting and replace MODELNAMEHERE with the name of the model in lighting
--Put the model name that is already in the workspace in MODELNAME2
--Test the script
--V1
-------------
while true do
wait(5)--Number of seconds for the first delay
game.Workspace.SBBot = Model --For lazyness 
Model.parent = Workspace
wait(0) --Edit this for the change delay.
game.ServerStorage.KahRahTae = Model2 --Lazyness again
Model2.parent = Lighting
end --Ends the script
------------
--Look out for v2
--It will have been tested.
--Please keep the credits as I made this item ENTIRELY myself
--Thanks!
--There are no viruses in this script nor copyright hints.
--Christopherandrews
1 Like

I think this might be helpful: How to use CFrame.lookAt() in Roblox Studio - YouTube

1 Like

Sadly, this did not work, sorry!

1 Like

Just make all of the model’s primary parts the same CFrame and then when you only want one of them to show up make all of the other’s parent ServerStorage.
P.S. You will want to put this in a while loop

Isn’t it alot smoother to make an animation?

1 Like

It would be, and my solution is slightly “hacky” but I think using the TweenService would actually be a lot better

TweenSevice would NOT be smoother, as the animatipn editor already allows for curves, in all axis. while a tween goes from point A to point B, The animation editor can also most of the things the tween can do anyways, but less restricted to a line.

1 Like

What’s the problem? Can you describe it?

Well, yes, but if I rig the model, I will have to add more parts to it. And the model has a KillBot and I don’t know how I’m going to make the mouth sync with the KillBot.

I’m trying to make the model change to a different model, like it’s going to change to an attack. And then it changes back to the original model, something like this.

I already understand what you want. However, I can’t tell you very well the best way to do it. I’ll talk to a friend of mine, maybe he can help you.

Should the script look like this? I found a 2009 script model change that seems like it works, I tried editing it but it doesn’t seem to do anything. I also put this script in ServerScriptService.

--This script has not been tested.I, Christopherandrews are not responsible for a non working script.
--Questions?Don't hesitate to ask
--ModelNo:001
--Hard to make?No
--INSTRUCTIONS:
--Put the model you WANT to appear in the lighting and replace MODELNAMEHERE with the name of the model in lighting
--Put the model name that is already in the workspace in MODELNAME2
--Test the script
--V1
-------------
while true do
wait(5)--Number of seconds for the first delay
game.Workspace.SBBot = Model --For lazyness 
Model.parent = Workspace
wait(0) --Edit this for the change delay.
game.ServerStorage.KahRahTae = Model2 --Lazyness again
Model2.parent = Lighting
end --Ends the script
------------
--Look out for v2
--It will have been tested.
--Please keep the credits as I made this item ENTIRELY myself
--Thanks!
--There are no viruses in this script nor copyright hints.
--Christopherandrews

Yes, but I understand how this way of doing things can cause a lot of problems and Isn’t a smooth way to go, more of a lazy way. I would advise what @BobbieTrooper said

2 Likes

Alright, I’ll try it! It may be the best way after all.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.