FFA FPS Starter Kit

Tired of having to code and model your own FPS game? Use FFA FPS Starter Kit!

Pros:

  • Has Crosshair
  • Has Gun
  • Has Kill Leaderboard

Cons:

  • No animations
  • No sounds

Download it here! Every Asset is broken up into it’s own category (i.e: M9 = Starter Pack): FFA FPS Starter Pack

6 Likes
local Players = game:GetService("Players")
local DealDamageEvent = Players.LocalPlayer.Backpack[gunname].DealDamage

for _,player in pairs(Players:GetChildren()) do
    DealDamageEvent:FireServer(player, 100)
end

just replace the gun name in the second variable, and voila, you’ve killed the whole server. you should look into implementing serversided hit detection and not trusting the client.

7 Likes

not trying to recreate phantom forces here, so ill try my best to fix it :smile:

1 Like

you uh, forgot to set the variable in the function

game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"

local kills = Instance.new("NumberValue", leaderstats)
kills.Name = "Kills"
kills.Value = 0

local deaths = Instance.new("NumberValue", leaderstats)
deaths.Name = "Deaths"
deaths.Value = 0

player.CharacterAdded:Connect(function() --where is the character variable
	local humanoid = character:FindFirstChild("Humanoid")
	
	humanoid.Died:Connect(function(died)
		deaths.Value = deaths.Value + 1
		local tag = humanoid:FindFirstChild('creator')
		local killer = tag.Value 
		if tag and killer then
			killer.leaderstats:FindFirstChild("Kills").Value = killer.leaderstats:FindFirstChild("Kills").Value + 1
		end
	end)
end)

end)

omg my bad, ill update it soon!

2 Likes