Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.