generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Hint Script Not Working

Previous Thread :: Next Thread 
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
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
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
23 Dec 2011 09:09 AM
bump Help!
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
23 Dec 2011 09:17 AM
bump. Halp!
Report Abuse
MrCrazyman42 is not online. MrCrazyman42
Joined: 01 Feb 2011
Total Posts: 740
23 Dec 2011 09:19 AM
line three.

local human = hit.Parent:FindFirstChild("Humanoid")
Report Abuse
MrCrazyman42 is not online. MrCrazyman42
Joined: 01 Feb 2011
Total Posts: 740
23 Dec 2011 09:20 AM
I dont know, Ive never done that script...
Report Abuse
MrCrazyman42 is not online. MrCrazyman42
Joined: 01 Feb 2011
Total Posts: 740
23 Dec 2011 09:21 AM
And you also have to put it in a brick.
Report Abuse
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
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
MrCrazyman42 is not online. MrCrazyman42
Joined: 01 Feb 2011
Total Posts: 740
23 Dec 2011 09:22 AM
lines 10, 11, 12

message:remove()
wait(3)
message.Text = "..." --Put your message here
wait(3)
Report Abuse
MrCrazyman42 is not online. MrCrazyman42
Joined: 01 Feb 2011
Total Posts: 740
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
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
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
1billybob1 is not online. 1billybob1
Joined: 15 Jun 2008
Total Posts: 4852
23 Dec 2011 09:31 AM
Anyone Help?
Report Abuse
MrCrazyman42 is not online. MrCrazyman42
Joined: 01 Feb 2011
Total Posts: 740
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image