Ad
Log in to vote
0

Difficulty getting image to pop up?

Asked by 1 year ago
Edited 1 year ago

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.

0
elaborate on image. There isn't an image shown in the script kkfilms_1 68 — 1y

1 answer

Log in to vote
0
Answered by 1 year ago

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
Ad

Answer this question