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

this is for a script im working on my part well not move and i need help why is it not moving?

Asked by 8 years ago

function movepart() wait(2) game.Workspace.part.CFrame = CFrame.new(9,9,9) end

1 answer

Log in to vote
0
Answered by 8 years ago

You're not calling your function.

This is what your script looks like,

function movepart() 
    wait(2) 
    game.Workspace.part.CFrame = CFrame.new(9,9,9) 
end

However, the function on line one is not being called. To fix this, simply add movepart() at the end of the script,

function movepart() --function
    wait(2) 
    game.Workspace.part.CFrame = CFrame.new(9,9,9) 
end
movepart()--call

Here's a link for more about functions.

Good Luck.

0
ty blackmask657 2 — 8y
1
np User#11440 120 — 8y
Ad

Answer this question