Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tween not running when tool is used?

Asked by 5 years ago

```lua 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.

0
Print to debug, if the script is not running at all it is either disabled or misplaced. gullet 471 — 5y
0
alright VikingCatto 15 — 5y
0
I had it print "clic" when it got activated, and it is not printing VikingCatto 15 — 5y

Answer this question