I'm making a plugin, at the end of the script I wanted to make it where it copies what you wrote in text boxes so it can make a decal go into a part... But the Parent part doesn't work, the output says I need an object. I don't know what that means.
I remember doing something like newdecal.Parent = "game." ..selection, and it worked, but not this time somehow.
Can somebody help me?
local id = dId.Text
local selection = pselect.Text
local position = dpos.Text
local newdecal = Instance.new("Decal")
enter.MouseButton1Click:connect(function()
newdecal.Texture = "" ..id
newdecal.Parent = "game." ..selection
newdecal.Face = "" ..position
end)

2 comments
Well, then how would I make it where what they type in what part they want the decal to go into, the decal goes into it? (This is a plugin script)
Why have them type in the part instead of having them select the part? It would be much more convenient and easier to script.