|
| 27 Jun 2012 01:20 PM |
| I'm trying to make car that has a bonnet (hood) that opens on click. I don't just want to set the transparency to 1, I want it to actually flip up. Could someone help me, or send me the link to a HELPFUL wiki page please? |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2012 01:29 PM |
You'll need to manually change the CFrame of the bricks that make up the hood of the car as a part of the script. It'd be hard, you would need to test what changes in CFrame you want, and change each brick a certain amount of times to bring it to the end/start position.
then, put all the CFraming scripts you have from there in a LocalScript in a HopperBin, like this
script.Parent.Equipped:connect(function(mouse) mouse.KeyDown:connect(function(k) if k=="r"and open==true then open=false --CFraming to put it down elseif k=="n"and open==false then open=true --CFraming to put it back end end) end) |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2012 01:31 PM |
| That's far beyond my level; I have a bit of learning to do. I thought it might just be change its vector3 OnClick, but I was lost at Hopperbin :3 |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2012 01:34 PM |
| What you would need to do is learn to CFrame within a script. Then, find all the CFrame changes to the bricks that make up the hood, which causes it to move. You just continue to CFrame each brick until it goes down or whatever, it's really tedious, only problem. Then you'd just need to plug it into the script I gave you. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2012 01:35 PM |
| Ah OK, thanks for the help, but for now I think I'm going to just stick with the transparency thing. |
|
|
| Report Abuse |
|
|