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

Expected identifier when parsing method name, got '/'?

Asked by 4 years ago

Alright so, I am making a computer. This script is for the computer screen. The background of it. Kind of like a TV changing the picture every few seconds or so.

But it errors, Workspace.Computer.ComputerScreen.Decal.Script:2: Expected identifier when parsing method name, got '/'

This is where it errors.

1game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=2079763285

Here is the whole script.

01while true do
02    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=2079763285
03    wait(0.2)
04    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1302270539
05    wait(0.4)
06    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1336481354
07    wait(0.1)
08    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1302270539
09    wait(0.5)
10    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1302270539
11    wait(0.1)
12    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=2079763285
13    wait(1)
14    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1336481354
15end

And here is a picture of the parts, script, decal etc.

Sorry for this, it's probably a simple fix. I am new to scripting. Ha!

1 answer

Log in to vote
0
Answered by 4 years ago

The texture must be a string, so you have to wrap your URLs in "

Ex: "http://www.roblox.com/asset/?id=1336481354"

1
Thanks, see I knew I was missing something I knew I had to do! Ha. Nicklaus_s 17 — 4y
Ad

Answer this question