MaxMixcat
(MaxMixcat)
#1
I have a script like this:
game.Players.PlayerAdded:Connect(function(player)
local AddPart = Instance.new("info"..player.CharacterAppearanceId)
AddPart.Position = Vector3.new(120, 88.683, -10)
AddPart.Anchor = true
AddPart.Size = Vector3.new(1, 1, 1)
AddPart.parent = game.Workspace.PlayersInfo
end)
But when I test it, I get an error: Unable to create an Instance of type “info1477309404”.
Why is this happening and is there any way to fix it?
I apologize if it is written strangely or incorrectly. I use a translator because I don’t know English.
12345koip
(12345koip)
#2
The first parameter to Instance.new
should be the class name, e.g. “Part”. You can modify part.Name afterwards.
1 Like
Rescriptedd
(9gzfaUa1DeGxYkqgZxIJ)
#3
You’re setting the type of the part to info1477309404.
What part are you trying to do?
And Anchor should be Anchored
and parent should be Parent
1 Like
Rescriptedd
(9gzfaUa1DeGxYkqgZxIJ)
#4
Yeah, like this:
AddPart.Name = "info"..player.CharacterAppearanceId
1 Like
system
(system)
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.