#AutoClicker HELP
1 messages · Page 1 of 1 (latest)
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
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
just nothing happens
** You are now Level 1! **
Is the server script it's firing to not properly sending back the fireclient?
Wait a second, I have a theory why it's not working
gonna check something in studio real quick
okay
You should send a snippet of the serverscript where it does the fireclient, in the meantime
Wait, you do have a server script receiving the :FireServers, right?
which one?
UpdateAutoClicker? or AddClick
UpdateAutoClicker
Honestly i dont know i did it using youtube tutorial
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
okay
I'd help you just write one from scratch, but I'm too lazy lol
i would need just button that u can enable and disable that can do something
just
watch a tutorial
like an actual luau tutorial
preferably brawldev or thedevking
follow this
it doesnt have button enabling
it doesnt have tutorial for certain thing
Yeah, so watch the videos and then use what you learn to make your own button enabling thing