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

In this script, how could I make the uniform changing process automatic?

Asked by 8 years ago

Hello, I've recently got into scripting, and have started dissecting free model scripts to try and learn as much as I can. I would like to know what part of this script is responsible for the player having to press a button to equip the uniform, and what parts I'd need to remove to make the player equip the uniform on spawn.

The group, pants and shirt IDs are all stored as IntValues, and the script works thus far:

01print("Loaded Uniform Script.")
02 
03repeat wait() until game.Players.LocalPlayer
04local Player = game.Players.LocalPlayer
05local Character = Player.Character
06 
07--Settings
08local ScreenGui = script.Parent
09local UniformButton = ScreenGui:WaitForChild("UniformButton")
10 
11local Settings = script.Parent:WaitForChild("Settings")
12local CertainTeam = Settings:WaitForChild("CertainTeam")
13local CertainTeamColour = CertainTeam:WaitForChild("TeamColor")
14 
15local UniformRanks = Settings:WaitForChild("UniformRanks")
View all 80 lines...

1 answer

Log in to vote
0
Answered by
cc567 50
8 years ago

Take a look at lines 40-53

Ad

Answer this question