Where should I work on in my simulator?

My new game is in progress and I want to know where I should start. I think critical components like map and scripts should be done first.

What has been completed so far
  • Chat tags for contributors
  • Main scripts for the game (leaderstats and things)

If you think these scripts can be made better, send a reply with the better code.

JumpAdder in ServerScriptService
Jumping = false

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local humanoid = character:WaitForChild("Humanoid")

		if humanoid then
			humanoid.Changed:Connect(function()
				if humanoid.Jump and not Jumping then
					Jumping = true
					player.leaderstats.Jumps.Value += 1
				end
			end)

			humanoid.FreeFalling:Connect(function()
				if Jumping then
					Jumping = false
				end
			end)
		end
	end)
end)
JumpStats in ServerScriptService
local service = game:GetService("DataStoreService")
local datastore = service:GetDataStore("JumpsData")

game.Players.PlayerAdded:Connect(function(plr)
	local leaderstats = Instance.new("Folder", plr)
	leaderstats.Name = "leaderstats"
	
	local stat = Instance.new("IntValue", leaderstats)
	stat.Name = "Jumps"
	
	local data
	local success, errorMessage = pcall(function()
		data = datastore:GetAsync(plr.UserId.."-jumps")
	end)
	
	if success then
		stat.Value = data
	else
		warn(errorMessage)
	end
end)

game.Players.PlayerRemoving:Connect(function(plr)
	local success, errorMessage = pcall(function()
		datastore:SetAsync(plr.UserId.."-jumps", plr.leaderstats.Jumps.Value) 
	end)
	
	if not success then
		warn(errorMessage)
	end
end)
Chat tag for lead developer
local ServerScriptService = game:GetService("ServerScriptService")
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local Players = game:GetService("Players")

local users = {"thatguylikepizza"}

ChatService.SpeakerAdded:Connect(function(PlrName)
	local Speaker = ChatService:GetSpeaker(PlrName)
	for _, v in pairs(users) do
		if Players[PlrName].Name == v then
			Speaker:SetExtraData('Tags', {{TagText = "Lead Developer", TagColor = Color3.fromRGB(20, 55, 255)}})
		end
	end
end)



What should I work on first?
  • The scripts
  • Maps & builds
  • GUIs
  • GFX for icon and thumbnails

0 voters

1 Like