You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
i want to make Stun System -
What is the issue?
I dont know which way is better to make -
What solutions have you tried so far?
looking in devforum and found so much people making it by creating a new object inside folder and use FindFirstChild to check it
Which Should I Use For Stun System? Between “BoolValue” or “Create Object”
BoolValue Is Just a 1 BoolValue Object And Use :GetPropertyChangeSignal(“Value”) to check when the value getting changed
StunValue:GetPropertyChangedSignal("Value"):Connect(function()
if StunValue.Value == true then
print("Stun")
else
print("Stun End")
end
end)
or Create Object Inside Folder And Use .ChildrenAdded/.ChildrenRemoved To Check
StunFolder.ChildrenAdded:Connect(function()
print("Stun")
end)
StunFolder.ChildrenRemoved:Connect(function()
if not StunFolder:FindFirstChild("Stun") then
print("Stun End")
end
end)