I want to make this tween play when the TweenActivator part is touched.
The problem is that the tween doesn’t play when the TweenActivator is touched.
Later on, I found a misspelling in the script. I corrected it but it still doesn’t work.
Script:
local tweenService = game:GetService("TweenService")
local object = script.Parent
local tweenInfo = TweenInfo.new(
6,
Enum.EasingStyle.Quad,
Enum.EasingDirection.Out,
0,
false,
0
)
local properties = {
Position = Vector3.new(-316.18, 0.5, -197.76)
}
local tween = tweenService:Create(object, tweenInfo, properties)
game.Workspace.TweenActivator.Touched:Connect(function(touched)
tween:Play()
end)
What’s the problem here?