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

Why can't I change the decal id on a part?

Asked by 8 years ago

When I use my script I get this in the output: ServerScriptService.Script:5: unexpected symbol near '?'

Put when I just leave the id's (e.g. 70414028) the original face disappears and wont reappear. Like Slender's face.

When I add http:// to the id, it gives me this error: ServerScriptService.Script:5: '<name>' expected near '/'

local face = game.Workspace.Human.Head

while true do
    wait(3)
    face.Decal.Texture = www.roblox.com/asset/?id=70414028
    wait(3)
    face.Decal.Texture = www.roblox.com/asset/?id=161970460
    wait(3)
end 

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

Since Texture is a string value, you need to give it a string! To declare a string, use quotation marks.

local face = game.Workspace.Human.Head

while true do
    wait(3)
    face.Decal.Texture = "www.roblox.com/asset/?id=70414028"
    wait(3)
    face.Decal.Texture = "www.roblox.com/asset/?id=161970460"
    wait(3)
end 
0
thanks! User#210 0 — 8y
0
No problem Shawnyg 4330 — 8y
Ad

Answer this question