So I'm trying to get it so that when the player clicks a gui than a model in the workspace will have the CastShadow property turned off in all its children.
this is a localscript I have in StarterCharacterScripts:
local Options = game.ReplicatedStorage.Options
Options.Stage1.Option1.OnClientEvent:Connect(function()
for i,v in pairs(game.Workspace.Containment:GetChildren()) do
v.CastShadow = false
end
end)
and then in the textbox gui I have this localscript
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Options.Stage1.Option1:FireAllClients()
end)
So I click the gui, nothing happens ????
...
plz help
