REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 16 Nov 2013 06:40 PM |
debounce = true function ontouch (part) h = part.Parent:findFirstChild("Humanoid") if h ~= nil then if debounce == true then debounce = false game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.9 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.8 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.7 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.6 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.5 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.4 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.3 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.2 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0.1 wati(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Phrase.TextTransparency = 0 wait(0.1) game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.Yes.Visible = true game.Players[part.Parent.Name].PlayerGui.Conversation.Frame.No.Visible = true debounce = true end end end
script.Parent.Touched:connect(ontouch)
Everything works except the Yes and No button not being visible |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
|
| 16 Nov 2013 06:48 PM |
Ever heard of variables? Frame = game.Players[part.Parent.Name].PlayerGui.Conversation.Frame
Put that at the beginning and swap them all out, Then i`ll read it. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
lama321
|
  |
| Joined: 18 Dec 2011 |
| Total Posts: 300 |
|
|
| 16 Nov 2013 06:57 PM |
to get this straight, you want the yes and no buttons to be visible? any error message? (by the way, more people will likely post responses if you shorten the length through a for loop and variables) |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 16 Nov 2013 07:02 PM |
| Yes and there are no output messages :/ |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 16 Nov 2013 07:10 PM |
| it worked when I put those 2 lines in a separate script in the same brick....how? |
|
|
| Report Abuse |
|
|