#UI script works as intended in test mode, but not with server.

1 messages · Page 1 of 1 (latest)

pseudo fulcrum
#

I've attached two videos of my issue. The first is testing in studio, the second is testing on a client after starting a server.
In the first example, my UI works as intended. It fades out after joining the game, and all elements are visible.
In the second example, for whatever reason the fade is never triggered after joining the game, and one of the UI elements are completely invisible.

Normally, this would be fine but I'm mostly confused as to how running my project on a server is making any sort of difference at all. My code is within a local script, so I shouldn't really be seeing any interactions with other clients or the server.

I thought posting to here would be a good idea, as I've never really come across an issue like this before.

sweet slate
#

don't know what to tell you

pseudo fulcrum
#

no worries man, just like im on here to try and get help to find people who do

shut pathBOT
#

studio** You are now Level 5! **studio

sweet slate
shut pathBOT
#

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

sweet slate
#

add print statements around the code giving you the variables

#

print(VARIABLE)

hushed night
pseudo fulcrum
# hushed night What is ur script and where is it located?

The script is definitely active. It's located inside of a folder inside of StarterCharacterScripts and I can get it to print other things as well as perform the tweens that I need.

The code for the script is at the top with my question, but basically it displays a titlecard for any new area that you walk into by tweening a bunch of UI elements after hitting an invisible barrier.

#

weirdly, the transparency value for the actual object seems to change and it's still working. but I can't seem to see it even though Visible is checked.

hushed night
#

What is the script?

pseudo fulcrum
hushed night
#

Why do you check for the player if it is a local script?

pseudo fulcrum
#

huh?

#

Where?

hushed night
#

Also shouldn't use player gui

#

Onzonetouched function u forgot a space

pseudo fulcrum
hushed night
#

Just use starter gui?

pseudo fulcrum
#

I was using PlayerGui because those are the objects from the workspace copied to the player's UI during the game.

pseudo fulcrum
# hushed night Just use starter gui?

I'm pretty sure starterGui are the objects in studio. They're copied over to the PlayerGui once you run the game, tweening those wouldn't be visible.

hushed night
#

Do u get any errors btw?

pseudo fulcrum
# hushed night Why not?

Basically StarterGui is where the UI elements start. PlayerGui is where they are moved too in-game, which is what you see while you're actually playing from my understanding.

pseudo fulcrum
pseudo fulcrum
pseudo fulcrum
hushed night
#

Oh wait I might know it

#

Hmm I've rewatched ur videos, what is ur problem again?

#

Like that blue flashing?

pseudo fulcrum
# hushed night Like that blue flashing?

If you mean the line turning blue at the top, that's just because I have it selected.If you mean the blue text in the console, that is some weird multiplayer code on roblox's side out of my control. But I don't think it's related.

pseudo fulcrum
# hushed night Hmm I've rewatched ur videos, what is ur problem again?

So in the top two video's the first one was launched just using the "test" button. It works totally as intended. The second video is testing with a client and server.
For whatever reason in that video the line frame doesn't show up, and the titlecard never fades out. I don't really understand why there's any difference at all if it's a client sided script and I'm not sure how to fix it.

hushed night
#

Oh I see ur problem now

#

Idk how to fix it though

pseudo fulcrum
#

I did notice something really odd though. When I first launch the game, the line is visible. When I move the frame, it disappears.

hushed night
#

But I've noticed that you use player as an argument but never actually use it

hushed night
#

Might it be a scaling/positioning issue

#

You use scale right?

#

Not offset

pseudo fulcrum
pseudo fulcrum
hushed night
#

I'm saying that it may be cuz of that because when u change the clients screen size it would be an issue to use offset

#

Btw I gtg bye