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

NPC Shirt Is Not What I Picked?

Asked by 3 years ago
Edited 3 years ago

So Basically I Made A Walking NPC Script And I Wanted To Add Random Shirts From My Table, I Went Online To See Some Answers and saw:

Functions and variables


shirts = {6922626706, 6706140296} local randomshirt = math.random(1,#shirts) local clothing = npc.Shirt function format(Id) return string.format("rbxthumb://type=Asset&id=%s&w=420&h=420", Id) end

Change Shirt

clothing.ShirtTemplate = format(shirts[math.random(1, #shirts)])

Also I didn't do this in separate scripts

Problem Is When I Test The Game The Shirt, Is Not What I Expected. It had a sphere dummy head and a black thing on the waist?

And Also The Shirts Arent The Problem.

Please Correct Me If I Am Wrong, Do I Need A Remote Event/Function/Bindable?

And Just To Remind You, Stay Safe!

EDIT: ** Sorry To Waste Your Time But Actually The Image Was The Shirt But A Dummy Wore It XD**

2 answers

Log in to vote
1
Answered by 3 years ago

I believe that you are putting in the wrong shirt / pants ID's. Insert a shirt into workspace. Paste the link of your shirt and then copy the asset ID from there inside. The shirts should attach to the NPC afterwards.

0
Tried that already, it is the shirt ID I wanted. Brioche_Noodle 45 — 3y
0
Also Does Shirt Work With Mesh Dummys? Brioche_Noodle 45 — 3y
0
Weird NotFrindow 346 — 3y
0
I fixed it already! Brioche_Noodle 45 — 3y
Ad
Log in to vote
-1
Answered by 3 years ago

Sorry To Waste Your Time But Actually The Image Was The Shirt But A Dummy Wore It XD

Answer this question