Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I insert a hat into ROBLOXStudio?

I looked up this topic in the ROBLOX forums, and on YouTube and no help. I tried this.

game.Workspace:InsertContent("http://www.roblox.com/asset?id=179260453")

But the Output bar is saying: 16:48:04.387 - InsertContent is not a valid member of Workspace 16:48:04.390 - Script 'game.Workspace:InsertContent("http://www.roblox.com/asset?i', Line 1 16:48:04.392 - Stack End

Please help me.

2 answers

✓ Accepted answer

Use InsertService:LoadAsset

local hatId = 38438432
local hat = game:GetService("InsertService"):LoadAsset(hatId):GetChildren()[1]
hat.Parent = game.Workspace.Player1

1 comment

0

I can't believe Merely answered my question!! !

This discussion is preserved as it was. New answers, comments, and votes are closed.