Simply, instead of checking if the LowerTorso is still in workspace, check if the actual Zombie is still there.
while wait(1) do
for i,v in pairs(game.Players:GetPlayers()) do
if workspace:FindFirstChild("Zombie") then
print("Zombies are still alive")
else
print("Wave Defeated!")
v.PlayerGui.Win.Frame.Visible = true
end
end
end
You pretty much do this, but add a RemoteEvent. I'm not going to script your whole script though. Here is a really good tutorial of RemoteEvents.
https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events
I would do some of your RemoteEvent but I don't know where your scripts are, I need more details.
Hope this helped, if it did. Click the Answer button as it'd be greatly appreciated :D
8 comments
All Zombies Are Named Zombie
this doesn't send me anywhere, also why is it 'pastebin', have you copied this code?
I honestly don't know what to say about this. You have a perfectly fine text editor here that is designed to handle lua code, and you instead post the code on pastebin and then post the url here? Also, you literally asked us to turn your 2 line script into something usable without giving us any other information.
my code: while wait(1) do if workspace.Zombie:FindFirstChild("LowerTorso") then print("zombies still here") else game.StarterGui.Win.Frame.Visible = true end end
-1 for saying "can anyone send me my script but fixed?".
epic!11!11!!
So you got one step closer, now actually use the lua code block... How difficult is this for you to follow simple rules?
You need to post where the Zombies die.