first local script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
repeat wait() until script.Parent.Protect
while wait() do
print(ReplicatedStorage:FindFirstChild("AntiCheat"..tostring(script.Parent.Protect.Value)))
_G.AntiCheat = ReplicatedStorage:FindFirstChild("AntiCheat"..tostring(script.Parent.Protect.Value))
end
Second local script:
local AntiCheatEvent = _G.AntiCheat
print(AntiCheatEvent)
AntiCheatEvent:FireServer()
problem: print(AntiCheatEvent)
prints nil why ?