#moving part

28 messages · Page 1 of 1 (latest)

sick imp
#

so i want the part to go to the right for a bit of time and then up (i cant find any waay to do it)

local MovingPart        =    script.Parent
local direction1        =    Vector3.new (0, 0, 1)
local direction2        =    Vector3.new (0, 1, 0)
local direction3        =    Vector3.new (0, 0, -1)
local direction4        =    Vector3.new (0, -1, 0)
local speed                =    5

function Move ()
    
    local newPosition        =    direction1 * speed * 0.01
    MovingPart.Position        =    MovingPart.Position + newPosition
    
    local newPosition        =    direction2 * speed * 0.01
    MovingPart.Position        =    MovingPart.Position + newPosition
end

while true do
    Move ()
    wait (0.01)

end
halcyon currentBOT
#

studio** You are now Level 2! **studio

sick imp
#

(just ignore direction3-4)

ornate ravine
#

You can use tweenservices or a while true loop

sick imp
#

tryed the loop doasnt rlly work idk

ornate ravine
#

Do you try to set the wait number to 10?

sick imp
#

why

#

no

ornate ravine
#

I think 0.01 second play the move functions

#

But what your problem the platform don't move or?

sick imp
#

no i want it to move to the right a bit and then up

ornate ravine
#

Ant what the issue

sick imp
#

idk how i can do it

ornate ravine
#

Use tweenservices

sick imp
#

can try

atomic holly
sick imp
#

ik started few days ago XD

atomic holly
#

no i mean

#

why do u space everything out

#

somuch

sick imp
#

i like it like that idk

ornate ravine
#

But very hard to read it

halcyon currentBOT
#

studio** You are now Level 2! **studio

ornate ravine
#

Or know it what do you type

sick imp
#

oooh

#

now i understand

ornate ravine
#

What

sick imp
#

the space thing