Script doesnt move the group

(this better not get deleted this time)

yeah so basically, im trying to move a literal group with proximityprompt.
but it doesnt work,
what im i doing wrong?

script:
workspace.Button.ProximityPrompt.Triggered:connect(function()

game.Workspace.speedgel.Position = Vector3.new(14.458, 0.725, -13.225)

game.Workspace.speedgel.Orientation = Vector3.new(0, 12.96, -90)

wait(0.00000000001)

script.Parent:Remove()

end)

Groups do not have a position.

Are you testing in a live game? If so then of course it won’t work since proximity prompt is not live on client yet, right now just in studio as a beta feature.

is that the model? If so, models do not have a position. You cannot change the position of a model, as each of the parts in the models have different positions.

2 Likes

dang, is there any way i can move it tho? like welding every part into a part and moving the position of that part

no. im testing in studio thats it

1 Like

Yeah that can work. You can also assign a PrimaryPart to the model, and then do :SetPrimaryPartCFrame on the model so you can move the whole model too.

2 Likes

For rotation purposes you can use CFrame.Angles() and for positioning purposes you can use CFrame.new() alongside what @sjr04 said about setting a primary part.

Note: angles need to be in math.rad()

1 Like

Like incapaz said, assign a primary part, then use the cframe. it will move the entire model