When I sit on the chair, the computer screen doesn’t display any image. If I manually set the image in the ImageLabel properties, it displays normally. How can I fix this?
What the . . . I can’t get any images or anything. Nothing looks wrong. Maybe this is a bug? I tried testing to see if the images even work with just a part, and changing the image every 2 seconds, and it does not work. I have no idea.
Okay, so when I go in testing mode you can manually set the image property, and when you hit enter it gives you a different id then the one you put it. (Dont ask me why)
But then you copy that id and put it in your script:
local Chair = script.Parent:WaitForChild("Seat")
local Computer = game.Workspace:WaitForChild("Computer")
local ImageLabel = Computer.Screen.SurfaceGui:WaitForChild("ImageLabel")
local Images = {
"rbxassetid://119334272549292",
}
ImageLabel.Visible = false
Chair:GetPropertyChangedSignal("Occupant"):Connect(function()
if Chair.Occupant then
ImageLabel.Image = Images[math.random(#Images)]
ImageLabel.Visible = true
else
ImageLabel.Visible = false
end
end)