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

Creating a shirt, giving it an ID but still doesn't work?

Asked by
Kymaraaa 116
8 years ago
01local character = game.Players.LocalPlayer.Character -- the player in the workspace
02local augmaActivated = false
03 
04 
05local function Activate(inputObject, gameProcessedEvent)
06    if  augmaActivated == true and inputObject.KeyCode == Enum.KeyCoutde.Q then
07            print("closing")
08            script.Parent.Frame.Visible = false
09            augmaActivated = false
10    else if inputObject.KeyCode == Enum.KeyCode.Q then
11            script.Parent.Frame.Visible = true
12            augmaActivated = true
13 
14            Instance.new("Shirt", character).Name = "Shirt"
15            character.Shirt.ShirtTemplate = "rbxassetid://676316362"
View all 25 lines...

This is my code, it inserts a Shirt and gives it an ID. It does this, the shirt in the player has the ID. But it doesn't appear on my character? I'm testing it when I have no shirt/pants so I don't need to destroy original Shirt/Pants yet.

0
When I looked up the asset id, it was a game. Sometimes you have to subtract a few more digits for the image to be retrieved correctly. antonio6643 426 — 8y
0
subract 1 off the last digit in line 14. Make it 676316361 tonyv537 95 — 8y

Answer this question