Hello Devs!
Quick one, my script isn’t throwing any errors, and is printing when complete. It updates the text in the properties, but doesn’t display it?
Any help is appreciated!
local description = game.ReplicatedStorage.Description
description.Changed:Connect(function()
game.StarterGui.TimerUI.Description.Text = description.Value
print("robux robux robux")
end)
KultDeeri
(Kult)
#2
You need to use playergui not startergui. By doing that you need to get the players.
Okay, i’ll try this now and let you know!
lV0rd
(4PackAbs)
#4
local description = game.ReplicatedStorage.Description
description.Changed:Connect(function()
game:GetService("Players").LocalPlayer.PlayerGui.TimerUI.Description.Text = description.Value
print("robux robux robux")
end)
Valkyrop
(I_oL)
#5
local Replicated = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Description = Replicated:WaitForChild("Description")
Description:GetPropertyChangedSignal("Text"):Connect(function()
LocalPlayer.PlayerGui.TimerGui.Description.Text = Description.Text
end)
I assume Description
is a Text
, and not Value
.
1 Like
Thanks for this, works perfectly fine now!
I was using a Script instead of a local script too.
I’ma new scripter, thanks for the tips all!
1 Like
lV0rd
(4PackAbs)
#7
Use a local script when calling a local player. Just so you know. And you’re welcome!
1 Like
KultDeeri
(Kult)
#8
Just know local script shows only for the player not all of the players.
1 Like