|
| 23 Dec 2011 09:04 AM |
I don't get it. Its supposed to show a hint to only one person, and thats the person who touches a button to show the hint. Here it is:
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("Hint") message.Text = "..." message.Parent = game.Players:playerFromCharacter(hit.Parent) wait(3) message:remove() message.Text = "..." wait(3) message:remove()
debounce = false end end
script.Parent.Touched:connect(onHit)
Help, I want it to work! And only show to the person who is touching the button to function it. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 23 Dec 2011 09:19 AM |
line three.
local human = hit.Parent:FindFirstChild("Humanoid") |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2011 09:20 AM |
| I dont know, Ive never done that script... |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2011 09:21 AM |
| And you also have to put it in a brick. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2011 09:22 AM |
| I did put it in a brick, but it still doesn't work. And the F is not capitalized |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2011 09:22 AM |
lines 10, 11, 12
message:remove() wait(3) message.Text = "..." --Put your message here wait(3) |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2011 09:23 AM |
| Well, I've never done this hint script. I think I am putting these right. I DONT KNOW |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2011 09:27 AM |
This is what it is right now. But it still doesn't work:
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("Hint") message.Parent = game.Players:playerFromCharacter(hit.Parent) message.Text = "..." wait(3) message:remove() debounce = false end end
script.Parent.Touched:connect(onHit)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Dec 2011 09:36 AM |
| Well, I've never done this script and ask like one of your good scripter friends. Like the really good one. |
|
|
| Report Abuse |
|
|