So I've put this script inside StarterPlayer>StarterCharacterScripts. ( It's a LocalScript )

local Player = game.Players.LocalPlayer
local money = Player:FindFirstChild('leaderstats'):FindFirstChild('Money')
local job = Player:FindFirstChild('leaderstats'):FindFirstChild('Job')

Player.PlayerAdded:connect(function()
	if money.Value == 50 then
		job.Value = 'Plumber'
	else
		if money.Value == 82 then
			job.Value = 'Waiter'
		else
			if money.Value == 114 then
				job.Value = 'Manager'
			else
				if money.Value == 121 then
					job.Value = 'Store Owner'
				else
					if money.Value == 134 then
						job.Value = 'Programmer'
					else
						if money.Value == 154 then
							job.Value = 'Pet Store Employee'
						else
							if money.Value == 171 then
								job.Value = 'Pet Store Owner'
							else
								if money.Value == 185 then
									job.Value = 'Engineer'
								else
									if money.Value == 198 then
										job.Value = 'Teacher'
									else
										if money.Value == 234 then
											job.Value = 'P.O.D'
										else
											if money.Value == 256 then
												job.Value = 'Vice Principal'
											else
												if money.Value == 278 then
													job.Value = 'Principal'
												else
													if money.Value == 298 then
														job.Value = 'Boss'
													else
														if money.Value == 314 then
															job.Value = 'Vice Company Owner'
														else
															if money.Value == 330 then
																job.Value = 'Company Owner'
															else
																if money.Value == 352 then
																	job.Value = 'Municipal'
																else
																	if money.Value == 364 then
																		job.Value = 'Governer'
																	else
																		if money.Value == 381 then
																			job.Value = 'Politician'
																		else
																			if money.Value == 400 then
																				job.Value = 'Police'
																			else
																				if money.Value == 410 then
																					job.Value = 'Sheriff'
																				else
																					if money.Value == 420 then
																						job.Value = 'Sherlock'
																					else
																						if money.Value == 435 then
																							job.Value = 'Vice President'
																						else
																							if money.Value == 600 then
																								job.Value = 'President'
																							end
																						end
																					end
																				end
																			end
																		end
																	end
																	
																end
															end
														end
													end
													
												end
											end
										end
									end
								end
							end
						end
					end
				end
			end
		end
	end
end)

Job is a string value. Money is an IntValue, Room cannot fit this script, D: , But if someone can answer me I would greatly appreciate it, It's for my Job simulator game

2 comments

0

Try using a remote event and firing it when the clients money equals a specific amount and change the leaderstats on the server

0

What do you mean? On each line, I clearly don't understand just take a part of the script and use it in what you ment.