I made simple script to easily manage a game info screen without having to manually edit the text labels, but its not working.
local event = game.ReplicatedStorage.UpdateInfo
local VN = script.Parent.GameVersion
local FV = script.Parent.FriendFinderVersion
local UN = script.Parent.UpdateName
local BL = script.Parent.BuildLog
event.OnClientEvent:Connect(function(Vers, FrenVers, UpdName, BldLog)
print(Vers, FrenVers, UpdName, BldLog)
VN.Text = Vers
FV.Text = FrenVers
UN.Text = UpdName
BL.Text = BldLog
end)
Its printing all the right data, so it is reciving all the data, and uses it, but the text labels wont change.
2 Likes
mc7oof
(oof)
April 14, 2024, 2:25am
#2
Do these need a Value
at the end?
VN.Text = Vers.Value
FV.Text = FrenVers.Value
UN.Text = UpdName.Value
BL.Text = BldLog.Value
the sending script already handles that, plus the print DOES print the values, so it cant be that
Den_vers
(Den_vers)
April 14, 2024, 2:30am
#4
Check your text settings. Is .MaxVisibleGraphemes
set to something like 0? It should usually be -1.
idk what that is, i checked and it is -1
1 Like
Den_vers
(Den_vers)
April 14, 2024, 2:32am
#6
.MaxVisibleGraphemes
is how many characters are allowed to be rendered onto a TextLabel
, or an ImageLabel
. Anything of that nature, and it’s usually used for things like typewriter effects, or at least that’s what I’ve only seen it used for.
Honestly, I don’t see anything wrong with this code. Are you sure the event is firing? I know you said you added a print statement but can you double check?
the print statment not only prints, but it prints the proper data. thats what confuses me, why it will recive the data fine, but wont apply it?
Den_vers
(Den_vers)
April 14, 2024, 2:34am
#8
Send your explorer, send an image of it.
ok, here is the path to the script, and its refrenced children:
And here is the path to the files:
1 Like
Den_vers
(Den_vers)
April 14, 2024, 2:37am
#10
It looks like you’re only changing some of the TextLabels
, is there a reason for that?
2 Likes
mc7oof
(oof)
April 14, 2024, 2:37am
#11
Try printing the TextLabels to see if they are nil.
local event = game.ReplicatedStorage.UpdateInfo
local VN = script.Parent.GameVersion
local FV = script.Parent.FriendFinderVersion
local UN = script.Parent.UpdateName
local BL = script.Parent.BuildLog
event.OnClientEvent:Connect(function(Vers, FrenVers, UpdName, BldLog)
print(VN, FV, UN, BL)
print(Vers, FrenVers, UpdName, BldLog)
VN.Text = Vers
FV.Text = FrenVers
UN.Text = UpdName
BL.Text = BldLog
end)
1 Like
t5he other lables are data i dont need to change, like one saying “build log” or one saying “Terminax development team” and i dont need to change those
Den_vers
(Den_vers)
April 14, 2024, 2:38am
#13
I’m pretty sure if they were, he would be getting an error. But since they aren’t, nothings happening, that’s the issue.
i got this from printing the raw text lables:
GameVersion FriendFinderVersion UpdateName BuildLog
But their text doesnt say that?
Den_vers
(Den_vers)
April 14, 2024, 2:40am
#16
Is there anything else modifying the text labels?
Also, are you sure you’re looking at the right script? Your script looks totally normal to me. It’s like you’re looking at something else.
For refrence, the info page looks like this before the script is active:
But it looks the same after the script ran.
mc7oof
(oof)
April 14, 2024, 2:42am
#18
You printed the TextLabel
not the Value
so you will see the name.
Looks like they are there.
im confused why this is happening
Bro i hate events
mc7oof
(oof)
April 14, 2024, 2:43am
#20
Try adding this with the other print statements:
print("Vers", typeof(Vers))