TweenService = game:GetService("TweenService")
 
tweenInfo = TweenInfo.new(
    0.4, -- Time
    Enum.EasingStyle.Quint, -- EasingStyle
    Enum.EasingDirection.InOut, -- EasingDirection
    -1, -- RepeatCount (when less than zero the tween will loop indefinitely)
    true, -- Reverses (tween will reverse once reaching it's goal)
    2.5 -- DelayTime
)

p = script.Parent.Position

script.Parent.Parent.Activated:Connect(function()
    TweenService:Create(script.Parent, tweenInfo, {Position=Vector3.new(p.X+50, p.Y, p.Z)}):Play()
end)

This is supposed to tun a tween when a tool is used, but it isn't activating when I click. I'm not sure what's happening here, because it doesn't raise an error at all. Help would be greatly appreciated.

3 comments

0

Print to debug, if the script is not running at all it is either disabled or misplaced.

0

alright

0

I had it print "clic" when it got activated, and it is not printing