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 » Scripters
Home Search
 

Re: Local dialogs, don't reset when ended

Previous Thread :: Next Thread 
piotrklosa is not online. piotrklosa
Joined: 08 Mar 2012
Total Posts: 8
05 Feb 2016 10:05 AM
Like in subject, here is my script:

--wiki stuff
local container = workspace:FindFirstChild("LocalBin")
if not container then
container = Instance.new("Camera")
container.Name = "LocalBin"
container.Parent = workspace
end
--"han" is a handle to make the NPC contain the dialog
local han = Instance.new("Part",container)
han.FormFactor = 3
han.Size = Vector3.new(0.1,0.99,0.1)
han.Anchored = false
han.Transparency = 0
han.CanCollide = false
--joining together head and handle
local wld = Instance.new("Weld",han)
wld.Part0 = han
wld.Part1 = workspace["Poor One"].Head
--making a dialog
local dia = Instance.new("Dialog",han)
--Checking wheter or not a player is a Guest
if game.Players.LocalPlayer.UserId < 0 then
dia.InitialPrompt = "Get out of here, Guest!!"
dia.Purpose = 0
dia.Tone = 2
else
dia.InitialPrompt = "Would you spare a ticket, sir?"
dia.Purpose = 1
dia.Tone = 1
dia.GoodbyeDialog = "Nah."
local dRX = Instance.new("DialogChoice",dia)
dRX.UserDialog = "I can give you 10 Robux."
dRX.ResponseDialog = "Thank you master!!!!"
local dTX = Instance.new("DialogChoice",dia)
dTX.UserDialog = "I can give you 10 Tickets."
dTX.ResponseDialog = "Thank you sir, I appreciate it."
--here I should add scripts handling the purchase
end


After starting a server in Studio I discovered that InUse property is still enabled, even after a minute. Does it mean that server side (where there aren't any dialog objects) have to respond to client, that the dialog has ended? How can I bypass that?
Report Abuse
piotrklosa is not online. piotrklosa
Joined: 08 Mar 2012
Total Posts: 8
05 Feb 2016 10:07 AM
If that helps, this is a local script put into starter scripts
Report Abuse
piotrklosa is not online. piotrklosa
Joined: 08 Mar 2012
Total Posts: 8
07 Feb 2016 08:15 AM
Oukey, no one responded (How sad 😢 ☹). I somehow managed to make that work properly. If someone will have the same problem, you can find solution here: http://www.roblox.com/item.aspx?id=360193962
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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