Right now I'm trying to make a script that checks if your kills is above 10 then it'll replicate the sword.
But at the moment, even if your kills are above 10 it'll still display the "Bloodlust is weak" text. It's a server script.
If I can't use a if statement to check their kills, how would I check their kills and make sure they have more than the required kills to give the sword?
Players = game:GetService("Players")
click = script.Parent
RS = game.ReplicatedStorage
waittime = 3
Players.PlayerAdded:Connect(function(player)
repeat
wait()
until
player.Character
text = player.PlayerGui.ShowKills.DisplayText.Text1
showkills = player.PlayerGui.ShowKills.DisplayText
local kills = player.leaderstats.Kills
click.MouseClick:Connect(function()
if kills.Value >= 10 then
text.Text = "You have evolved.."
showkills.Visible = true
wait(waittime)
showkills.Visible = false
else
text.Text = "Your bloodlust is weak."
showkills.Visible = true
wait(waittime)
showkills.Visible = false
end
end)
end)

1 comment
Still didn't work and still displays the "Bloodlust is weak" text. I updated the thread with the full code incase i messed up something.