Alright so I have a LocalScript (in ServerScriptService) that’s supported to make a set of parts with text on them appear to a specific person, but the script just does not work. There are no errors that are thrown so I don’t really know why. The script runs when a RemoteEvent receives a Client triggered by an Admin Command. If you need me to elaborate more, just ask
Script:
function Run(arg)
if arg == "off" then
for i, v in pairs(workspace:GetChildren()) do if v.Name == "TableNum" then
v.Transparency = 1
v.SG.Enabled = false
end end
elseif arg == "on" then
for i, v in pairs(workspace:GetChildren()) do if v.Name == "TableNum" then
v.Transparency = 0
v.SG.Enabled = true
end end
end
end
game.ReplicatedStorage.Restaurant.TableCount.OnClientEvent:Connect(Run)