OK So on line 69 I am having a problem with calling the Gui fro StarterGui. No matter what I do it will not make the Gui appear when the countdown is over.
Currently on line 69 I have game.StarterGui.Waves.Waves.Enabled = true I have also tried game.StarterGui.Waves.Waves.Frame.Visible = true amongst other calls to try to get it to show up.
I am thinking this is because it is not pointing toward the PlayerGui and instead is pointing to the Gui located in the StarterGui, However I have no idea how I to point it to a player without it being a local script. Can soeone help me revise this so it will show the Gui in this server script. Thanks in advance, any help is appreciated
game.ServerScriptService["Wave1 - PathFind"].ZombieScript.Disabled = false
game.ServerScriptService["Wave1 - PathFind"].ZombieScript1.Disabled = false
game.ServerScriptService["Wave1 - PathFind"].ZombieScript1d3.Disabled = false
disasters = {"Wave0"} -- This is where you list the names models that you want to use for disasters.
-- Disaster names are case-sensitive and all disaster models must be in the lighting
countdownTime = 5 -- The ammount of time to wait between each disaster.
countdownMessage = "You have %s to prepare." -- The message displayed between disasters. %s will be replaced with the number of seconds left.
disasterMessage = "Wave 1" -- The message displayed when a disaster occurs. %s will be replaced with the disaster name. Set to nil if you do not want a message
-- Unless you know what you are doing, please leave the below code alone.
items = {}
local w = game.Workspace:getChildren()
for i=1, #disasters do
local item = game.ReplicatedStorage.Wave1:findFirstChild(disasters[i])
if item ~= nil then
item.Parent = nil
table.insert(items, item)
else
print("Error! ", disasters[i], " was not found!")
end
end
function chooseDisaster()
return items[1]
end
function sethint(text)
local hint = game.Workspace:findFirstChild("hint")
if (hint ~= nil) then
hint.Text = text
else
print("Hint does not exist, creating...")
local h = Instance.new("Hint")
h.Name = "hint"
h.Text = text
h.Parent = game.Workspace
end
--print("Hint set to: ", text)
end
function removeHint()
local hint = game.Workspace:findFirstChild("hint")
if (hint ~= nil) then hint:remove() end
end
function countdown(time)
sethint(string.format(countdownMessage, tostring(time)))
while (time > 0) do
wait(1)
time = time - 1
sethint(string.format(countdownMessage, tostring(time)))
end
removeHint()
return true
end
while true do
countdown(countdownTime)
local m = chooseDisaster():clone()
print("This is working")
game.StarterGui.Waves.Waves.Enabled = true
print("This is working 2")
wait(3)
print("This is working 3")
local m = chooseDisaster():clone()
m.Parent = game.Workspace
m:makeJoints()
break
end

2 comments
Hey, Thanks for the advice. I am new to Game development and working in studio, only been around about 8 months now. I am learning something new everyday so thank you, I appreciate the help
No worries, if you want more learning, add me on ROBLOX, and then ask me doubts. I'm into ROBLOX since quite a while, and know some more dev languages.