Hello there users of devforum. I have this script that’ll detect if the muzzle flash for the gun is enabled and that it will print it. Although so far it doesn’t seem to work. I tryed to look for solutions and more on devforum but none seem to work.
local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.Character:WaitForChild()
local gun = workspace.TurretSystem
local gunmuzzle = workspace.TurretSystem.Muzzle
local closestdisstance = 20
if gunmuzzle.Enabled == true then
print("yes")
end
Ideas?