Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do I make a Television with changing slides?

Asked by 8 years ago

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?

0
I'm confused. Nowhere in there did you explain 'changing slides' Shawnyg 4330 — 8y

2 answers

Log in to vote
-1
Answered by 8 years ago

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.

Ad
Log in to vote
0
Answered by
sigve10 94
8 years ago

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)

Answer this question