Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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?

0
what text editor? NickAtNick 163 — 5y
0
ur not connecting the function Gameplayer365247v2 1055 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

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

0
Oh, it is fix then... Okay >=< I was so slow................................. but Isn't this suppose to be in the comment....... NickAtNick 163 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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
0
I just said my fixed one worked because I figured it would but it didn't but yours did so thanks a lot SindexMon 6 — 5y

Answer this question