of     1   

Quill
#533201Thursday, February 28, 2008 4:08 AM GMT

message script working, BUT the last message won't go away. it just stays there until i leave. help? (script below lines) __________________________________________________________________ local debounce = false function onHit(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) and debounce == false then debounce = true local message = Instance.new("Message") message.Text = "Figure" message.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) message.Text = "Creator: Quill" debounce = false end end script.Parent.Touched:connect(onHit)
fluffy2007
#533216Thursday, February 28, 2008 4:22 AM GMT

function onHit(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) and debounce == false then debounce = true local message = Instance.new("Message") message.Text = "Figure" message.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) message.Text = "Creator: Quill" message:Remove() debounce = false end end script.Parent.Touched:connect(onHit)
Quill
#533235Thursday, February 28, 2008 4:33 AM GMT

now it dosn't work at all...
fluffy2007
#533245Thursday, February 28, 2008 4:38 AM GMT

Ops, forgot the debounce.. __________________________________________________________________________ local debounce = false function onHit(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) and debounce == false then debounce = true local message = Instance.new("Message") message.Text = "Figure" message.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) message.Text = "Creator: Quill" message:remove() debounce = false end end script.Parent.Touched:connect(onHit)
GameGeek4Life
#534114Thursday, February 28, 2008 7:52 PM GMT

To Smart.
DingDong272
Top 100 Poster
#534377Thursday, February 28, 2008 9:16 PM GMT

Nope! You need a wait before the :remove() local debounce = false function onHit(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) and debounce == false then debounce = true local message = Instance.new("Message") message.Text = "Figure" message.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) message.Text = "Creator: Quill" wait(5) message:remove() debounce = false end end script.Parent.Touched:connect(onHit)

    of     1