#AutoClicker HELP

1 messages · Page 1 of 1 (latest)

obtuse gull
#

I need someone to fix my autoclicker script or help make gui button that you can enable and disable

terse igloo
#

Ok

#

Where script

obtuse gull
#
local AddClick = ReplicatedStorage:WaitForChild("Events"):WaitForChild("AddClick")
local Events = ReplicatedStorage.Events

local GUI = script.Parent
local Frame = GUI.Frame

local Click = Frame.ClickButton
local Auto = Frame.AutoClickerButton
local FastAuto = Frame.FastAutoClickerButton

local CLICK_TEXT_TEMPLATE = "TYPE : MODE"

local AutoMode = false
local FastAutoMode = false

local function UpdateButton (buttonType: "Auto" | "FastAuto", mode: boolean)
    local button
    if buttonType == "Auto" then
        button = Auto
        AutoMode = mode
    else
        button = FastAuto
        FastAutoMode = mode
    end
    
    if mode then
        button.TextLabel.Text = CLICK_TEXT_TEMPLATE:gsub("TYPE", buttonType):gsub("MODE", "ON")
    else
        button.TextLabel.Text = CLICK_TEXT_TEMPLATE:gsub("TYPE", buttonType):gsub("MODE", "OFF")
    end
end

FastAuto.MouseButton1Click:Connect(function()
    Events.UpdateAutoClicker:FireServer("FastAuto")
end)

Auto.MouseButton1Click:Connect(function()
    Events.UpdateAutoClicker:FireServer("Auto")
end)

Click.MouseButton1Click:Connect(function()
    AddClick:FireServer()
end)

Events.UpdateAutoClicker.OnClientEvent:Connect(UpdateButton)
UpdateButton("Auto",Events.GetAutoClickMode:InvokeServer("Auto"))
UpdateButton("FastAuto", Events.GetAutoClickMode:InvokeServer("FastAuto"))```
#

i can make screanshot if needed

obtuse gull
terse igloo
#

Just to narrow it down a bit, and so I don't have to comprehend the whole thing, is there anything in specific that isn't working, or is just nothing happening at all

obtuse gull
#

just nothing happens

spice masonBOT
#

studio** You are now Level 1! **studio

terse igloo
#

Is the server script it's firing to not properly sending back the fireclient?

obtuse gull
#

it can be

#

but i dont know how to fix it

terse igloo
#

Wait a second, I have a theory why it's not working

#

gonna check something in studio real quick

obtuse gull
#

okay

terse igloo
#

You should send a snippet of the serverscript where it does the fireclient, in the meantime

obtuse gull
#

how can i fix it?

#

i am new at lua

terse igloo
#

Wait, you do have a server script receiving the :FireServers, right?

obtuse gull
#

UpdateAutoClicker? or AddClick

terse igloo
#

UpdateAutoClicker

obtuse gull
terse igloo
#

I see.

#

I'd recommend just watching the video again and making sure you aren't missing anything that was done in a separate script

obtuse gull
#

okay

terse igloo
#

I'd help you just write one from scratch, but I'm too lazy lol

obtuse gull
#

i would need just button that u can enable and disable that can do something

hidden wyvern
#

just

#

watch a tutorial

#

like an actual luau tutorial

#

preferably brawldev or thedevking

#

follow this

obtuse gull
hidden wyvern
#

what does that mean

obtuse gull
#

it doesnt have tutorial for certain thing

terse igloo
#

Yeah, so watch the videos and then use what you learn to make your own button enabling thing