Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

?Player Death when there leaderstat death value is the number of the textbox someone enters

Asked by 6 years ago
if script.Parent.Parent.Parent.Parent.Parent.TeamColor == BrickColor.new("Medium stone grey") then
        if  script.Parent.Text == script.Parent.Parent.Parent.Parent.Parent.leaderstats.Deaths.Value then
        script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
    end
    print("Lobby")
end

if script.Parent.Parent.Parent.Parent.Parent.TeamColor == BrickColor.new("Bright blue") then
    print("bb")
end

if script.Parent.Parent.Parent.Parent.Parent.TeamColor == BrickColor.new("Bright red") then
    if script.Parent.Parent.Parent.Parent.Parent.leaderstats.Deaths.Value == script.Parent.Text then
        script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
    end
    print("br")
end


There is a textbox where you can write the number of deaths they need to be dead

https://gyazo.com/56ff052d1334a3eedaf863c4fb8c8851

1 answer

Log in to vote
0
Answered by 6 years ago

Never mind figured out, i just thought too hard.

Ad

Answer this question