Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Roblox scripting dialog change color script?

Asked by 6 years ago
Edited 4 years ago

How can I change a dialog color in scripting in roblox studio because it works on my client/local (Also known as running the game through roblox studio) but not through the game it self.

01local Core = script.Parent
02local Charles = Core.Charles
03local Fern = Core.Fernando
04local Step = Core.Stephanie
05local Wendy = Core.Wendy
06 
07function onStart()
08Wendy.Head.WendyTalk.InUse = true
09end
10 
11Step.Head.StephanieTalk.DialogChoiceSelected:connect(function(player,choice)
12Step.Head.StephanieTalk.Tone = "Enemy"
13if choice.Name == "ContinueLoser" then
14    Wendy.Head.WendyTalk.InUse = false
15elseif choice.Name == "FightBack" then
View all 34 lines...

I also know this is a correct code as well, just wanted to post it here just in case because I've tried localscript and a script and it only works on the test play in the Roblox studio program so I mainly need help with suggestions and ideas of how to make it work on Roblox itself than just the Roblox studio program because I've tried searching the web for help but the only help was how to create dialogs when ever I already know how.

Update I do not need help on this anymore, I'll leave my answer below.

0
use code block pls green271 635 — 6y
0
Sorry...I was in a rush to do so...i'll do it now. jonathanpecany100 0 — 6y

1 answer

Log in to vote
0
Answered by 4 years ago

I answered my own question about a year ago about a day or two after asking this on this website, but I accomplish this by putting it inside a local script. As I had it in a script and the dialog runs on the client side so thereby making it a localscript.

Tip for Helpers: As I seen from a lot of people who comments on my questions, the first thing they should ask if there question is something that could be from the client would be if there code is in a server script or client script. Just don't ask for a code yet at posting the code would most likely be pointless.

Ad

Answer this question