Sorry, what I meant is that in the Module Script (which should be in Replicated Storage) there are variables to change the looks and UI of the responses. And the beginning of your post you stated that you already have the UI ready, So I’m assuming you want to change the look of the current UI. You can do that by going into the module script (names DialogModule) and changing the values.
It appears that for loop controls the UI that the player uses to respond back (line 137):
for i, response in ipairs(dialog.responses) do
local option = uiResponses[i]
option.text.Text = "<font color='rgb(255,220,127)'>" .. i .. ".)</font> [''" .. response .. "'']"
-- calculate x size
local plaintext = i..".) [''"..response:gsub("%b<>", "").."'']"
option.Size = UDim2.fromScale(option.Size.X.Scale,.4)
option.text.Position = UDim2.new(0.02,0,0.5,0)
option.Visible = true
tweenService:Create(option,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Size = UDim2.new(option.Size.X.Scale,0,0.35,0)}):Play()
local enterCon = option.MouseEnter:Connect(function()
tweenService:Create(option,TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Size = UDim2.new(option.Size.X.Scale + (option.Size.X.Scale * .05), 0,0.4,0)}):Play()
tweenService:Create(option.text,TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Position = UDim2.new(0.06,0,0.5,0)}):Play()
END_TICK_SOUND:Play()
end)
local leaveCon = option.MouseLeave:Connect(function()
tweenService:Create(option,TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Size = UDim2.new(option.Size.X.Scale, 0,0.35,0)}):Play()
tweenService:Create(option.text,TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Position = UDim2.new(0.02,0,0.5,0)}):Play()
end)
This segment controls the color, size, position, animation (tween) of the options.
After local enterCon
is where the script controls what happens when the user hovers over the option, playing a sound, and making the option slightly larger.
With this script you can design your own UI, referring back to what I said earlier, I was asking you if you updated this script for your own design, or if you added UI elements via the explorer.