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

How do I make an in-game clothing scripted catalog?

Asked by 7 years ago

I've been trying and trying to find out how and I can't! It's not on YouTube or anywhere. Please, respond

0
Would you like players to actually be able to buy stuff or just wear it? FrostTaco 90 — 7y
0
@FrostTaco Just wear only. Like in my runway/fashion game. xBriannaBear 0 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

In-Game clothing scripted catalog, Funny thing is I almost didn't see clothing in the title, It depends if it is a Gui or not, If it isn't than make the model of the shirt or pants or both you want them to buy or a decal is fine, Than put a ClickDetector in and script, There is a In-Game Purchase script you can use to buy clothes, It would go like this:

local cleanSweepId = 109592995


script.Parent.ClickDetector.MouseClick:connect(function(player)
    game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId)
end)


I suggest you make the shirt or pants you want to sell than add a buy sign in front of it and where people click to buy, Put a Click Detector and a script not a local script and put this in, Change the cleanSweepId to the ID of your Shirts/Pants/Gears, If you want a Gui than :D


local screenGui = Instance.new("ScreenGui") -- Create the screenGui that holds it. screenGui.Parent = script.Parent local textButton = Instance.new("TextButton") -- Create a textLabel (Text) that is a button you can click textButton.Parent = screenGui textButton.Position = UDim2.new(0, 25, 0, 50) textButton.Size = UDim2.new(0, 150, 0, 50) textButton.BackgroundColor3 = BrickColor.White().Color textButton.Text = "Click Me!" textButton.MouseButton1Down:connect(function() local cleanSweepId = 109592995 script.Parent.ClickDetector.MouseClick:connect(function(player) game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId) end) end)

Welp like I said I am a beginner but I hope I helped you, You look like you can build a cool store :D

0
@spiderman90438 Thanks! I have a question though. Do I keep copying and pasting this over and over, but still changing the asset id of the Shirts/Pants/Gears? xBriannaBear 0 — 7y
0
You basically copy and paste it in whatever part you are wanting them to click to buy and change the asset ID, Tip, If you put in a Shirts or pants ID and it doesn't work, Subtract the number. Ex: 10041515 - Subtract - 10041514, I subtracted the last number from 5 to 4, Please click answered next to my answer, I am on a journey to gain back rep points :D spiderman90438 17 — 7y
Ad

Answer this question