So i was making a frame fade and all of a sudden it never appears or fades it just ignores the script, I saw and I guarantee you there was no errors whatsoever so if anyone could help and try to fix the script I would be glad.]
Here's the script
local playergui = game.Players.LocalPlayer.PlayerGui local player = game.Players.LocalPlayer local character = player.Character local camera = workspace.CurrentCamera local PlayerGui = player.PlayerGui local hum = character:WaitForChild("Humanoid") local black = script.Parent.Parent.Parent.BlackFadingGui.Frame local playergui = game.Players.LocalPlayer.PlayerGui script.Parent.MouseButton1Click:Connect(function(player) local blackclone = black:Clone() blackclone.Parent = PlayerGui blackclone.BackgroundTransparency = 0.1 wait(0.01) blackclone.BackgroundTransparency = 0.2 wait(0.01) blackclone.BackgroundTransparency = 0.3 wait(0.01) blackclone.BackgroundTransparency = 0.4 wait(0.01) blackclone.BackgroundTransparency = 0.5 wait(0.01) blackclone.BackgroundTransparency = 0.6 wait(0.01) blackclone.BackgroundTransparency = 0.7 wait(0.01) blackclone.BackgroundTransparency = 0.8 wait(0.01) blackclone.BackgroundTransparency = 0.9 wait(0.01) blackclone.BackgroundTransparency = 1 repeat wait(0.1) camera.CameraType = Enum.CameraType.Scriptable until camera.CameraType == Enum.CameraType.Scriptable camera.CFrame = workspace.CameraPosition2.CFrame script.Parent.Visible = false wait(0.1) local fadingclone = playergui.BlackFadingGui.Frame:Clone() fadingclone.Parent = playergui.BlackFadingGui wait(0.1) playergui.CharacterSelectionGui.Frame.Visible = true end) script.Parent.MouseEnter:Connect(function() script.Parent.BackgroundTransparency = .5 end) script.Parent.MouseLeave:Connect(function() script.Parent.BackgroundTransparency = 1 end) hum.Died:Connect(function() script.Parent.Visible = false wait(0.01) script.Parent.Visible = true wait(0.01) script.Parent.Visible = true end)
Closed as Non-Descriptive by hiimgoodpack and BlackOrange3343
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?