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 » Club Houses » ROBLOX Talk
Home Search
 

"Disconnected event because of exception"

Previous Thread :: Next Thread 
Sinakkro is not online. 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 is not online. Sinakkro
Joined: 17 Oct 2011
Total Posts: 490
13 Jun 2012 05:13 PM
Halp. 3:

~ Siggies are too mainstream. ~
Report Abuse
nobbers12345 is not online. nobbers12345
Joined: 06 Feb 2011
Total Posts: 4425
13 Jun 2012 05:14 PM
Can you explain what exactly this does.
Report Abuse
Sinakkro is not online. 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
butimstillalive is not online. butimstillalive
Joined: 23 Mar 2011
Total Posts: 851
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • 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