i just starter scripting tweens so idk whats wrong with this script and i cant solve it by myself either so pls help why is this not working? i printed the player name just to make sure it does something but my tween wont play but it is printing my name script:
local tweenservice = game:GetService("TweenService")
local leftdoor = game.Workspace.door.leftdoor.doormain
local tweeninginformaion = TweenInfo.new(
1,--length
Enum.EasingStyle.Linear,--how it looks like
Enum.EasingDirection.Out,--direction
0,--amount of reat
false,--if it repeats
1--delay between each tween
)
local partproperties = {
CFrame = CFrame.new(-766.534, 4.8, -95.1)
}
local Tween = tweenservice:Create(leftdoor,tweeninginformaion,partproperties)
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
Tween:Play()
print(hit.Parent.Name)
end
end)
