You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
In my game i need to change a string value in the player to be the same as a textlabel in a shop displaying the items name. -
What is the issue? Include screenshots / videos if possible!
I am able to change the value and such but the actual value is what it is in StarterGui and not in PlayerGui, even though I sent a parameter of the text that was defined as PlayerGui.ShopGui.NameTag.Text. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I couldn’t find an existing answer as to why this is happening, so I decided to post instead.
Local Script:
local text = player.PlayerGui.NewStarterShopButtons:FindFirstChild("Nametag").Text
script.Parent.Activated:Connect(function()
print(text) -- prints StarterGui TextLabel Text
replicatedStorage.Remotes.EquipCone:FireServer(text)
end)
Server Script:
replicatedStorage.Remotes.EquipCone.OnServerEvent:Connect(function(player, text)
print(player, text) -- prints player and StarterGui textlabel text
end)