When i try to change a value of a stringvalue, it wont change? the rest of the script works fine, but i cant get it to change the value. do i have to use a bindable event???
Here is the script:
local value = script.Parent.Parent.Parent.NotificationCMDHelp.Notif.Location
local LB = script.Parent.L
local MB = script.Parent.M
local RB = script.Parent.R
local L = script.Parent.NotifSpotL
local M = script.Parent.NotifSpotM
local R = script.Parent.NotifSpotR
local Hover = script.Parent.Parent.Sounds.RootHover
local Select = script.Parent.Parent.Sounds.RootSelect
LB.MouseButton1Click:Connect(function()
if L.TextLabel.Visible == false then
L.TextLabel.Visible = true
L.Reason.Visible = true
Select:Play()
value = "BL"
M.TextLabel.Visible = false
M.Reason.Visible = false
R.TextLabel.Visible = false
R.Reason.Visible = false
end
end)
MB.MouseButton1Click:Connect(function()
if M.TextLabel.Visible == false then
M.TextLabel.Visible = true
M.Reason.Visible = true
Select:Play()
value = "M"
L.TextLabel.Visible = false
L.Reason.Visible = false
R.TextLabel.Visible = false
R.Reason.Visible = false
end
end)
RB.MouseButton1Click:Connect(function()
if R.TextLabel.Visible == false then
R.TextLabel.Visible = true
R.Reason.Visible = true
Select:Play()
value = "BR"
M.TextLabel.Visible = false
M.Reason.Visible = false
L.TextLabel.Visible = false
L.Reason.Visible = false
end
end)
Thanks