"Image cannot be assigned to"

I keep getting this error. Here’s the line:

local module = {}
local height = -4.5

function module.createCircle(plr)
	
	local char = game.ServerStorage.Circle.Body:Clone()
	
	char.Name = plr.Name
	char.Position = Vector3.new(math.random(-57.5, 57.5), height, math.random(-57.5, 57.5))
	char.BrickColor = BrickColor.new(math.random(1, 64))
	char.Parent = game.Workspace.Circles
	char.SurfaceGui.Face.Image = tostring(plr.Character.Head.face.Texture) -- error occurs here
		
	return char
	
end

function module.createXP()
	
end

return module

Recommend using the infamous print to check what that is.
Usually is because rbxasset something something isn’t there.

2 Likes

My gosh… I can’t index SurfaceGui.Face because that’s it’s property! Thanks.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.