Hello, i am making a hot air balloon in roblox studio and when i created a "seat" and put it in the hot air balloon i made script for moving it all, no problem with that, but i DO have a problem with the sitting, i looked at other designs, none have to do with the player sitting in seat, with my balloon, when someone sits in it, and the balloon is moving up, the seat moves up too but the player stays in place, still seated, i dont know how this happens but its no computer glitch, its on both my computer and laptop, please help me to make the seats go up as well as the person in it! thanks everyone :) Oh bye the way, just so you know; if you stand in the hot air balloon when its rising, it brings you, its just the seat that doesnt bring the player up :/ heres the script
while true do if script.Parent.Parent.Parent.Barrel.Fire.Enabled == true then script.Parent.Parent.Parent.Basket.CFrame = script.Parent.Parent.Parent.Basket.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.Canopy.CFrame = script.Parent.Parent.Parent.Canopy.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.Seat1.CFrame = script.Parent.Parent.Parent.Seat1.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.Seat2.CFrame = script.Parent.Parent.Parent.Seat2.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.Seat3.CFrame = script.Parent.Parent.Parent.Seat3.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.Seat4.CFrame = script.Parent.Parent.Parent.Seat4.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.buttondesk.CFrame = script.Parent.Parent.Parent.buttondesk.CFrame * CFrame.new(0,0.5,0) script.Parent.Parent.Parent.trapdoor.CFrame = script.Parent.Parent.Parent.trapdoor.CFrame * CFrame.new(0,0,-0.5) script.Parent.Parent.Parent.Barrel.CFrame = script.Parent.Parent.Parent.Barrel.CFrame * CFrame.new(0,0.5,0) else break end wait(.05) end
Hello! Nice try to be honest, but you have a long way to go.
First of all, CFraming all parts is not the efficient way to move models. Models have a function named SetPrimaryPartCFrame
and to use that you need to set a primary part for model from properties window first.
Secondly, when you want to move a character or something out of model with the model, CFraming would be last option because those things works with physics better. So I would suggest you to weld all parts to one base part, put a BodyVelocity in it and set it's MaxForce to infinite values. If you set bodyvelocity's Velocity to 0,5,0 ONCE, it will keep moving up with 5 studs per second speed physically, so will take player with it.
Good luck with your project! If it helped, please upvote and accept as answer, if you have more questions, please ask in the comments!
Edit: Please don't forget anchored on :)