#Uİ script dont work

97 messages · Page 1 of 1 (latest)

neon epoch
sweet oasis
#

PlayerAdded does not work client sided

neon epoch
neon epoch
sweet oasis
#

None

gaunt sphinx
#

Playeradded DOES work client sided

sweet oasis
#

While true do
-- function
task.wait()

gaunt sphinx
#

the problem is that you didnt update the Diamond text every time it changes

#

so you could do

sweet oasis
#

Also you should detect for change instead of loop

gaunt sphinx
#
hit.leaderstats.Diamonds.Changed:Connect(function()
  --change text
end)
neon epoch
#

wait I'am trying

gaunt sphinx
#

hope that helps

sweet oasis
#

Also another thing is that you are changing startergui

#

Startergui ~= Playergui

neon epoch
#

?

#

not work :d

gaunt sphinx
#

playergui

neon epoch
gaunt sphinx
#

plr.PlayerGui.Frame.TextLabel.Text = ...

#

thats what it should be instead of startergui

#

!!!

sweet oasis
#

And changed event does not return player

neon epoch
#

@gaunt sphinx

gaunt sphinx
#

@neon epoch

#

replace plr with game.Players.LocalPlayer on line 2

neon epoch
#

what

gaunt sphinx
#

oh my fuckign god

#

replace plr not replace game.Players.LocalPlayer

#

@neon epoch

#

undo that

neon epoch
#

not work

#

uhh

gaunt sphinx
#

is there an error

#

in output

neon epoch
gaunt sphinx
#

show me the error

#

@neon epoch

#

go to view

#

and click on Output

neon epoch
#

@gaunt sphinx

bronze island
#

Hey

gaunt sphinx
#

Where did you put the localscript @neon epoch

bronze island
#

Follow these steps to make perfect

neon epoch
bronze island
#

Create Leaderstats on server side script

neon epoch
dusk yarrowBOT
#

studio** You are now Level 5! **studio

bronze island
neon epoch
bronze island
#

Yes

#

Now wait

#

Make a Var for diamond

bronze island
neon epoch
#

game.Players.LocalPlayer.leaderstats.Diamonds.Changed:Connect(function(plr)
script.Parent.Text = "Diamond:"..plr.leaderstats.Diamonds.Value
end)

bronze island
#

Paste Leaderstats script here

bronze island
#

Paste both scripts here

#

Text, Not image

neon epoch
#

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)

bronze island
#

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

neon epoch
#

name not Clicks

#

Click

bronze island
#

Also send GUI script

bronze island
neon epoch
bronze island
#

local Stats = game.Player.LocalPlayer:WaitForChild("leaderstats")

Stats.Diamonds.Changed:Connect(function()
script.Parent.Text = "Diamond:"..Stats.Diamonds.Value
end)

#

Now try

neon epoch
#

not work

#

I'am going crazy

neon epoch
bronze island
neon epoch
#

İt works

#

thank you so much

bronze island
#

Np