Can someone expain why this won’t work, because I don’t understand.
I don’t know what to really try because this should be right unless I am missing something.
1 Like
Are there any errors in the output? Is BlackScreen a valid parent of this script?
1 Like
I just realized it is inside a StarterGui.
The reason it is not playing the Tween is due to the character already being added beforehand.
If it is ResetOnSpawn Enabled:
Remove the Player.CharaceterAdded Function as it will just yield the script indefinitely
local player = game.players.LocalPlayer
local BlackScreen = script.Parent
local TweenService = game:GetService('TweenService')
local FadeTween = TweenService:Create(BlackScreen, TweenInfo.new(5), {BackgroundTransparency = 1})
FadeTween:Play()
If not then:
Place a :Play() Beforehand aswell
local player = game.players.LocalPlayer
local BlackScreen = script.Parent
local TweenService = game:GetService('TweenService')
local FadeTween = TweenService:Create(BlackScreen, TweenInfo.new(5), {BackgroundTransparency = 1})
FadeTween:Play()
player.CharacterAdded:Connect(function()
FadeTween:Play()
end)
This should fix your issue, Let me know if there’s any errors!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.