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

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

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

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" 
Ad

Answer this question