#Amount needed for a "Rebirth" doesn't show up
48 messages · Page 1 of 1 (latest)
can u show me the explorer?
sure, gimme a sec
btw where it says "rebirth button" i forgot to rename the textlabels so imma do another ss after I renamed them.
here's the updated ss
** You are now Level 1! **
local player = game:GetService("Players").LocalPlayer
local clicksneeded = nil--path to clicksneeded
clicksneeded:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Text = "Clicks needed for rebirth:"..player.ClicksNeeded.Value
end)
replace it
with the script i sent you
instead of making a loop u can use this so everytime it changes it will update the text
alright lemme take a deep look
is any error given in the output
I don't see any errors from what I can see
does it put the numbervalue in the player ?
yes thanks
apparently no Value is added to it
give me ill try to ensure its added
** You are now Level 1! **
game.Players.PlayerAdded: Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"
local clicks = Instance.new("NumberValue")
clicks.Name = "Clicks"
clicks.Parent = leaderstats
clicks.Value = 0
local rebirths = Instance.new("NumberValue")
rebirths.Name = "Rebirths"
rebirths.Value = 0
rebirths.Parent = leaderstats
local clicksAdd = Instance.new("NumberValue")
clicksAdd = "ClicksToAdd"
clicksAdd.Value = 1
clicksAdd.Parent = player
local clicksNeeded = Instance.new("NumberValue")
clicksNeeded.Name = "ClicksNeeded"
clicksNeeded.Value = 125
clicksNeeded.Parent = player
end)
let me know
also check the output for errors
instead of local clicks Instance.new("NumberValue", leaderstats)
i did
game.Players.PlayerAdded: Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"
local clicks = Instance.new("NumberValue")
clicks.Name = "Clicks"
clicks.Parent = leaderstats
clicks.Value = 0
added ```lua
rebirths.Parent = leaderstats
@strange mesa
alr lemme check
btw in which one of the local scripts do i put this in?
usually u wanna put that in a server script as i noticed u added as function "Player" in game.players.playeradded
but if u really wanna put it in a local here\
@strange mesa
game.Players.PlayerAdded: Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local clicks = Instance.new("NumberValue")
clicks.Name = "Clicks"
clicks.Parent = leaderstats
clicks.Value = 0
local rebirths = Instance.new("NumberValue")
rebirths.Name = "Rebirths"
rebirths.Value = 0
rebirths.Parent = leaderstats
local clicksAdd = Instance.new("NumberValue")
clicksAdd.Name = "ClicksToAdd"
clicksAdd.Value = 1
clicksAdd.Parent = player
local clicksNeeded = Instance.new("NumberValue")
clicksNeeded.Name = "ClicksNeeded"
clicksNeeded.Value = 125
clicksNeeded.Parent = player
end)
``` missed a parent
works to me
incase that doesnt work
try this
game.Players.PlayerAdded: Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local clicks = Instance.new("NumberValue")
clicks.Name = "Clicks"
clicks.Parent = leaderstats
clicks.Value = 0
local rebirths = Instance.new("NumberValue")
rebirths.Name = "Rebirths"
rebirths.Value = 0
rebirths.Parent = leaderstats
local clicksAdd = Instance.new("NumberValue")
clicksAdd.Name = "ClicksToAdd"
clicksAdd.Value = 1
clicksAdd.Parent = player
local clicksNeeded = Instance.new("NumberValue")
clicksNeeded.Name = "ClicksNeeded"
clicksNeeded.Value = 125
clicksNeeded.Parent = player
end)
alright
@strange mesa news?
it works ty