function dah()
local msg = Instance.new("Hint")
msg.Parent = game.Workspace
for m = 300,1,-1 do
wait(1)
msg.Text = "The Zombie Swarm is coming in :".. m .." seconds!"
msg:Destroy()
end
end
In this you have the msg:Destroy() in the loop, therefore each time it loops your deleting the message. Move it to after the loop like so
function dah()
local msg = Instance.new("Hint")
msg.Parent = game.Workspace
for m = 300,1,-1 do
wait(1)
msg.Text = "The Zombie Swarm is coming in :".. m .." seconds!"
end
msg:Destroy()
end
That will cause the message to be removed after the loop has finished.
function zombieinsert()
zombies = game.Lighting.Zombies:Clone()
zombies.Parent = game.Workspace
zombies:makejoints()
local hint = Instance.new('Hint', Workspace)
hint.Text = "Destory the zombie swarm for possibly 100's of Cash you have 1.5 mintues to survive and get the most cash!"
wait(90) hint:Destroy()
zombies:Destroy()
end
In this section, zombies:makejoints() should be zombies:MakeJoints(), capitals do matter on a lot. When creating the hint in this section, you are using a ' instead of ". Also the variable zombies should be local unless you are planning on using it later on if a different section of the script. Try something like this.
function zombieinsert()
local zombies = game.Lighting.Zombies:Clone()
zombies.Parent = game.Workspace
zombies:MakeJoints()
local hint = Instance.new("Hint")
hint.Parent = game.Workspace
hint.Text = "Destory the zombie swarm for possibly 100's of Cash you have 1.5 mintues to survive and get the most cash!"
wait(90)
hint:Destroy()
zombies:Destroy()
end |