|
| 29 Apr 2015 12:07 PM |
enabled = true function onHit(hit) local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil) and not enabled then return end enabled = false local user = game.Players:findFirstChild(hit.Parent.Name) if user ~= nil then
local message = script.Parent.Message:clone()
message.Text.Text = "Mhm, so we meet again!" --Text message.Parent = user.PlayerGui wait(5) --How long until it disappears. message:remove() wait (0.01) message.Text.Text = "Haha you get it! Now try to get out before time runs out!" --Text message.Parent = user.PlayerGui wait (6) if message ~= nil then message:remove() wait(10000000000000000) --How long until it is can be touched again. (unlimited) enabled = true else wait(10000000000000000) --How long until it is can be touched again. (unlimited) enabled = true end end end
script.Parent.Touched:connect(onHit)
The 1st message do dissapear, but the 2nd wont even appear. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 29 Apr 2015 12:26 PM |
| How about you learn to script, hmm? |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2015 12:30 PM |
| How about helping me cuz i suk at scripting? |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 29 Apr 2015 12:32 PM |
| How about you stop using free models and -learn- instead? |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2015 12:35 PM |
How about helping me fix this problem? Again. |
|
|
| Report Abuse |
|
|
pa00
|
  |
| Joined: 06 Jun 2010 |
| Total Posts: 451 |
|
|
| 29 Apr 2015 12:40 PM |
| You're trying to set the text of a message that is already removed. |
|
|
| Report Abuse |
|
|
| |
|