Help with string

Hi,

Im making a string.

Print("DID YOU JUST CALL ME A NOOB? Well lets see how many deaths you caused this server...Hmmmm (insert) eh? Well lets add one more to that. GOODBYE...NOOB! HA HA HA HA!")

so where it says insert how do I make it show how many deaths you have?

From,
File

You have to store an IntValue into your player instance and make it increase everytime a player dies. An example would be this

game:GetService("Players").PlayerAdded:Connect(function(player)
	local deaths = Instance.new("IntValue")
	deaths.Name = "Deaths"
	deaths.Parent = player
	
	plr.CharacterAdded:Connect(function(char)
		local hum = char:WaitForChild("Humanoid")
		hum.Died:Connect(function()
			deaths.Value += 1
		end)
	end)
end)

For player sthat join, create an IntValue in their player instance to store the deaths, and when they die, add 1 to the value

And then when you need to print something, reference taht value

Print("DID YOU JUST CALL ME A NOOB? Well lets see how many deaths you caused this server...Hmmmm"..the amount_of_deaths.." eh? Well lets add one more to that. GOODBYE...NOOB! HA HA HA HA!")

I think I understand. I may need to go through a lot of trial and error. Hahahahaha,

1 Like