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 '/' ?

Can someone please explain what this is and how to fix it? I want to know so I can fix my problem now and any later problems. The problem script is

script.Parent.Head:Remove()
b = Instance.new("Decal")
b.Parent = script.Parent.UpperTorso
b.Texture = rbxassetid://4399563236

and the first slash is the issue. Please explain why this is happening.

1 answer

✓ Accepted answer

Put it as a string.

script.Parent.Head:Destroy() -- :Remove() is deprecated, use :Destroy() instead
local b = Instance.new("Decal") -- be sure to use local variables 
b.Parent = script.Parent.UpperTorso
b.Texture = "rbxassetid://4399563236" 

-- alternatively, you can do this: 
-- b.Texture = "http://www.roblox.com/asset/?id=4399563236" 

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