It's been a while since I've done any scripting so I dont know what's going on. One of my old scripts isn't working, specifically the InsertService parts, how do I fix this?
local Wall
local success, err = pcall(function()
Wall = game:GetService("InsertService"):LoadAsset(2175621771)
end)
if success then
Wall.Parent = workspace
print("successfully inserted Wall")
else
warn("unable to insert Wall because " .. err)
end
wait()
local wall = game.Workspace.Model.SmoothBlockModel
wall.Parent = game.Workspace
Wall:Destroy()
wall.Transparency = 1
wall.Decal.Transparency = 1
wall.Decal1.Transparency = 1
wall.Decal2.Transparency = 1
wall.Decal3.Transparency = 1
wall.Decal4.Transparency = 1
local coin
local success, err = pcall(function()
coin = game:GetService("InsertService"):LoadAsset(2144222496)
end)
if success then
coin.Parent = game.Workspace
coin.Name = "Coin"
coin.PrimaryPart = coin.HumanoidRootPart
wait(0.1)
print("successfully inserted Coin")
else
warn("unable to insert Coin because " .. err)
end

6 comments
it is not InsertService anymore, instead its UserInputService
does it still function the same?
i think gameplayer is wrong, it is still the same, and its not deprecated that should work, show your full script maybe something else is wrong
game:GetService("InsertService"):LoadAsset(2175621771):GetChildren()[1]
I put the entire script
if this is a client script you need to use a remote event to use the insertservice