Okay so, the video explains it all.
Basically, some “Frames” go invisible, some disappear for a second, ect.
Script inside each frame. / Server Script
script.Parent.ClickDetector.MouseClick:Connect(function(player)
game.ReplicatedStorage.FrameLocated:FireAllClients(player.Name)
game.ReplicatedStorage.FrameStats.Visible.Value = true
player.FrameInfo.FramesInv.Value = player.FrameInfo.FramesInv.Value + 1
game.ReplicatedStorage.FrameStats.FramesTaken.Value = game.ReplicatedStorage.FrameStats.FramesTaken.Value + 1
script.Parent:Destroy()
end)
Script inside of ServerScriptService.
game.ReplicatedStorage.FrameStats.Visible:GetPropertyChangedSignal("Value"):Connect(function()
if game.ReplicatedStorage.FrameStats.Visible.Value == true then
for i,v in pairs(game.Workspace.Frames:GetChildren()) do
print(v.Name)
v.Transparency = 1
v:WaitForChild("SurfaceGui").Enabled = false
wait(3)
v.Transparency = 0
v:WaitForChild("SurfaceGui").Enabled = true
game.ReplicatedStorage.FrameStats.Visible.Value = false
end
end
end)
Thank you.