|
| 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 |
|
|
|
| 25 Aug 2015 08:44 PM |
| you could add a animation or use a for loop |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2015 08:47 PM |
| Do u know of any animations? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Aug 2015 09:14 PM |
| Couldnt i just use the door as the part i click? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Aug 2015 09:23 PM |
| you can try to create a thread called recruiting scripters to script some thing for me |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 25 Aug 2015 09:28 PM |
| No. Do not make a thread called "recruiting scripters" you ignorant moron |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 25 Aug 2015 09:29 PM |
| why, i need the script and that title may get more people to notice it. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 25 Aug 2015 09:31 PM |
| i looked up how to script so thats what i did i learned to script |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2015 09:33 PM |
| true i slowly have been learning to script that way |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|