Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to add reload script into Roblox gears that don't have a reload?

Asked by 2 years ago

So I want to add reload to the Roblox taser gear since it is spammable and I want the reload to be like the others gears where when the gear stops doing whatever it does it reloads how do I do this

2 answers

Log in to vote
0
Answered by 2 years ago

You are gonna have to do it yourself, or you can commission someone

Ad
Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

Inside the tool there will be a script/local script, find the script/local script which makes the gun shoot the bullets. After that insert a local script inside you're tool and paste this in:


local tool = script.Parent local plr = game:GetService('Players').LocalPlayer local mouse = plr:GetMouse() local deb = false local function reloading() if deb then return end -- tool wont work until it is done reloading deb = true script.Parent.Change_this.Disabled = true --reloading wait(1) -- change the number on how much seconds you want it to reload script.Parent.Change_this.Disabled = false --reloaded deb = false end tool.Activated:Connect(reloading)

After you pasted the script replace "Change_this" to the name of the script/local script that makes the tool shoot

Answer this question