Issue with applying JobIDs to text objects

So I am trying to apply the server JobID to a TextBox however for some reason its giving me the ClassName of the object, is there any way to go around this because it works fine with print() but not anything else.

image

Server Script:

local s = script.Parent
s.SOwner.Text = game.PrivateServerOwnerId
s.SID.Text = game.JobId
1 Like

Why is this in a server Script? If it’s UI, you need to update its value with a LocalScript. I believe JobId can be read from the client, so just copy your code into a LocalScript and see if that helps.

Reminder that the JobId defaults to an empty string while read in ROBLOX Studio. To see an actual value, you’ll have to run the game from the player.

2 Likes

Thank you! I’m not sure why I didn’t try it in a local script again since it gave me an error that it could only be read from the server when I did it in a different place.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.