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

attempt to concatenate string with userdata?

Asked by 5 years ago
01-- Settings
02local name = owner.Name
03-- Head
04local head = Instance.new("Part")
05head.Parent = game.Workspace
06head.Name = "head"
07head.Anchored = true
08head.CanCollide = false
09head.Size = Vector3.new(2, 1, 1)
10-- Face
11local face = Instance.new("Decal")
12face.Parent = head
13face.Texture = "rbxasset://textures/face.png"
14face.Name = "face"
15face.Face = "Front"
View all 73 lines...

On line 62 it says "attempt to concatenate string with userdata". Help!!!

1 answer

Log in to vote
1
Answered by
Psudar 882 Moderation Voter
5 years ago

You're indexing char with () instead of [""], so change all the lines that do that with this syntax:

1thing.Position = char["Body Part"].Position
Ad

Answer this question