I have this basement and I want it where you touch it and the door rotates 90 degrees if I am correct, I have no idea what script I would use for this because I am a beginner scripter but I also have a script that is close I think, Check this out
function onTouch(hit) if hit.Parent.Name == "Door" then game.Workspace.Door.CFrame=CFrame.new(1,10,1) end end script.Parent.Touched:connect(onTouch
Plz halp
Here is a picture of the door

8 comments
It wasn't the right rotation so I changed it but when I did every time I walked into it, It crashed my game, Even when I changed it to something else, First it was a ANTI-LAG script but when I disabled that it was your script, Doesn't work
There is no such thing as anti-lag scripts, and fyi but this as a regular script inside the door thing. Shouldnt be crashing your game though.
Wait, I truly apologize. Let me edit my post, I know why its lagging or "crashing" the game.
What happen when I touch it or change the rotation https://gyazo.com/3836ab330b918cd4d5f5c0902ff71fdf
Can you please give me the Rotation value of the door? Thanks! :)
Rotation value? Do you mean the (0, i, 0)? I will tell you both, So first time without change it did the same in the GIF and second time I changed it to for i=0,80, 0 do and (0, i, 0) and it did the same, Then I changed it for i=0,80, 0 do and (0, 1, 0) And it did the same thing.
Or if you mean what rotation the door is in right now it is " -179.148, -0.003, 179.397 "
Thank you, sorry I was sleeping. I will fix the script, give me a second :)