Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Remote event in replicated storage not running?

Asked by 3 years ago

This question has been solved by the original poster.

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

1 answer

Log in to vote
0
Answered by 3 years ago

Nevermind got it working :)

Ad

Answer this question