|
| 20 Apr 2014 09:40 PM |
How can I make it so it says the message when the zombie dies. (Note: When the zombie dies, he gets deleted. It's in his script)
if game.Workspace:FindFirstChild("Zombie").Humanoid.Health < 1 then msg.instance("Message",workspace) msg.Text = "Josh on mic: Nice job killing that zombie." wait(2) msg:Destroy() |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Apr 2014 09:48 PM |
while wait()do if game.Workspace.Zombie.Humanoid.Health == 0 then msg = Instance.new ("Message",game.Workspace) msg.text = "Josh the mic: zombie is dead. nicee!" wait(4) msg:remove() end
note: keep a model named "Zombie" wit humanoid in workspace always
I got pecked by TWO chicken's! |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 09:50 PM |
game.Workspace.Zombie.Humanoid.Died:connect(function() Instance.new('Message',Workspace).Text = "Josh the mic: zombie is dead. nicee!" wait(4) Workspace.Message:destroy() end)
i'm asian |
|
|
| Report Abuse |
|
|
|
| 20 Apr 2014 10:44 PM |
Workspace.Zombie.Humanoid.Died:connect(function() m = Instance.new('Message',Workspace) m.Text = "Josh the mic: zombie is dead. nicee!" game.Debris:AddItem(m,4) end) |
|
|
| Report Abuse |
|
|