Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

scripts breaking when not using solo?

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

1 answer

Try pulling out the in-game output, press 'f9' while in the server and then see what it says on the server or client console, depending on which script-type you are using.

This discussion is preserved as it was. New answers, comments, and votes are closed.