Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do You Script Sliding Doors with One Button and Backdrops With One Button?

Asked by 3 years ago

So I am in this theater group and I need to script backdrops and sliding doors! But they have to be with one button each. So for a backdrop, One button would be used to turn on and off. I need them to slowly move down and up. The thing is for the sliding doors, I would need one button to bring to doors down and one to open them. If you could help me, because I cant script that well, Please either Reply t this message, or DM me on discord/roblox!

0
Scripting helpers is not a request site. nekosiwifi 398 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago

This is not a request site but Id suggest that you change the color of the button and correlate that with the sliding doors. You can use the for i, in v pair function.

Ad
Log in to vote
0
Answered by 3 years ago

Use the >LERP function. Here is an example. Look up videos if you don't understand (I recommend watching TheDevking's Video on it).

local part1 = game.Workspace.Part1
local part2 = game.Workspace.Part2

for i = 0, 1, 0.01 do
    part1.CFrame = Part.CFrame:Lerp(part2.CFrame, i)
end

Make sure to accept answer if this helps.

Answer this question