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

How do I change the position with a script?

I'm trying to use a script to change the positioning of my object. I've been using a touch event but it won't work.

function Touch()
   workspace.Part.Position(28, 100, -108)
end

script.parent.Touched:connect(Touch)

Apparently that did not work. Do any of you know? It will be a great help

1 answer

✓ Accepted answer

Hello, it's because you're not changing the position here:

workspace.Part.Position = vector3.new(28, 100, -108)

1 comment

1

Thank you. This helped a lot!

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