Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- game.ReplicatedStorage:WaitForChild("Fade").OnClientEvent:Connect(function(option)
- if option == "fade" then
- script.Parent.Frame.BackgroundTransparency = 0
- player:WaitForChild("PlayerGui"):SetTopbarTransparency(0)
- else
- for i = 1, 10 do
- script.Parent.Frame.BackgroundTransparency = i/10
- if player:WaitForChild("PlayerGui"):GetTopbarTransparency() < 0.5 then
- player.WaitForChild("PlayerGui"):SetTopbarTransparency(i/10)
- end
- wait()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement