Anyway there was a problem that happened when making a killstreak tool
Basically I'm making a tool called: "Death Scythe" that does 20 damage, also If the scythe hits someone with 20 HP or below (I haven't added the feature that causes the event when the HP Is below 20 or something) the head will be deleted by the user, and gets a kill, which makes them stronger, the problem Is that It doesn't give kills when It kills a user
Damage script (Under the slash script):
local KillStreakGUI = script.Parent.Parent["Killstreak GUI"]
local GetKillReady = script.Parent.GetReadyForKill
Handle.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid:TakeDamage(20)
if humanoid.Health == 20 then
humanoid.Parent.Head:Destroy()
KillStreakGUI.Value.Value = KillStreakGUI.Value.Value +1
GetKillReady:FireClient()
end
end
end)
Local script (Get ready for getting a kill):
local GetKillEvent = script.Parent.Parent.GetKill
local GetKillReady = script.Parent.GetReadyForKill
GetKillReady.OnClientEvent:Connect(function()
GetKillReady:FireServer()
end)
Add kill script (Server script):
local KillStreakGUI = script.Parent["Killstreak GUI"]
local GetKill = script.Parent.GetKill
GetKill.OnServerEvent:Connect(function()
KillStreakGUI.TextLabel = KillStreakGUI.Value.Value +1
end)

3 comments
Thanks!
But I was more of recreating a slap battles glove, which Is killstreak, but thanks tho
oh well good luck im sorry i could not help