My attempt
shirts = {650162633}
local randomshirt = math.random(1,#shirts)
local clothing = script.Parent.Clothing
clothing.ShirtTemplate = 'http://www.roblox.com/asset/?id=' ..randomshirt
My attempt
shirts = {650162633}
local randomshirt = math.random(1,#shirts)
local clothing = script.Parent.Clothing
clothing.ShirtTemplate = 'http://www.roblox.com/asset/?id=' ..randomshirt
You forgot to mention the table so it's shirts[randomshirt]
shirts = {650162633}
local randomshirt = math.random(1,#shirts)
local clothing = script.Parent.Clothing
clothing.ShirtTemplate = 'http://www.roblox.com/asset/?id=' ..shirts[randomshirt]
-facepalm- to me lol
Haha it is okay :P
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
And yes i know theres only one shirt (just showing the shirt is the issue)