|
| 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 |
|
|
| 05 Feb 2016 10:07 AM |
| If that helps, this is a local script put into starter scripts |
|
|
| Report Abuse |
|
|
| 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 |
|