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

Classes and Custom player Models?

Hello All.

I am totally new to Roblox scripting and I am wondering about a couple of things. My project is to bring Insurgency and Squad to Roblox. My 1st question: I have all the clothes down pat but how would I add helmets and vests from the model library? My 2nd question: How would I have two teams with the same classes but different weapons? For example: The IR (Irregular Militia) has an AK47 as its main infantry rifle but on the Allied it they have an M16. The classes I wish to add are: Infantry, Combat engineer, Rocketeer, Machine gunner and Sniper.

1 answer

  1. Helmets and vests could be accessories. You can make custom accessories by using Attachments.

  1. Use the same exact code and UI, just create a table that maps the correct weapon name.Maybe like this:
local classes = {
	Infantry = {
		IR = "AK47",
		Allied = "M16"
	};
	...
}

1 comment

0

Where would I put the table and code?

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