Sinakkro
|
  |
| Joined: 17 Oct 2011 |
| Total Posts: 490 |
|
|
| 13 Jun 2012 05:08 PM |
This is my script.
local narrativelength = script.Parent.Lines local narrativetext = {"Haha", "How are you?", "I'm doing fine."} --Make as many lines of text in here as the Lines value.
function onTouched(part) if part.Parent:findFirstChild("Humanoid") == nil then return end if script.Parent:findFirstChild(part.Parent.Name) == nil then local tag = Instance.new("IntValue") tag.Name = part.Parent.Name tag.Parent = script.Parent local currentlinecreate = Instance.new("IntValue") currentlinecreate.Parent = script.Parent currentlinecreate.Name = part.Parent.Name.. "CurrentLine" local currentline = script.Parent:findFirstChild(part.Parent.Name.. "CurrentLine") local narrativegui = game.Players:findFirstChild(part.Parent.Name).PlayerGui.NarrativeGui.Narrative narrativegui.Visible = true currentline.Value = 1 while currentline.Value <= (narrativelength.Value + 1) do if currentline.Value == (narrativelength.Value + 1) then narrativegui.Visible = false narrativegui.Text = "" script.Parent:findFirstChild(part.Parent.Name.. "CurrentLine"):destroy() end narrativegui.Text = narrativetext[currentline.Value] currentline.Value = currentline.Value + 1 wait(3) --Wait time between each narrative. end end end
Anyway in other forums no one is helping me so I come here.
~ Siggies are too mainstream. ~ |
|
|
| Report Abuse |
|
|
Sinakkro
|
  |
| Joined: 17 Oct 2011 |
| Total Posts: 490 |
|
|
| 13 Jun 2012 05:13 PM |
Halp. 3:
~ Siggies are too mainstream. ~ |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2012 05:14 PM |
| Can you explain what exactly this does. |
|
|
| Report Abuse |
|
|
Sinakkro
|
  |
| Joined: 17 Oct 2011 |
| Total Posts: 490 |
|
|
| 13 Jun 2012 05:16 PM |
> Can you explain what exactly this does.
Its supposed to create a narrative that goes in a sequence on your GUI, going along each line of narration until it hits its max. After that, the script stops. A tag is set so the person can't initiate it again.
Its touch sensitive to a brick it is on, and it has a variable called "Lines" with the total number of lines of narration.
~ Siggies are too mainstream. ~ |
|
|
| Report Abuse |
|
|
|
| 13 Jun 2012 05:17 PM |
Sorry, I have no idea what scripting is (how to do it)
The pie is a spy! |
|
|
| Report Abuse |
|
|
ihaveamac
|
  |
| Joined: 27 Jan 2009 |
| Total Posts: 7511 |
|
|
| 13 Jun 2012 05:17 PM |
Give us the line it prints to the output.
- ihaveamac |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 13 Jun 2012 05:17 PM |
without looking at it closely, i'd say to make sure that the intValue is set to 3. I thought the disconnected events were orange output and didn't error though? What line is it on? |
|
|
| Report Abuse |
|
|
svl
|
  |
| Joined: 07 May 2009 |
| Total Posts: 56 |
|
|
| 13 Jun 2012 05:18 PM |
Are you sure that it is causing the server not to run for you?
Also, try going to Edit Mode>Tools>Test..>Play Solo, then once the player is in the game, tell us what the output says. |
|
|
| Report Abuse |
|
|
svl
|
  |
| Joined: 07 May 2009 |
| Total Posts: 56 |
|
|
| 13 Jun 2012 05:19 PM |
| Aw crap whoops I thought you meant the Failed to connect to game. :/ |
|
|
| Report Abuse |
|
|