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

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

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

1 answer

✓ Accepted answer

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.

2 comments

0

ty

1

np

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