#hi, sorry if im asking some obvious questions but im not an expert at scripting yet, still learning
1 messages · Page 1 of 1 (latest)
ik
I would totally help you but i can’t figure out with all these functions
it's okay
Hold on
ik one easy fix but i don't do it cause it wouldn't look good, i can just remove the doors and add an invisible part that has can collide turn off and on
uhh i can do local RunService = game:getService("RunService")
anyone know how to fix it?
I guess the question would be what happens after the door is done animating? what values are you using for the tween property table?
wdym?
You're using TweenService, yeah?
yes
You give properties to that when you make a tween, yes?
what properties (sorry for not understanding, english isn't my first language)
Show me the part of the code where you create tweens (TweenService:Create)
CFrames contain position and rotation, so you're saving the original CFrame of the door
So when its time for it to do its thing, its going to move to the original position
for hinge tweens, try just using Orientation
i mean, i can delete the hinge tweens all togheter considering it moves with the door1 tween
how do i make it so it's using the current cframe of the door
You'd need to use the object's CFrame at the point you create the tween, rather than saving it
any chance u could help me do that?
** You are now Level 8! **
I can help guide you but I wont do it for you
that works too
okay
local function OpenDoor1()
local OpenDoor1Goal = {CFrame = hinge.CFrame * CFrame.Angles(0, math.rad(90), 0)}
local OpenDoor1Tween = TweenService:Create(hinge, info, OpenDoor1Goal)
OpenDoor1Tween:Play()
end
local function OpenDoor2()
local OpenDoor2Goal = {CFrame = hinge2.CFrame * CFrame.Angles(0, math.rad(-90), 0)}
local OpenDoor2Tween = TweenService:Create(hinge2, info, OpenDoor2Goal)
OpenDoor2Tween:Play()
end
like this?
IT WORKSS
wait but now how do i make them close-
tysfm
okay weird small but not script breaking bug
Okay what's that
tysm for the help, really
it workss