How to fix part not changing transparency to 0 even conditions are successfully met?
Hello there, I have both LocalScripts and a server script here where if the TextLabel changes to 0, the LocalScript fires a RemoteEvent called DisasterEvent of which will then result to a part changing it's transparency to 0 for every players, not just the player, however it does not seem to work after what I did, how do I fix this?
04 | local RS = game:GetService( "ReplicatedStorage" ) |
05 | local DisasterEvent = RS.DisasterEvent |
06 | local TimerEvent = RS.TimerRemote |
08 | local Timer = script.Parent |
10 | local function trigger() |
11 | DisasterEvent:FireServer() |
14 | if Timer.Text = = "0" then |
16 | DisasterEvent:FireServer() |
Here is the Server Script:
03 | local RS = game:GetService( 'ReplicatedStorage' ) |
04 | local DisasterEvent = RS.DisasterEvent |
05 | local part = game.Workspace.Grass |
07 | DisasterEvent.OnServerEvent:Connect( function (pleaseworkalreadybroivehadenough) |
09 | DisasterEvent:FireClient() |