Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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!

1 comment

0

Scripting helpers is not a request site.

2 answers

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.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.