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

How do I change the position with a script?

Asked by 4 years ago

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

Log in to vote
0
Answered by
VitroxVox 884 Moderation Voter
4 years ago

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

workspace.Part.Position = vector3.new(28, 100, -108)
1
Thank you. This helped a lot! Captain0Jack0Sparrow 26 — 4y
Ad

Answer this question