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
Doesnt work, i have tried a lot…
I have searched on youtube, google, forums(includes this forum)…
In order to let us see it, you’ve got to update the access settings like so;
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!
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?
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
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!