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 » Scripters
Home Search
 

Re: Rotate 1 brick 90 degrees

Previous Thread :: Next Thread 
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 08:43 PM
Help me please! I have 1 brick that i need to be rotated 90 degrees inward to be like a door. i want the door to open when clicked. Please help me with this so i know how to do it in the future and for right now!!
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 08:44 PM
you could add a animation or use a for loop
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 08:47 PM
Do u know of any animations?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
25 Aug 2015 08:49 PM
This is actually harder than you think
See as your title I could do this


part.CFrame = part.CFrame * CFrame.Angles(0,math.rad(90),0)



but I cant

So lets try this..


part.CFrame = part.CFrame * CFrame.Angles(0,math.rad(90),0) * CFrame.new(part.Size,X,0,part.Size.Z)

Thats just the cheaty way
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 08:52 PM
I dont mean to be a noob at scripting but how would i use that so when i clicked the door using a click detector it would rotate?
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 08:53 PM
you can create your own animation using the official animation editer but it wont work that well idk if it will work your best off with a for loop
door=script.Parent

function open()
for i=1,90 do
door.Rotation=door.Rotation+Vector3.new(0, 0, 1)
wait()

end
end

function close()
for i=1,90 do
door.Rotation=door.Rotation-Vector3.new(0, 0, 1)
wait()

end
end
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 08:55 PM
how if you want it so the hitbox of the door stays you could create a invisible can collide false part where the door is so when you click that that activates the door
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:14 PM
Couldnt i just use the door as the part i click?
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
25 Aug 2015 09:14 PM
yes
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:15 PM
How would i do that?
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:16 PM
yes but then when the door turns the hitbox/place that detects if you click will move as well
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:17 PM
Thats what i want to happen. what would be the entire script? i am horrible at scripting and barely know anything (i am much better at building).
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:23 PM
you can try to create a thread called recruiting scripters to script some thing for me
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:24 PM
script something for you?
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:27 PM
no by me i mean you
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:28 PM
oh okay
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
25 Aug 2015 09:28 PM
No. Do not make a thread called "recruiting scripters" you ignorant moron
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:29 PM
if you dont know how to script and you dont want to learn thats what i do for me it was the other way around i can script very well but my building kinda sucks so i recruited a build team to help me build
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:29 PM
why, i need the script and that title may get more people to notice it.
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:30 PM
or just google roblox how to script watch some check out the official roblox wiki and stuff like that
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:31 PM
i looked up how to script so thats what i did i learned to script
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:33 PM
true i slowly have been learning to script that way
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:34 PM
warning it may change your life it turned me from a geek lvl 100 to a geek lvl 1000000000000000000000000000000
Report Abuse
Cruzdude939 is not online. Cruzdude939
Joined: 30 Jun 2013
Total Posts: 33
25 Aug 2015 09:35 PM
lol, i dont use scripting that much, i prefer to build, i currently am working on a huge cruise ship showcase but i want the doors to open and close by rotating.
Report Abuse
NinjaDoge2413 is not online. NinjaDoge2413
Joined: 18 Sep 2013
Total Posts: 418
25 Aug 2015 09:38 PM
btw being a geek rocks i highly recommend it its like being a nerd but you are 1000000 times cooler then most people and you are alot cooler then a nerd if your a geek you become the one of the coolest people in the group take it from me a geek whos life is great ... well kinda great
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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