I’m having an issue with my game where im creating sliding doors, I’ve probably tried every method of using remote events, etc but it never actually works
After using print’s it always rus the tween but it never does anything. this is the script for my sliding doors and yes they are each grouped.
local bool = false
local dl = game.Workspace.TaxOffice.DoorL.Main
local dr = game.Workspace.TaxOffice.DoorR.Main
local detectIn = game.Workspace.TaxOffice.DetectIn
local out = game.Workspace.TaxOffice.DetectOut
local ts = game:GetService("TweenService")
local positionL = dl.Position
local positionR = dr.Position
local Info = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
true,
0
)
detectIn.Touched:Connect(function(part)
if bool == false and part.Parent:FindFirstChild("Humanoid") then
bool = true
local LTween = ts:Create(dl, Info, {positionL = Vector3.new(12.75, 9.75, 227)})
local RTween = ts:Create(dr, Info, {positionR = Vector3.new(-29.25, 9.75, 227)})
LTween:Play()
RTween:Play()
RTween.Completed:Wait()
bool = false
end
end)
If anyone could help that would be nice