-- LocalScript: CharacterRecorder + AutoClicker (StarterPlayerScripts içine koy)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local recordings = {}
local currentRecording = nil
local isRecording = false
local isPlaying = false
local recordConnection = nil
local playbackConnection = nil
-- GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "RecorderGUI"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.Parent = player.PlayerGui
-- =====================
-- AUTO CLICKER PENCERESİ
-- =====================
local autoFrame = Instance.new("Frame")
autoFrame.Size = UDim2.new(0, 130, 0, 80)
autoFrame.Position = UDim2.new(0, 10, 0, 140)
autoFrame.BackgroundColor3 = Color3.fromRGB(35, 25, 40)
autoFrame.BackgroundTransparency = 0.15
autoFrame.BorderSizePixel = 0
autoFrame.Active = true
autoFrame.Draggable = true
autoFrame.Parent = screenGui
Instance.new("UICorner", autoFrame).CornerRadius = UDim.new(0, 8)
local autoTitle = Instance.new("Frame")
autoTitle.Size = UDim2.new(1, 0, 0, 22)
autoTitle.BackgroundColor3 = Color3.fromRGB(70, 40, 80)
autoTitle.BorderSizePixel = 0
autoTitle.Parent = autoFrame
Instance.new("UICorner", autoTitle).CornerRadius = UDim.new(0, 8)
local autoTitleLabel = Instance.new("TextLabel")
autoTitleLabel.Size = UDim2.new(1, 0, 1, 0)
autoTitleLabel.BackgroundTransparency = 1
autoTitleLabel.Text = "🖱Otomatik Si.. Tıklama"
autoTitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
autoTitleLabel.TextSize = 10
autoTitleLabel.Font = Enum.Font.GothamBold
autoTitleLabel.Parent = autoTitle
-- Aç/Kapa butonu
local autoToggle = Instance.new("TextButton")
autoToggle.Size = UDim2.new(1, -10, 0, 26)
autoToggle.Position = UDim2.new(0, 5, 0, 27)
autoToggle.BackgroundColor3 = Color3.fromRGB(0, 180, 80)
autoToggle.Text = "▶ Başlat"
autoToggle.TextColor3 = Color3.fromRGB(255, 255, 255)
autoToggle.TextSize = 11
autoToggle.Font = Enum.Font.GothamBold
autoToggle.BorderSizePixel = 0
autoToggle.Parent = autoFrame
Instance.new("UICorner", autoToggle).CornerRadius = UDim.new(0, 6)
local autoStatus = Instance.new("TextLabel")
autoStatus.Size = UDim2.new(1, -6, 0, 16)
autoStatus.Position = UDim2.new(0, 3, 0, 58)
autoStatus.BackgroundTransparency = 1
autoStatus.Text = "Kapalı"
autoStatus.TextColor3 = Color3.fromRGB(180, 180, 180)
autoStatus.TextSize = 9
autoStatus.Font = Enum.Font.Gotham
autoStatus.Parent = autoFrame
-- Auto clicker mantığı
-- Proximity prompt'lar genellikle HoldDuration > 0 olan butonlardır.
-- Biz ekrandaki tüm ProximityPrompt'ları bulup tetikleyeceğiz.
local autoClickerActive = false
local autoClickerConnection = nil
local CLICK_INTERVAL = 0.05 -- saniye, 1 saniyeden çok daha hızlı
local function triggerAllProximityPrompts()
-- Workspace içindeki tüm ProximityPrompt'ları bul ve tetikle
for _, obj in ipairs(workspace:GetDescendants()) do
if obj:IsA("ProximityPrompt") and obj.Enabled then
-- Karaktere yakın mı kontrol et
local character = player.Character
if character then
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
local promptPart = obj.Parent
if promptPart and promptPart:IsA("BasePart") then
local dist = (hrp.Position - promptPart.Position).Magnitude
if dist <= obj.MaxActivationDistance + 2 then
fireproximityprompt(obj)
end
end
end
end
end
end
end
-- Roblox'un yerleşik fonksiyonu
-- (Studio'da test edilebilir, yayında da çalışır)
local success, err = pcall(function()
-- fireproximityprompt global olup olmadığını kontrol et
local _ = fireproximityprompt
end)
if not success then
-- Alternatif yöntem: MouseButton1Click simülasyonu ile prompt UI'ya bas
triggerAllProximityPrompts = function()
for _, obj in ipairs(workspace:GetDescendants()) do
if obj:IsA("ProximityPrompt") and obj.Enabled then
local character = player.Character
if character then
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
local promptPart = obj.Parent
if promptPart and promptPart:IsA("BasePart") then
local dist = (hrp.Position - promptPart.Position).Magnitude
if dist <= obj.MaxActivationDistance + 2 then
obj.TriggerEnded:Fire()
game:GetService("ProximityPromptService"):FirePromptTriggered(obj, player)
end
end
end
end
end
end
end
end
autoToggle.MouseButton1Click:Connect(function()
autoClickerActive = not autoClickerActive
if autoClickerActive then
autoToggle.Text = "⏹ Durdur"
autoToggle.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
autoStatus.Text = "Aktif ✓"
autoStatus.TextColor3 = Color3.fromRGB(80, 220, 120)
local lastClick = 0
autoClickerConnection = RunService.Heartbeat:Connect(function()
if not autoClickerActive then
autoClickerConnection:Disconnect()
return
end
local now = tick()
if now - lastClick >= CLICK_INTERVAL then
lastClick = now
-- Yakındaki tüm ProximityPrompt'ları tetikle
for _, obj in ipairs(workspace:GetDescendants()) do
if obj:IsA("ProximityPrompt") and obj.Enabled then
local character = player.Character
if character then
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
local promptPart = obj.Parent
if promptPart and promptPart:IsA("BasePart") then
local dist = (hrp.Position - promptPart.Position).Magnitude
if dist <= obj.MaxActivationDistance + 2 then
pcall(function()
fireproximityprompt(obj)
end)
end
end
end
end
end
end
end
end)
else
if autoClickerConnection then autoClickerConnection:Disconnect() end
autoToggle.Text = "▶ daya"
autoToggle.BackgroundColor3 = Color3.fromRGB(0, 180, 80)
autoStatus.Text = "mola ver"
autoStatus.TextColor3 = Color3.fromRGB(180, 180, 180)
end
end)
Comments
No comments yet
Be the first to share your thoughts!