Thanks, but it still doesn’t work. I see where you get your point, and that is probably true. But the whole main thing is for it to black out and then some text appears. Any other ideas?
local Player = game.Players.LocalPlayer
local Blackscreen = Player.PlayerGui:WaitForChild("CutScene").BlackScreen
local function Blackout()
for i = 1, 10 do
Blackscreen.BackgroundTransparency -= 0.1
end
Blackscreen.Text.TextColor3 = Color3.new(0.760784, 0.760784, 0.760784)
Blackscreen.Text.Value = "Welcome, traveler, to the unknown.."
Blackscreen.Text.TextTransparency = 0
task.wait(2.5)
Blackscreen.Text.Value = "No one knows what lays here.. so be careful."
task.wait(4.5)
Blackscreen.Text.TextColor3 = Color3.new(1, 0.270588, 0.282353)
Blackscreen.Text.Value = "You could encounter anything on your journey to the surface.."
task.wait(5)
Blackscreen.Text.TextColor3 = Color3.new(0.760784, 0.760784, 0.760784)
Blackscreen.Text.Value = "Stay safe, traveler."
end
script.Parent.ClickDetector.MouseClick:Connect(function()
Blackout()
end)
is it trying to change text’s transparency frame since player.PlayerGui.CutScene.BlackScreen.Text.Value = "No one knows what lays here.. so be careful."
(change value to Text)
local Part = workspace:FindFirstChild("ClickableButton"):WaitForChild["Press Part"]
local TS = game:GetService("TweenService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Char = LocalPlayer.Character
local v1 = nil
local Screen = LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("CutScene")
local Frame = LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("CutScene"):WaitForChild("BlackScreen") -- frame to change bg transparency
function blackout()
v1 = TS:Create(Frame, TweenInfo.new(1), {BackgroundTransparency = 0}):Play()
Screen.BlackScreen.Text.TextColor3 = Color3.new(0.760784, 0.760784, 0.760784)
Screen.BlackScreen.Text.Value = "Welcome, traveler, to the unknown.."
Screen.BlackScreen.Text.TextTransparency = 0
wait(2.5)
Screen.BlackScreen.Text.Value = "No one knows what lays here.. so be careful."
wait(4.5)
Screen.BlackScreen.Text.TextColor3 = Color3.new(1, 0.270588, 0.282353)
Screen.BlackScreen.Text.Value = "You could encounter anything on your journey to the surface.."
wait(5)
Screen.BlackScreen.Text.TextColor3 = Color3.new(0.760784, 0.760784, 0.760784)
Screen.BlackScreen.Text.Value = "Stay safe, traveler."
end
Part.ClickDetector.MouseClick:Connect(blackout)
This is a localscript located OUTSIDE workspace
Make sure the CutScene is PARENTED IN PLAYERGUI
This can be achieved by using
Screen.Parent = LocalPlayer:WaitForChild("PlayerGui") -- Screen is CutScence