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.

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

Here is the whole script.

while true do
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=2079763285
    wait(0.2)
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1302270539
    wait(0.4)
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1336481354
    wait(0.1)
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1302270539
    wait(0.5)
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1302270539
    wait(0.1)
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=2079763285
    wait(1)
    game.Workspace.Computer.ComputerScreen.Decal.Texture = http://www.roblox.com/asset/?id=1336481354
end

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