generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Change position on click

Previous Thread :: Next Thread 
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
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
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
27 Jun 2012 01:23 PM
bump
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
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
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
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
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
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
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image