I am not really sure if this would go in building, or in scripting support, so I just went with scripting. Anyways, I wanted to make a broom that flies back and fourth, the flying back and fourth worked. Now, all I need was to put a seat on it. I was curious of how I could make the seat fly with the broom sense it just sits there and doesn’t go with the broom. Please leave and suggestions for this! Have a good day!
You can easily attach the seat to the broom with a weldconstraint.
I did that, but it didn’t seem to work. For part 0 I had it on the broom, then I had part1 on the seat.
How did you move the broom? If you moved it by changing position, the welded seat won’t move with it. If you change the CFrame, the welded seat will move.
ohhhhh, ok… Thanks for the information :)))
Got A question, not sure if you know how to fix this but, when I am doing CFrame, my = sign always has the red line under it, do you know why? here is the script…
local TweenService = game:GetService("TweenService")
local part = script.Parent
local info = TweenInfo.new(4,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
local properties = part.CFrame = CFrame.new(part.CFrame.Position + Vector3.new(557.078, -154.112, -766.854))
local prop = part.CFrame = CFrame.new(part.CFrame.Position + Vector3.new(409.693, -133.447, -754.564))
local tween = TweenService:Create(part,info,properties
local Tween = TweenService:Create(part,info,prop)
while true do
tween:Play()
wait(5)
Tween:Play()
wait(5)
end
The property information must be put into a table with the property name as the key and its target value as the value.
local properties = {CFrame = CFrame.new(part.CFrame.Position + Vector3.new(557.078, -154.112, -766.854))}
local prop = {CFrame = CFrame.new(part.CFrame.Position + Vector3.new(409.693, -133.447, -754.564))}
bruhhh, now it is going to a position that I didn’t even pick.
Do you calculate the position in the CFrame constructor exactly the same way as you calculated the position before?
I got it, thanks haha, I figured it out a few days ago, sorry :))