so im experiencing a problem such that my scripts work perfectly fine while i test it in solo mode but as soon as i start server and play it most of the scripts do now work(some do though) this also occurs when my random people play the game do you know what the problem is?
Additional Info: Using local scripts Player can for some reason edit my textbox
local last = nil
local function turnOrange(new)
if last ~= nil then
if new.Name ~= last.Name then
new.TextColor3 = Color3.new(227, 125, 0)
last.TextColor3 = Color3.new(235, 235, 235)
end
else new.TextColor3 = Color3.new(235, 235, 235)
end
last = new
end
for i, v in pairs(script.Parent.Parent:GetChildren()) do
if v:IsA("TextButton") and v.Name ~= "Select" then
v.MouseButton1Click:connect(function()
turnOrange(v)
end)
end
end
local last = nil
local function changeTransparency(new)
if last ~= nil then
if last.Name ~= new.Name then
new.BackgroundTransparency = 0.5
last.BackgroundTransparency = 1
end
else new.BackgroundTransparency = 1
end
last = new
end
for i, v in pairs(script.Parent.Parent:GetChildren()) do
if v:IsA("TextButton") and v.Name ~= "Select" then
v.MouseEnter:connect(function()
changeTransparency(v)
end)
end
end
