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

Hello fellow scripters! i was wondering what was happening to my "seat" in roblox studio?

Asked by 5 years ago
Edited 5 years ago

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
0
bye the way if you think it is, its not doubled, its just the cframe equals the same cframe plus more cframe XD Noob189012 1 — 5y
0
Sorry for late answering. Alright so, a basepart is a random part that you pick. You name it specifically to whatever you want. Then you need to write a script that welds everything to it. Roblox has welding tutorials. You gotta learn bruh. superalp1111 662 — 5y
0
Oh also you can use a welding plugin to weld them manually without a script. After welding process, there is a BodyVelocity OBJECT you can put in parts. Go to explorer, click the while plus sign, find BodyVelocity and put it in. Set MaxForce to (math.huge,math.huge,math.huge) and velocity to (0,5,0) superalp1111 662 — 5y
0
Also, I wrote my answer wrong. It's supposed to be UNANCHORED, not ANCHORED. superalp1111 662 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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 :)

0
dont worry its anchored, thanks, oh and i do have a long way to go, because i dont know wat velocity even is :/ ill try what you said tho, THANKS SUPER HELPFUL (thumps UP* Noob189012 1 — 5y
0
wait a minute i'm confused dude, plz what you mean weld them into one base part? put body velocity in what, HOW do you put one in? wow im worse than i thought Noob189012 1 — 5y
Ad

Answer this question