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

Why doesn't local scripts work right?

Asked by 10 years ago

Recently I had to use localscripts to do tweening, but local scripts keep giving me errors. Normal scripts work just fine.

script.Parent.MouseButton1Click:connect(function()
  target = script.Parent.Parent.Parent.polls
    script.Parent.Parent.Visible = false
    target.Visible = true
    target:TweenSizeAndPosition(UDim2.new(target.Size), UDim2.new(target.Position))

end)

Line 2 gives an error not the tween part

Answer this question