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

'<name>' expected near '/'? What does this means?

Asked by 7 years ago

This is a simple face animating script. Can anyone tell me what is wrong?

Script: while true do wait(1) script.Parent.Mouth.Texture = http://www.roblox.com/asset/?id=279666891 math.random(1,3) script.Parent.Mouth.Texture = http://www.roblox.com/asset/?id=176217905 end

Output: 16:47:51.867 - Workspace.Callie. .Head.Script:3: '<name>' expected near '/'

0
you missed the ' User#5423 17 — 7y

1 answer

Log in to vote
0
Answered by
einsteinK 145
7 years ago

The http://www.roblox.com/asset/?id=279666891 has to be in quotes:

while true do
wait(1)
script.Parent.Mouth.Texture = "http://www.roblox.com/asset/?id=279666891"
math.random(1,3)
script.Parent.Mouth.Texture = http://www.roblox.com/asset/?id=176217905
end

I assume the math.random(1,3)is meant to wait 1,2 or 3 seconds? In that case, use wait(math.random(1,3))

0
Oh, thanks! xD I always forget the ', and thanks for helping me with the math.random too, I never tried it before. Namityyy 0 — 7y
Ad

Answer this question