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.
01 | local Core = script.Parent |
02 | local Charles = Core.Charles |
03 | local Fern = Core.Fernando |
04 | local Step = Core.Stephanie |
05 | local Wendy = Core.Wendy |
08 | Wendy.Head.WendyTalk.InUse = true |
11 | Step.Head.StephanieTalk.DialogChoiceSelected:connect( function (player,choice) |
12 | Step.Head.StephanieTalk.Tone = "Enemy" |
13 | if choice.Name = = "ContinueLoser" then |
14 | Wendy.Head.WendyTalk.InUse = false |
15 | elseif choice.Name = = "FightBack" then |
16 | player.Character.Humanoid.Health = player.Character.Humanoid.Health - 10 |
20 | Wendy.Head.WendyTalk.DialogChoiceSelected:connect( function (player,choice) |
21 | Wendy.Head.WendyTalk.Tone = "Enemy" |
24 | Charles.Head.CharlesTalk.DialogChoiceSelected:connect( function (player,choice) |
25 | Charles.Head.CharlesTalk.Tone = "Friendly" |
28 | Fern.Head.FernandoTalk.DialogChoiceSelected:connect( function (player,choice) |
29 | if choice.Name = = "Agree" then |
30 | Fern.Head.FernandoTalk.Tone = "Friendly" |
31 | elseif choice.Name = = "Disagree" then |
32 | Fern.Head.FernandoTalk.Tone = "Enemy" |
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.