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

How do you use Vector3 with a weld?

Asked by 10 years ago

I'm not sure why my part won't move when i put the Vector3 script in it. My Friends have said its because its welded, so is there a way to use Vector3 to rotate on the Z axis while there is a weld? I also tried removing the weld but it just breaks the model.

1 answer

Log in to vote
0
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

Weld coordinates use CFrame values, not Vector3 values. This is because you also need to encode a rotation (which CFrame does and Vector3 does not).

In the event that all you need is the default rotation, then CFrame.new(someVectorValue) will construct that corresponding CFrame.

0
It tried that it didn't work, weird. Alright so what I'm trying to make is a horse and Carriage for my Nation that I am in. I want it so when your on the Saddle of the horse Greater then 1 the wheels start rotating. Heres what I got. bin = game.workspace Saddle = game.Workspace.Horse Carraige.Saddle wheel = script.Parent if Saddle.Throttle < 1 while true do CFrame.new(0, 0, 15) CFrame.new(0, 0 gameman625 0 — 10y
Ad

Answer this question