The gui is supposed to slowly appear but it does not, no error messages at all.
The code:
script.Parent.Touched:Connect(function(Object)
local Player = game.Players:GetPlayerFromCharacter(Object.Parent)
if Player then
local Dialog = game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui.Dialog.Dialog
local Person = game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui.Dialog.Person
local gui = game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui
if Object.Parent:FindFirstChild("Humanoid") then
if AlreadyTouched == false then
AlreadyTouched = true
wait(2)
game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui.Dialog.Dialog.Text = "Are you guys ready for the trip?"
game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui.Dialog.Person.Text = "dad"
game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui.Dialog.Dialog.Visible = true
game.Players:GetPlayerFromCharacter(Object.Parent).PlayerGui.Dialog.Person.Visible = true
wait(4)
Person.Visible = false
Dialog.Visible = false
Person.Text = "Mom"
Dialog.Text = "Yeah i guess."
wait(2)
Person.Visible = true
Dialog.Visible = true
wait(4)
Person.Visible = false
Dialog.Visible = false
wait(2)
Person.Visible = true
Dialog.Visible = true
Person.Text = "Dad"
Dialog.Text = "Oh i didnt notice the taxi, lets go!"
wait(2)
Person.Visible = false
Dialog.Visible = false
wait(1)
while gui.BlackScreen.Frame.BackgroundTransparency >= 0 do
gui.BlackScreen.Frame.BackgroundTransparency = game.StarterGui.BlackScreen.Frame.Transparency - 0.1
wait (0.1)
end
end
end
end
end)