How to make if image (ImageLabel) = rbx.... then StarterGui.ScreenGui.Frame.Visible = true ?
How to make this -? thank u and best regards -PPJASK
How to make if image (ImageLabel) = rbx.... then StarterGui.ScreenGui.Frame.Visible = true ?
How to make this -? thank u and best regards -PPJASK
Use:
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true
Simple:
local ImageLabel = script.Parent
local InstanceFra = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame
local RunService = game:GetService("RunService")
local AssetID = "123" -- make this your image label assetID
local function CheckImage()
if ImageLabel.Image == ("rbxassetid://" .. AssetID) then
return true
else
return false
end
end
local function RunServiceFunction()
if CheckImage() == true then -- if the Image is your assetID ( returned true ) frame is visible.
InstanceFra.Visible = true
else
return
end
end
RunService.RenderStepped:Connect(RunServiceFunction)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
with loop