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

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

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

✓ Accepted answer

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

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

1 comment

1

Thanks, see I knew I was missing something I knew I had to do! Ha.

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