So, basically, the text won't show up but music plays. Line 14 Error


local Player = game:GetService("Players").LocalPlayer
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local SoundService = game:GetService("SoundService")
local GameTitleSound = SoundService:WaitForChild("GameTitle")
local DevTitleSound = SoundService:WaitForChild("DevTitle")
local HeadText = script.Parent:WaitForChild("DefaultFrame"):WaitForChild("LoadingLabel")

ReplicatedFirst:RemoveDefaultLoadingScreen()
HeadText.Position = UDim2.new(0.296, 0,1, 0) -- Moves text to the Position1
repeat wait() until Player.Character
wait(3)
DevTitleSound:Play()
HeadText:TweenPosition(UDim2.new(0.296, 0, 0.413, 0), "Quad") -- Error appears here
wait(0.105)
for i=0.05,20 do
	HeadText.TextTransparency = HeadText.TextTransparency + i
	wait(0.25)
end
repeat wait() until HeadText.TextTransparency == 1
GameTitleSound:Play()
repeat wait() until GameTitleSound.TimePosition >= 1.25
HeadText.Text = "Stranded with Zombies"
for i=0.05,20 do
	HeadText.TextTransparency = HeadText.TextTransparency - i
	wait(0.25)
end
repeat wait() until HeadText.TextTransparency == 0
wait(2)
script.Parent.Enabled = false

2 comments

0

The for loop's value gets higher by 1 every time it goes, maybe it doesnt work because i = 0.05 ? Maybe change it to 1 or change the 20 to something else and have a 3rd argument?

0

The problem is not in loop's. TweenPosition is in case at this time