Roblox scripting dialog change color script
up vote
0
down vote
favorite
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.
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)
lua roblox
add a comment |
up vote
0
down vote
favorite
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.
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)
lua roblox
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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.
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)
lua roblox
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.
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)
lua roblox
lua roblox
asked Nov 9 at 22:50
Jonathan J. Pecany
287
287
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234269%2froblox-scripting-dialog-change-color-script%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown