Game stops at loading screen?

My own roblox games isnt working.

Man, im sure, i have created recently a game with the base/template “Create and Destroy” and it worked… but i publish some games (most of all) that doesnt work when u go play. How Happens? it stops on the loading screen of the game :frowning:

Doesnt work, i have tried a lot…

I have searched on youtube, google, forums(includes this forum)…

Some games doesn’t work when you will play like this : https://www.roblox.com/games/3421928854/Simulator-Tests

Guys if this error is happening only with me i need to be sure if the error is on my computeer or account.

the one game that IS WORKING to play are :
https://www.roblox.com/games/3415033929/Godzilla-Simulator-Creator-Challenge

1 Like

Sometimes things work in studio, but not in ROBLOX.

it is happening on roblox launcher not studio

Yeah, as I said. Sometimes things work in ROBLOX Studio, but not in the launcher. I think I know what you mean, but I’m not too sure.

For me; I can’t access this game.


In order to let us see it, you’ve got to update the access settings like so;
image

If I can launch the game thats not working, I might be able to see if I can find anything in the console, which should help fix any problems with the scripting!

if it is happening on roblox studio and reflecitng on game ?

you should be able to play now…

Aha! It looks like it gets stuck almost immediately when you launch. We connect to the server, so I don’t think its a server issue.
There could be a few problems fixable here;

  • Are there any scripts in the StarterPlayerScripts folder that you’ve made with loops?
  • Are there any scripts in the StarterCharacterScripts folder with loops?
  • Do either of these folders have scripts/code thats not default?
  • Are there any scripts in the StarterGUI folder?

Failing all that; is there anything that is doing a loop in your game?

if i doesnt forget… it have 4 guis in starter gui that is

  1. BackPack/Inventory Gui that are custom

2.PlayerGui like health and stamina player name that updates every second like health too

  1. shop gui that opens when you step on threater brick to open a selectable items to buy

4.nothing

How does this work?
Also, if you go into Roblox Studio and press Play, does it all work for you?

yes. here goes the health script:

local script for the text label : Character = game:GetService(“Players”).LocalPlayer.Character
if not Character then repeat wait() until Character end

while wait() do
script.Parent.Text = math.floor(Character:WaitForChild(“Humanoid”).Health) …“/”… math.floor(Character:WaitForChild(“Humanoid”).MaxHealth) …" HP"
end

SCRIPT FOR HEALTH BAR

Character = game:GetService(“Players”).LocalPlayer.Character

if not Character then repeat wait() until Character end

while wait() do

script.Parent.Size = UDim2.new(Character.Humanoid.Health / Character.Humanoid.MaxHealth, 0, 1, 0)

end

and the Player detail script local:

local player = script.Parent.Parent.Parent

while true do
script.Parent.PlayerInfo.LocalBar.TextLabel.Text = player.Name
script.Parent.PlayerInfo.LocalBar.PlayerRound.ImageLabel.Image = “http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=” … player.Name
end

Add a wait statement at the end to prevent infinite loop crashing.

4 Likes

thx man it work now ill test and check it

OH MAN THANKS IT WORKED A LOT OH MAN THANKs .

thanks to you too you helped me discovering new paths

If you ever do a

While X do
--Code
end

or

repeat
--Code
until X == true

Make sure you put a wait() in there to stop it from crashing! If you do this in Studio, you’ll get a pretty cool little “Stack overflow!” message. This just means you’re doing something waaaaaaaay too much in a super short space of time.

I’d really recommend having the Output window open while you’re working in studio! Helps with a lot of scripting problems!

1 Like

when i do not add an wait it will be a loop correctly?

now… how do i make this post ‘solved’ or ‘closed’?

Should be a little tick-box next to the like button on other people’s replies! :slight_smile:

1 Like