#script in studio vs script in game

1 messages · Page 1 of 1 (latest)

tired belfry
#

im honestly not even sure if i should put this in studio help or scripting help but the guis that ive scripted are working when i play test my game in studio, but not when i play test the game from roblox, and im at a total loss on why

#

no errors are displayed in the game when launched in roblox

bronze kiln
tired belfry
#

theres nothing

bronze kiln
tired belfry
#

is this what you mean?

#

if so, it still doesnt work :(

bronze kiln
# tired belfry is this what you mean?

If the first condition is met, it'll run game.Loaded:Wait() and do nothing else.

Only if the game is loaded at the moment the if is reached will the UIS connection happen

#

Just move the UIS connection out of the if statement entirely

tired belfry
#

still doesnt work

bronze kiln
tired belfry
#

it crashes my studio if its not there

covert orioleBOT
#

studio** You are now Level 3! **studio

bronze kiln
tired belfry
#

to fit an extra task.wait()

#

im not exactly sure why but if i dont have that extra tast.wait() itll crash my studio

bronze kiln
tired belfry
#

thats honestly never occurred to me

#

okay it doesnt crash my studio anymore but it still doesnt work in game

bronze kiln
tired belfry
#

it prints everything just fine the way i want it to in studio but nothing happens in game

bronze kiln
tired belfry
#

alright, fixed 👍🏿

tired belfry
bronze kiln
tired belfry
#

i dont know if you meant like this but this still doesnt work

bronze kiln
tired belfry
#

still doesnt work

bronze kiln
tired belfry
#

oh

#

okay thank you so much it works consistently now the way i want it to