#Uİ script dont work
97 messages · Page 1 of 1 (latest)
PlayerAdded does not work client sided
what function can i use
None
Playeradded DOES work client sided
While true do
-- function
task.wait()
the problem is that you didnt update the Diamond text every time it changes
so you could do
Also you should detect for change instead of loop
hit.leaderstats.Diamonds.Changed:Connect(function()
--change text
end)
wait I'am trying
hope that helps
playergui
plr.PlayerGui.Frame.TextLabel.Text = ...
thats what it should be instead of startergui
!!!
And changed event does not return player
^
@neon epoch
replace plr with game.Players.LocalPlayer on line 2
oh my fuckign god
replace plr not replace game.Players.LocalPlayer
@neon epoch
undo that
Hey
Where did you put the localscript @neon epoch
Follow these steps to make perfect
Create Leaderstats on server side script
startergui
** You are now Level 5! **
Now create a local script inside that Text label
In this script, use folder.Name after Dia.Name
game.Players.LocalPlayer.leaderstats.Diamonds.Changed:Connect(function(plr)
script.Parent.Text = "Diamond:"..plr.leaderstats.Diamonds.Value
end)
Paste Leaderstats script here
?
uHHH
NOT WORk
leader stats script:
game.Players.PlayerAdded:Connect(function(plr)
local folder = Instance.new("Folder", plr)
folder.Name = "leaderstats"
local click = Instance.new("IntValue", folder)
click.Value = 0
click.Name = "Click"
local dia = Instance.new("IntValue", folder)
dia.Value = 0
dia.Name = "Diamonds"
end)
Click to + Dia script:
game.Players.PlayerAdded:Connect(function(plr)
local folder = Instance.new("Folder", plr)
folder.Name = "leaderstats"
local click = Instance.new("IntValue", folder)
click.Value = 0
click.Name = "Click"
local dia = Instance.new("IntValue", folder)
dia.Value = 0
dia.Name = "Diamonds"
end)
game.Players.PlayerAdded:Connect(function(Player)
local Stats = Instance.new("Folder", Player)
local Clicks = Instance.new("IntValue", Stats)
Clicks.Name = "Clicks"
Clicks.Value = 0
local Diamond = Instance.new("IntValue", Stats)
Diamonds.Name = "Diamonds"
Diamond.Value = 0
Stats.Name = "leaderstats"
end)
Use this, if any error appears show me
Also send GUI script
You can edit
local Stats = game.Player.LocalPlayer:WaitForChild("leaderstats")
Stats.Diamonds.Changed:Connect(function()
script.Parent.Text = "Diamond:"..Stats.Diamonds.Value
end)
Now try
.
On first line change
game.Player. To
game.Players.
Np

