如何在Roblox Studio中制作一个自动点击器

huangapple go评论111阅读模式
英文:

How to make a autoclicker inside of roblox studio

问题

我的朋友最近正在制作一款格斗游戏,并希望为游戏制作一个自动点击器。他正在使用官方默认的 Roblox 剑作为武器,但找不到让它持续攻击的方法。我们尝试制作一个普通点击的自动点击器,但是 Lua 没有很好的方法来实现。有人可以帮助我解决这个问题吗?谢谢!

英文:

My friend has recently been making a fighting game and wants to make an autoclicker for it. He is using the official default roblox sword for the sword, but can't find any ways to make it go constantly. We tried to make an autoclicker that would click normally but Lua doesn't have and good ways to do it. Can someone please help me fix this? Thank you!

答案1

得分: 1

在代码中找到当鼠标点击时触发的事件,并将其改为一个函数。

然后,如果启用了自动点击器,使用wait函数设置事件按照你想要的时间间隔运行。

英文:

Find the event in the code that runs when the mouse is clicked, and make it a function.

From there, make it so that if the autoclicker is enabled, the event is run every amount of time you'd like, using wait.

huangapple
  • 本文由 发表于 2023年8月9日 07:54:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76863776.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定