#loading screen stuck at a certain % for other people but not for me

1 messages · Page 1 of 1 (latest)

ashen dawn
#

I don't know why, it has no error message for me when i open it, and it loads for me fine when i press play

#

this is my loading screen script:
local replicatedFirst = game:GetService("ReplicatedFirst")
local contentProvider = game:GetService("ContentProvider")
local tweenService = game:GetService("TweenService")
local players = game:GetService("Players")

local player = players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local loadingScreen = script:WaitForChild("LoadingScreen")

replicatedFirst:RemoveDefaultLoadingScreen()

local assets = game:GetDescendants()

local clonedLoadingScreen = loadingScreen:Clone()
clonedLoadingScreen.Parent = playerGui

tweenService:Create(clonedLoadingScreen.Background.GameTitle, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true), {Position = UDim2.fromScale(clonedLoadingScreen.Background.GameTitle.Position.X.Scale, clonedLoadingScreen.Background.GameTitle.Position.Y.Scale + 0.02)}):Play()

for i = 1, #assets do
local asset = assets[i]
local percentage = math.round(i / #assets * 100)

contentProvider:PreloadAsync({asset})

clonedLoadingScreen.Background.DisplayPercentage.Text = percentage.."%"
clonedLoadingScreen.Background.DisplayAssetsLoaded.Text = "Loading Assets: "..i.."/"..#assets

tweenService:Create(
    clonedLoadingScreen.Background.BarBackground.Bar,
    TweenInfo.new(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out),
    {Size = UDim2.fromScale(percentage / 100, 1)}
):Play()

if i % 15 == 0 then
    task.wait()
end

if i == #assets then
    task.wait(1)
end

end

-- Fade out UI elements
for i, v in pairs(clonedLoadingScreen:GetDescendants()) do
if v:IsA("Frame") then
tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
elseif v:IsA("TextLabel") then
tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
elseif v:IsA("ImageLabel") then
tweenService:Create(v, TweenInfo.new(0.5), {ImageTransparency = 1}):Play()
end
end

void ridge
#

you might be loading something that others can't load because they don't have access to the asset or something, which is kinda ironic

#

also maybe make a fallback if the loading takes too long

ashen dawn
#

let me see if they have any error messages

void ridge
#

k

ashen dawn
#

this is the only one

#

maybe because i uploaded a custom idle animation i made?

#

cause on team test only I have the idle on my screen, for other people they are just standing still

void ridge
#

ahahahaha

#

i knew this would happen

#

ok so basically if an asset gets uploaded

#

and gets rejected by roblox

#

it won't be usable by anyone else who doesn't own the asset

#

this happened with a few of my animations

#

another reason might be the ownership of the animations

#

group games need group assets and vice versa

ashen dawn
#

oh i see

void ridge
#

so check if any assets got content deleted or whatnot

ashen dawn
#

where would i see that?

void ridge
#

creator hub or toolbox > creations/group creations (the lightbulb)

ashen dawn
#

i dont think it got deleted i still see the idle i used in that list

#

is it because its only owned by me and not the group?

fading maple
#

maybe ask lebron

#

or lavar

ashen dawn
ashen dawn
#

but if i were to publish the game, wouldn't players not be able to see the idle unless they joined the group?

void ridge
#

no because the idle animation was already uploaded regardless

#

and i think the ownership only applies to developers

#

either that or only whoever uploaded it

ashen dawn
#

ah okay

ashen dawn
#

all the tutorials are the same and never work

#

its weird

void ridge
#

it should be like any other animation, no?

#

maybe set the priority correctly

ashen dawn
#

i have it set to movement priority

#

i uploaded it to the group

#

and changed the id in the animate localscript

#

but it still doesn't work

void ridge
#

script?

ashen dawn
#

this

#

with all the id's

void ridge
#

ok can you show me what's inside the script

ashen dawn
#

this

#

i can send the whole script but its like 700 lines

void ridge
#

oh it's the roblox thingy

ashen dawn
#

yea

#

is that not what i do to change the animation?

void ridge
#

well kinda

#

what you can do

#

is you can copy all of that

#

paste it into a normal script instead

#

and set the normal script runcontext to client

#

so for all players it should show

#

by default

ashen dawn
#

okay let me try

#

yea nah it still didn't work

void ridge
#

did you set all the stuff

ashen dawn
#

yea i changed it to a normal script

#

and changed it to client

void ridge
#

hmmm

ashen dawn
#

this pops up too

void ridge
#

oh yeah

#

might not work like that then

#

can you see it from the server?

#

with any runcontexts?

ashen dawn
#

uhmmm

#

idk how to do that

#

1

#

sec

#

i changed the runcontext to every one of them and it still didn't work

#

its weird it worked in a different baseplate but idk how i did it

void ridge
#

can you try the script from that other game

hot yokeBOT
#

studio** You are now Level 11! **studio

void ridge
#

yay

ashen dawn
#

like take the animate script from my other game and put into this one?

void ridge
#

i guess

ashen dawn
#

ok lemme try

#

yea now i have it

#

wth

#

ok i just changed the walk animation

void ridge
#

so it works?

ashen dawn
#

kinda?

#

it plays the walk animation right

#

but only once

#

it doesn't loop

#

no error messages

#

@void ridge yk whats goin on?

#

oh nvm i fixed it

#

i forgot to toggle loop in moon animator

#

ok i think everythng works now

void ridge
#

ok yay

#

have fun

ashen dawn
#

🙏

#

Tysm for the help