HOW TO MAKE A CLICKING SIMULATOR GAME | ROBLOX STUDIO *FREE SCRIPTS*
SCRIPTS
—————
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
local rebirths = Instance.new(“IntValue”)
rebirths.Name = “Rebirths”
rebirths.Value = 0
rebirths.Parent = leaderstats
end)
open button :
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Frame.Visible = true
close button :
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
add clicks button :
local button = script.Parent
local player = game.Players.LocalPlayer
local clicks = player:WaitForChild(“leaderstats”):WaitForChild(“Clicks”)
local rebirths = player:WaitForChild(“leaderstats”):WaitForChild(“Rebirths”)
script.Parent.MouseButton1Click:Connect(function()
clicks.Value = clicks.Value +1
if rebirths.Value = 0 then — Put an horizontal “v” facing to the left after the “=”, i can’t write it on youtube for some reason.
clicks.Value = clicks.Value + rebirths.Value
end
end)
_________________________________________________________________
I hope you enjoyed the video. And if you did, make sure to like and subscribe!
▼ SOCIALS ▼
➤ Patreon : https://www.patreon.com/KracKenYT (If you want to support me)
➤ Discord Server : https://discord.gg/3WY2w2GQ
➤ Twitter : https://twitter.com/ken_krac
➤ YouTube : https://www.youtube.com/channel/UCAsx1B6eB1s7ngCHq5eMFEg
➤ Second Channel : https://www.youtube.com/channel/UC_V5K_9Bh4x1Q96uWZ3wjbg