Smooth door or something?

Do someone know how to make a smooth open/close door like the door open in the first room in Magmatic Mines ?
Picture :
Screenshot_20210221_151306
This picture I gave up in Henry’s video
Link video :

tweenservice

2 Likes

uhmm… Can you explain more ?

1 Like

tweenservice

2 Likes

there’s this like part of script called tweenservice or whatever and it makes things move idk you’ll have to ask a scripture or smth

tweenservice is a service in which it allows things to transition smoothly

for example: i can use tweenservice to make the doors open with a bouncy-like behavior or make a part fade away smoothly

9 Likes

Read more about it here:
https://developer.roblox.com/en-us/api-reference/class/TweenService

2 Likes
local tween = game:GetService(“TweenService”)
local info = TweenInfo.new(
4,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
0,
false,
1)

local twn2 = {Position = Lib.Map._Door1.Position + Vector3.new(12, 0, 0)}
local twncreate = tween:Create(Lib.Map._Door1, info, twn2)

twncreate:Play()

local tween = game:GetService(“TweenService”)
local info = TweenInfo.new(
4,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
0,
false,
1)

local twn2 = {Position = Lib.Map._Door2.Position + Vector3.new(12, 0, 0)}
local twncreate = tween:Create(Lib.Map._Door
2, info, twn2)

twncreate:Play()
1 Like

If your door is a model, try this:

Where can I put it ? Eventstring or Eventscript or a Script??

this has to be in eventstring.
well if you’re using a script to put the full script into eventstring then that’s fine

why this dont work

local tween = game:GetService(“TweenService”)

local info = TweenInfo.new(

4,

Enum.EasingStyle.Bounce,

Enum.EasingDirection.Out,

0,

false,

local twn2 = {Position = Lib.Map._Door1.Position + Vector3.new(0, 0, -5)}

local twncreate = tween:Create(Lib.Map._Door1, info, twn2)
and i set it when button 5 is clicked

Lib.btnFuncs[5] = function()

wait(10)

twncreate:Play()

end

looks like you didn’t add a parenthesis at the end

i made two hour of scripting and iits work now

also, remove the comma as the script is going to think that the line is unfinished