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

How do I make a Television with changing slides?

I am one of them people who might never understand scripting! I have tried this: if workspace.staffroomtelevision.surfacegui.imagelabel = (id of a decal) i do not think that would work, can anyone tell me how to make the script?

1 comment

0

I'm confused. Nowhere in there did you explain 'changing slides'

2 answers

✓ Accepted answer

This is very easy! You can use while true doto help. This is the script.

local waitTime = () --Time that the photos change
while true do
game.Workspace.staffroomtelevision.surfacegui.imagelabel = id
wait(waitTime)
game.Workspace.staffroomtelevision.surfacegui.imagelabel = id
wait(waitTime)
game.Workspace.staffroomtelevision.surfacegui.imagelabel = id
wait(waitTime)
game.Workspace.staffroomtelevision.surfacegui.imagelabel = id
-- You can insert more of these if you want
wait(waitTime)
end

If dosen't work then not my fault.

Right now you are trying to change an objectvalue. The thing is, that to change an image, you need to do:

yourid = 0
workspace.staffroomtelevision.SurfaceGui.ImageLabel.Image = yourid --Don't forget that object names are Casesensitive (Need to BE the CorrecT cAse)

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