Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to move a part after a certain amount of time?

I'm pretty new with studio and I'm trying to make a cutscene intro. I got the camera and title done, but I came to a dead end trying to make a notifier of how to start the game (eg: Press R to start). I've tried this:

wait(4) (function() PartR:MoveTo(Vector3.new(-139.17, 5.26, 113.79)) end) (sorry for bad formatting the new text editor is really confusing)

Nothing happened. Is there anything I'm missing?

2 comments

0

what text editor?

0

ur not connecting the function

2 answers

Nevermind I realized I made PartR a variable instead of, well, PartR

1 comment

0

Oh, it is fix then... Okay >=< I was so slow................................. but Isn't this suppose to be in the comment.......

If What I am assuming is right then here goes nothing:

local v3 = Vector3.new(218, 0.5, -596)
local part = workspace.BB
wait(5)
part.Position = v3

The variable v3 is the position of where you want the part is gonna be and the variable part is your part's identifier then by the use of wait() then we can achieve this move a part after a certain amount of time of yours following of "what's gonna happen next" after "a certain amount of time" which is line #4, part.Position=v3. For a function then it should look like this:

function movePart()
wait(5)
part.Position
end

1 comment

0

I just said my fixed one worked because I figured it would but it didn't but yours did so thanks a lot

This discussion is preserved as it was. New answers, comments, and votes are closed.