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

The tween is not playing when "punch" is false - can anyone help?

Asked by 5 years ago
Edited 5 years ago

Good afternoon all!!! Hope you are having a great day so far , and i hope it continues. I'm making a script where if somebody presses a designated key false is true and is supposed to stretch the arm - however when i press the key the anim plays without the arm (RightHand)!

-goku :D

local tween = game:GetService("TweenService")
local tweenfo= --line after is normally here
TweenInfo.new(7,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut,1,true,0)
local partproperites = {Size = Vector3.new(0,10,2)}


local tweens = tween:Create(arm,tweenfo,partproperites)

if punch == false then
    tweens:Play()   
end


1
maybe because you're not defining punch Leamir 3138 — 5y
0
^, what he said oSyM8V3N 429 — 5y
0
That only runs once, either do a while loop, theking48989987 2147 — 5y
0
That only runs once, either do a while loop, theking48989987 2147 — 5y
View all comments (4 more)
0
That only runs once, either do a while loop, theking48989987 2147 — 5y
0
That only runs once, either do a while loop, theking48989987 2147 — 5y
0
Or it isn’t looping theking48989987 2147 — 5y
0
It works - the hand falls off - and the hand does not tween... it just stays the same ScriptingNubs 55 — 5y

Answer this question