It's a 1 man server this script is a server script and i'm trying to destroy the players gui which is "wave" Why isn't this working?
game.Players:FindFirstChildOfClass("Player").PlayerGui.Wave:Destroy()
It's a 1 man server this script is a server script and i'm trying to destroy the players gui which is "wave" Why isn't this working?
game.Players:FindFirstChildOfClass("Player").PlayerGui.Wave:Destroy()
Try this. It should work.
for i,v in pairs(game.Players:GetPlayers()) do
local PlayerGui = v.PlayerGui
PlayerGui.Wave:Destroy()
end
Hello! You could try this:
game.Players:GetChildren().PlayerGui.Wave:Destroy()
hope it helps!
Sorry it didn't work
Try this:
game.Players.LocalPlayer.PlayerGui.Wave:Destroy()
As he stated, it's in a Server Script. You cannot get the local player inside of a Server Script. So this would not work.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thx ill try it
Thx ill try it