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

Difficulty getting image to pop up?

I can't get the image to pop up when I use this script. Everything in the Explorer is named correct.

local carSeat = game.Workspace.ParkingLot.Char
local cashMoney = script.Parent
while carSeat.Position.Y < 5 do
	cashMoney.Visible = true
	script.Parent.Visible = true
	wait(2)
	cashMoney.Visible = false
	script.Parent.Visible = false
end

The image would pop up whenever you drive off the map. The image is an ImageLabel that is the parent of the script. I've tested the script as a LocalScript, ModelScript, and Script (I don't know why I would use ModelScript, but okie dokie). Nothing I've tried has seemed to fix it.

1 comment

0

elaborate on image. There isn't an image shown in the script

1 answer

You dont need to do

script.Parent.Visible = false -- vice versa

because

cashMoney.Visible = true -- vice versa

already does that. Why?

because

local cashMoney = script.Parent

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