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

How to make - if image = xyz then Frame Visible = true ?

How to make - if image = xyz then Frame Visible = true ? ( with loop ) Image = script.Parent Frame = StarterGui.ScreenGui.Frame -Thank u and best regards -PPJASK

1 answer

You would use UDim2 which is basically the same as Vector3 but with Gui's and frames positions, size and what not, so the code would look something like this. More on UDim2 here - https://developer.roblox.com/en-us/api-reference/datatype/UDim2

local Frame = FramePlacementHere

if Frame.Position == UDim2.new(CoordinatesForIfStateMent) then
	Frame.Visible = true
	-- And the rest of what you want can go in here
end

-- Made with a localScript

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