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

How do I make GetService:InsertService work?

Asked by 5 years ago
Edited 5 years ago

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
0
it is not InsertService anymore, instead its UserInputService Gameplayer365247v2 1055 — 5y
0
does it still function the same? tigerwarrior56 1 — 5y
0
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 starmaq 1290 — 5y
0
game:GetService("InsertService"):LoadAsset(2175621771):GetChildren()[1] ice_bearz 36 — 5y
View all comments (2 more)
0
I put the entire script tigerwarrior56 1 — 5y
0
if this is a client script you need to use a remote event to use the insertservice AnonymousDeveloper13 22 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

game:GetService("InsertService"):LoadAsset(2175621771):GetChildren()[1]

(reposting as an answer)

0
doesn't seem to work tigerwarrior56 1 — 5y
0
you need to set its parent, and you did that in your script, so as i said, that might not be the wrong part starmaq 1290 — 5y
0
I put the whole script, I dont know what the problem would be tigerwarrior56 1 — 5y
Ad

Answer this question