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

How do I fix this attempt to create a sliding GUI script for my ImageLabel when touching a brick?

Asked by 10 years ago

Please look at the script here and take a glance at the output. http://codepad.org/oANv51LE

1 answer

Log in to vote
0
Answered by
SanityMan 239 Moderation Voter
10 years ago
game.Workspace.PointsGiver.Touched:connect(function(hit) --you were missing a :connect to connect the function to the event
print("Into the Touched function!")
script.Parent.Visible = true
script.Parent:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Quart", 2, true) --I am pretty sure you cannot tween the visible property
end)

Please change the UDim2 value to your liking. The first value you had moved it to an x of 200%, and I am not entirely sure of your intentions so I changed it to 0.5

See if it runs now. I added a print so you can tell if it makes it passed the function line.

Ad

Answer this question