For some reason, the script isn’t writing the elseif statement but it does write the if statement. How come?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TypeWriter = require(ReplicatedStorage:WaitForChild("TypeWriter"))
TypeWriter.configure({
delayTime = 0.05,
extraDelayOnSpace = false
})
local player = game.Players.LocalPlayer
player.Character.Humanoid.WalkSpeed = 0
player.Character.Humanoid.JumpPower = 0
if game.ReplicatedStorage.HasSpokenToAlan.Value == false then
TypeWriter.typeWrite(script.Parent, "Oh, hey. You must be new here.
"..player.Name..", right? Nice to meet you. I've heard that you've talked to Tree. Well, all I have to say is that you've met a nice guy. Here's a warning; don't get mixed up with the wrong group of people. This place can be pretty cruel. Best of luck, "..player.Name..".")
wait(5.5)
player.Character.Humanoid.WalkSpeed = 12
player.Character.Humanoid.JumpPower = 30
game.ReplicatedStorage.MoveAlanGuiToRS:FireServer()
elseif game.ReplicatedStorage.HasSpokenToAlan.Value == true then
TypeWriter.typeWrite(script.Parent, "Don't you have something better to do?")
wait(1.5)
game.ReplicatedStorage.MoveAlanGuiToRS:FireServer()
end