Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Expected ')' (to close '(' at line 73) "got local"?

local AKMod = game.CoreGui.ScreenGui.main.AK
AKMod.MouseButton1Down:connect (onAKModActivated()
	local player = game:GetService("Players").LocalPlayer
	local gun = player.Backpack:FindFirstChild("AK-47")
	local sM = require(gun:FindFirstChild("GunStates"))
    sM["Damage"] = 999
    sM["MaxAmmo"] = 9999991
    sM["StoredAmmo"] = 9999991
    sM["FireRate"] = 0.000001
    sM["AmmoPerClip"] = 9999991
    sM["Range"] = 5000
    sM["ReloadTime"] = 0.05
    sM["Bullets"] = 10
    sM["AutoFire"] = true
end)

I just dont have a clue. how to fix it

6 comments

0

Where exactly is the error because it says line 73 but there's only 15 lines

0

Line 3

0

I think Connect should be with a capital

0

Did you set up the module correctly?

0

why is there a "CoreGui"...

0

CoreGui is for plugins and stuff

1 answer

I don't know what you are trying to do but it should be :Connect(function() unless you already made a function called onAKModActivated()

AKMod.MouseButton1Down:connect(function()
	-- Your code here
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.