Как я могу изменить цвет диалога в сценариях в roblox studio, потому что он работает на моем клиенте / локально (также известный как запуск игры через roblox studio), но не в самой игре.
local Core = script.Parent
local Charles = Core.Charles
local Fern = Core.Fernando
local Step = Core.Stephanie
local Wendy = Core.Wendy
function onStart()
Wendy.Head.WendyTalk.InUse = true
end
Step.Head.StephanieTalk.DialogChoiceSelected:connect(function(player,choice)
Step.Head.StephanieTalk.Tone = "Enemy"
if choice.Name == "ContinueLoser" then
Wendy.Head.WendyTalk.InUse = false
elseif choice.Name == "FightBack" then
player.Character.Humanoid.Health = player.Character.Humanoid.Health - 10
end
end)
Wendy.Head.WendyTalk.DialogChoiceSelected:connect(function(player,choice)
Wendy.Head.WendyTalk.Tone = "Enemy"
end)
Charles.Head.CharlesTalk.DialogChoiceSelected:connect(function(player,choice)
Charles.Head.CharlesTalk.Tone = "Friendly"
end)
Fern.Head.FernandoTalk.DialogChoiceSelected:connect(function(player,choice)
if choice.Name == "Agree" then
Fern.Head.FernandoTalk.Tone = "Friendly"
elseif choice.Name == "Disagree" then
Fern.Head.FernandoTalk.Tone = "Enemy"
end
end)