Categories > Exploiting > Scripts >
[Request] Macro Script (Lets You Do Something & It Repeats It)
Posted
so i want something like tinytask, except you run it in a script, so i can do other stuff while the macro is running in roblox.
so like for the macro i might do like:
Mouse1 Click (x3)
Hold Z
Press C
Press Q (x5)
and then the script would repeat what i did which is:
Mouse1 Click (x3)
Hold Z
Press C
Press Q (x5)
(i don't want any source code if you made it) i just want a script that can record what i did, then repeat it
kthx bai
Replied
made the functions in like 5 mins, enjoy :)
local utf8 = {
["A"] = 0x41,
["B"] = 0x42,
["C"] = 0x43,
["D"] = 0x44,
["E"] = 0x45,
["F"] = 0x46,
["G"] = 0x47,
["H"] = 0x48,
["I"] = 0x49,
["J"] = 0x4A,
["K"] = 0x4B,
["L"] = 0x4C,
["M"] = 0x4D,
["N"] = 0x4E,
["O"] = 0x4F,
["P"] = 0x50,
["Q"] = 0x51,
["R"] = 0x52,
["S"] = 0x53,
["T"] = 0x54,
["U"] = 0x55,
["V"] = 0x56,
["W"] = 0x57,
["X"] = 0x58,
["Y"] = 0x59,
["Z"] = 0x5A,
}
function pressKey(key, times, delay)
key = string.upper(key)
for i = 1, tonumber(times) do
keypress(utf8[key])
wait(delay)
end
end
function clickMouse(which, times, delay)
local clicks = {
["1"] = mouse1click,
["2"] = mouse2click
}
local clickfunc = clicks[which]
for i = 1, times do
clickfunc()
wait(delay)
end
end
-- pressKey("w", 1, 0.5) // key to press, how many times to press it, delay after the presses? idk im from poland LMAO
-- clickMouse("1", 1, 0.5) // which mouse button ( 1 = left, 2 = right ), how many times to click it, delay after the clicks
Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Replied
@hookfunction ayo thats sick thx, also is it possible that you can add like i can hold a key (you don't have to tho)
Cancel
Post
Replied
@TERIHAX if you look a bit at the input functions docs you can add it by yourself ;)
Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Replied
@hookfunction uh could you send me a link to the docs like the input function thingy
Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Replied
Cancel
Post
Open to help anyone with anything, DM me on discord :)
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post