Debby = false
game.ReplicatedStorage.PlayerEventsAndFunctions.Death.OnClientEvent:Connect(function()
if Debby == false then
Debby = true
print("Stoopid")
script.Parent.Parent.BlackScreen.Visible = true
script.Parent.Parent.BlackScreen.BackgroundTransparency = 1
for i = 1, 50 do
print("Decreasing")
script.Parent.Parent.BlackScreen.BackgroundTransparency = script.Parent.Parent.BlackScreen.BackgroundTransparency - 0.02
print(script.Parent.Parent.BlackScreen.BackgroundTransparency)
wait()
end
end
end)
Output
Stoopid
Why is the Background Transparency above 1 even?
And also what have i done wrong to even do this.
The function triggers from touching a block and on death from touching the block the screen fades out (Sorry im not using tween i will add it at the end of the game) but when it fades out the Transprency goes up to like 50? i dont think there is any other code that is touching the transparency of this frame please help