sub pls
leaderstats:
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local clicks = Instance.new("IntValue")
clicks.Name = "Clicks"
clicks.Value = 0
clicks.Parent = leaderstats
end)
Click Button:
local button = script.Parent
local player = game.Players.LocalPlayer
local clicks = player:WaitForChild("leaderstats"):WaitForChild("Clicks")
local Amount = script.Parent.Amount.Value
script.Parent.MouseButton1Click:Connect(function()
clicks.Value = clicks.Value + Amount
end)
Show Clicks:
local abbreviations = {"", "K", "M", "B", "Qa", "Qi", "Sx", "Sp", "Oc", "No", "Dc", "Un", "Duo", "Tre", "Qua", "Qui", "Sed", "Sep", "Oct", "Nov", "V"}
local function Format(value, idp)
local ex = math.floor(math.log(math.max(1, math.abs(value)),1000))
local abbrevs = abbreviations [1 + ex] or ("e+"..ex)
local normal = math.floor(value * ((10 ^ idp) / (1000 ^ ex))) / (10 ^ idp)
return ("%."..idp.."f%s"):format(normal, abbrevs)
end
while wait() do
local player = game.Players.LocalPlayer
script.Parent.Text = Format(player.leaderstats.Clicks.Value, 2)
end
Негізгі бет *NEW* CLICKING BUTTON TUTORIAL | Scripts in Desc | Roblox Studio
Пікірлер: 81