hello i have a zombie survival game and i want to make after the zombies die a gui to pop up put it doesnt can anyone send me my script but fixed?
script: while wait(1) do if workspace.Zombie:FindFirstChild("LowerTorso") then print("zombies still here") else game.StarterGui.Win.Frame.Visible = true end end
Thanks
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
my script is normal not local and its on workspace
not worked the gui dont pop up unless i die/respawn