Alright so i've browsed a bit after this issue and the only thing i could find was to rename my "JoinScreenAnimation" and that didn't work. Then a second issue where it doesnt disable the chat but it does disable the leaderboard.Here's my code:
local ReplicatedFirst = game:GetService("ReplicatedFirst")
ReplicatedFirst:RemoveDefaultLoadingScreen()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat,false) --this does disable the leaderboard
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,false) --this does not disable the chat
wait(10)
if not game:IsLoaded() then
game.Loaded:Wait()
end
script.Parent.JoinScreen.Loading.Visible = false
script.Parent.JoinScreen.Loaded.Visible = true
wait(0.5)
local JoinScreenAnimation = script.Parent.JoinScreen.TitleCard:TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.In, Enum.EasingStyle.Linear, 2, true )
JoinScreenAnimation:Play() --[[error Players.Pitched_mobile.PlayerGui.ScreenGui.ScreenHandler:16: attempt to index boolean with 'Play']]
JoinScreenAnimation.Completed:Connect(function()
wait(2)
script.Parent.JoinScreen:Destroy()
script.Parent.Select.Visible = true
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList,true)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat,true)
end)

1 comment
Must be something stupid im overlooking here