local CollectionService = game:GetService("CollectionService")
local function applyWeapon(tool)
local base = tool:FindFirstChild("Base")
if (base) then
base:SetAttribute("AimTime", 0.2)
end
end
local function applyMelee(tool)
tool:SetAttribute("AimTime", 0.2)
end
CollectionService:GetInstanceAddedSignal("Weapon"):Connect(function(tool)
applyWeapon(tool)
end)
CollectionService:GetInstanceAddedSignal("Melee"):Connect(function(tool)
applyMelee(tool)
end)
for _, tool in CollectionService:GetTagged("Weapon") do
applyWeapon(tool)
end
for _, tool in CollectionService:GetTagged("Melee") do
applyMelee(tool)
endSup i made a simple instant aim script for weapons.
No comments yet. Be the first to comment!
1local CollectionService = game:GetService("CollectionService")
2
3local function applyWeapon(tool)
4 local base = tool:FindFirstChild("Base")
5 if (base) then
6 base:SetAttribute("AimTime", 0.2)
7 end
8end
9
10local function applyMelee(tool)
11 tool:SetAttribute("AimTime", 0.2)
12end
13
14CollectionService:GetInstanceAddedSignal("Weapon"):Connect(function(tool)
15 applyWeapon(tool)
16end)
17
18CollectionService:GetInstanceAddedSignal("Melee"):Connect(function(tool)
19 applyMelee(tool)
20end)
21for _, tool in CollectionService:GetTagged("Weapon") do
22 applyWeapon(tool)
23end
24
25for _, tool in CollectionService:GetTagged("Melee") do
26 applyMelee(tool)
27end