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

How do I insert a hat into ROBLOXStudio?

Asked by 10 years ago

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

Log in to vote
3
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago

Use InsertService:LoadAsset

local hatId = 38438432
local hat = game:GetService("InsertService"):LoadAsset(hatId):GetChildren()[1]
hat.Parent = game.Workspace.Player1
0
I can't believe Merely answered my question!! ! xxMarvelBobbyxx 10 — 10y
Ad
Log in to vote
-1
Answered by 9 years ago

LOL dang

Answer this question