like this?
sql = require(script.Parent)
game.Workspace.Model.Event.Event:Connect(function()
wait(10)
sql:PostAsync("nuke", "nuke", function(Success, Value, ServerResponse)
sql:GetAsync("nuke", "nuke", function(Success, Value, ServerResponse)
if (Success) then
if Value.Value.value==true then
print('hi')
end
end
end)
local a = true
p(a)
wait(.1)
a = false
p(a)
end)
function p(a)
sql:PostAsync("nuke", "nuke", function(Success, Value, ServerResponse)
if (Success) then
Value.Value.value = true
end
end)
end
and
sql = require(script.Parent)
while wait(.2) do
sql:PostAsync()("nuke", "nuke", function(Success, Value, ServerResponse)
sql:GetAsync()("nuke", "nuke", function(Success, Value, ServerResponse)
if (Success) then
print(Value.Value.value)
end
end)
end