Clicker Simulator Tutorials | EP.1 Clicker and Pop-Ups

Опубликовано: 24 Октябрь 2024
на канале: Dev | Octopus
6,920
120

This is a Channel where I do Roblox Studio Tutorials !
My discord Server:   / discord  
How to make a TextLabel with Money information:    • How to make a TextLabel with money in...  
How to make a leaderstats:    • How to make a leaderstats - Roblox St...  

New Clciker Simulator series:    • Clicker Simulator | SE.2 EP1  

Clicker script:

local player = game.Players.LocalPlayer
local clicks = player:WaitForChild("leaderstats"):WaitForChild("Money")

script.Parent.MouseButton1Click:Connect(function()
clicks.Value = clicks.Value + 10000
end)


ShowAdd script:

wait(.1)
script.Parent:TweenPosition(UDim2.new(script.Parent.Position.X,0, -.1, 0))
wait(.1)
for i = 1,20 do
script.Parent.Rotation = script.Parent.Rotation+1
script.Parent.TextStrokeTransparency = script.Parent.TextStrokeTransparency + .05
script.Parent.TextTransparency = script.Parent.TextTransparency + .05
wait(.05)
end


StarterGui script:

cp = 0
local plr = game.Players.LocalPlayer
while wait() do
if cp ~= plr.leaderstats.Money.Value then --Change "Money" to your Currency
local random = math.random(1,900)
local xnew = random/1000
local new = game.ReplicatedStorage.ShowAdd:Clone()
new.Parent = script.Parent.Clicker -- Change "Clicker" to yor screen's name
new.Position = UDim2.new(xnew,0, 1, 0)

new.Text = "+"..plr.leaderstats.Money.Value - cp.."💵"
cp = plr.leaderstats.Money.Value
end
end