leaderstats:
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"
local clicks = Instance.new("IntValue", leaderstats)
clicks.Value = 0
clicks.Name = "Clicks"
local gems = Instance.new("IntValue", leaderstats)
gems.Value = 0
gems.Name = "Gems"
local rebirths = Instance.new("IntValue", leaderstats)
rebirths.Value = 0
rebirths.Name = "Rebirths"
end)
Plus click frame:
click = 0
local plr = game.Players.LocalPlayer
while wait() do
if click ~= plr.leaderstats.Clicks.Value then
local random = math.random(1,1000)
local xnew = random/1000
local new = game.ReplicatedStorage.PlusClick:Clone()
new.Parent = script.Parent
new.Position = UDim2.new(xnew,0,1,0)
new.Text = "+1"
click = plr.leaderstats.Clicks.Value
end
end
plus clicks textlable:
wait()
script.Parent:TweenPosition(UDim2.new(script.Parent.Position.X,0,-0.1,0))
wait()
for i = 1,20 do
script.Parent.TextStrokeTransparency = script.Parent.TextStrokeTransparency + 0.05
script.Parent.TextTransparency = script.Parent.TextTransparency + 0.05
wait()
end
Show clicks textlabel:
while wait() do
local player = game.Players.LocalPlayer
local clicks = player.leaderstats.Clicks
script.Parent.Text = clicks.Value
end