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

How do i make the brick smooth?

Asked by 6 years ago

Hey I was trying to make game so i wanted a moving brick so i wrote this } while true do mover.Position = mover.Position + Vecter3.new(1,0,0) end } but thats not fast enough so i wrote (5,0,0) but thats smooth so wrote (0.25,0,0) but thats too slow so what do i do please help i am really stuck i want the brick to mover fast and smooth and also how do you clone it and then move because if you write clone() and then move it would move both or it would do nothing so i am really stuck.

0
"not fast enough so i wrote (5,0,0) but thats smooth" What? Don't you want it to move smoothly? hiimgoodpack 2009 — 6y

2 answers

Log in to vote
0
Answered by 6 years ago

You should implement wait() times in your loop. I assume the part is moving infinitely based on your code/example. Wait times will allow you to change how fast the loop repeats based on your vector increments.

while true do
    wait(0.1)
    mover.Position = mover.Position + Vecter3.new(0.3,0,0)
end

I haven't test in studio as I am at work but you can tweak the wait() value and the vector3 value until you smooth it out. But that should be what you're looking for

0
Dont you think i tried this already!!!! And also how do you make it even more faster. DarkModule 34 — 6y
0
You lower the wait time. wait() defaults to wait(0.033) as that is the lowest it will yield. You just need to play with the values until it smooths out. Trial and error Legoman654 100 — 6y
0
still not fast i want it to be super fast DarkModule 34 — 6y
0
I just tested myself and it goes fast. I don't think you're setting good values Legoman654 100 — 6y
0
But i want even more faster lol DarkModule 34 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

**You Do Not Need a Script Just Use The MATERIAL Plastic **

0
What do you mean WideSteal321 DarkModule 34 — 6y
0
I think he misread your question and thought you wanted the part’s surfaces to look smooth. User#20279 0 — 6y
0
please excuse the fact i existed in 2018 WideSteal321 773 — 3y

Answer this question