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

How do I fix an InsertService error?

One of my farvorite scripts use an Insert Service to load an asset as shown below

-- your code has been updated because it has deprecated code

game:GetService('InsertService':)LoadAsset(250405532):GetChildren()[1].Parent=char
char.GildedWings.Handle.Mesh.Scale = char.GildedWings.Handle.Mesh.Scale * 1.8
char.GildedWings.Handle.Mesh.VertexColor = Vector3.new(1,1,1)

but I get an error saying, "InsertService cannot be used to load assets from the client"

I've tried many ways to fix this but I'm new to this type of script so if anyone can help me out thanks.

4 comments

0

(use code blocks via the little lua icon in the editor mygod)

0
  1. I've edited your code because of many deprecated methods 2. The client can't insert assets, you can enable 'AllowClientInsertModels which you can find in the service', or load it from the server
0

Is there a way to enable that with script so I could try to add it to the script i'm trying to fix? I know i'm dumb but i'm trying my best here thanks.

0

An attempt to change the property via script will error, you'll have to change it in studio

1 answer

it simply means that insertservice may not be used by any client sided script, load it via normal server script

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