if your game is filtering enabled then make a remote function in replicated storage name it transparent this script is for the local script in the gui
button.MouseButton1Click:Connect(function()
game.ReplicatedStorage.transparent:FireServer()
end)
put another script in server script service then add this
game.ReplicatedStorage.transparent.OnServerEvent:Connect(function(plr)
for i,v in pairs (game.Workspace:GetChildren()) do
if v:IsA("Part") then
spawn(function()
for i = 1, 0.4, -0.1 do
v.Transparency = v.Transparency + 0.1
wait()
end
end)
end
end
end)
if you dont have filtering enabled just do this
button.MouseButton1Click:Connect(function()
for i,v in pairs (game.Workspace:GetChildren()) do
if v:IsA("Part") then
spawn(function()
for i = 1, 0.4, -0.1 do
v.Transparency = v.Transparency + 0.1
wait()
end
end)
10 comments
he fires that when the player clicks a button i think
oof fair point
It activates before the button is clicked
oh
where is the script located
in a gui
in a button?
yeah
Fixed
dont forget the baseplate is a part