Hey there,
I'm new to scripting and I'm sure the issue is small but I'm not seeing any Errors in output
Problem: The local script isn't changing the value to False when clicked.
Local Script:
local onoff = game.StarterGui.DisableBlood.OnOff.Value
local toggle = script.Parent.Frame.Toggle
toggle.MouseButton1Down:Connect(function()
onoff = false
end)
Script:
hurt = true
for _, child in pairs(wep:GetChildren()) do
if child:IsA("Part") then
child.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil and hurt == true then
soundsclone.Hit:Play()
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(25)
hurt = false
if onoff == true then print(onoff)
Bleed:FireAllClients(hit)
end
elseif onoff == false then
end
Thanks,

1 comment
It's being updated on the Server now along with this below but still is acting as if the value were True