How to make an advanced clicking simulator on Roblox | Episode 5

Опубликовано: 25 Март 2026
на канале: Fruskle
12,465
119

In this video I will show you how to make a clicking simulator!

Roblox Group : https://web.roblox.com/groups/1382548...

I recommend scripting it yourself because it will help you learn how to script on your own!

Script :
-----------------------------------------------------------------------------------------------------------------------
If you see (Greater Than) or (Less Than) that means use the greater than or less than symbol YouTube does not allow it *

OpenRunFrame :

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Parent.Display.Run.Visible = true
end)

ProximityPrompt :

local proximity = workspace.Shop.Door.ProximityPrompt
local porximityPromptService = game:GetService("ProximityPromptService")

proximity.Triggered:Connect(function()
script.Parent.ScreenGui.GemShop.Visible = true
end)

Purchase :

script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
local gems = player.leaderstats.Gems
local UpgradeCost = script.Parent.Parent.Run.UpgradeCost
local AmountOwned = script.Parent.Parent.Run.AmountOwned
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

if gems.Value (Greater Than)= UpgradeCost.Value then
if AmountOwned.Value (Less Than) 10 then
humanoid.WalkSpeed = humanoid.WalkSpeed + 1.6
gems.Value = gems.Value - UpgradeCost.Value
AmountOwned.Value = AmountOwned.Value + 1
end
end

end)

text and values handler :

while wait() do
local Amount = script.Parent.Amount
local AmountOwned = script.Parent.AmountOwned
local Cost = script.Parent.Cost
local UpgradeCost = script.Parent.UpgradeCost
local Amount2 = script.Parent.Parent.Parent.Parent.OPtions.Run.Amount

Amount.Text = AmountOwned.Value.."/10"
Cost.Text = UpgradeCost.Value.." Gems"
Amount2.Text = AmountOwned.Value.."/10"
if AmountOwned.Value (Greater Than) 0 then
UpgradeCost.Value = AmountOwned.Value * 500
else
UpgradeCost.Value = 250
end
end