I don't exactly know what the title should be. but still please help me

No need to apologize for your English. The only thing I could think that could be the issue is this.

  brain.Value = brain.Value - 1

maybe just change it to

brain.Value -= 1 

and see how that works.

idk if it works because the “lighting” part makes the whole screen white because its brightness is too high

imagine if this actually works lol.

nope. it doesn’t work. i just use the tool and after 2 seconds it becomes normal again.

try doing basically the same thing to do the tool script, and maybe then it’d work.
(I believe you said this is your current tool script)

local tool = script.Parent

tool.Equipped:Connect(function()
	print("Tool equipped")

	tool.Activated:Connect(function()
		print("Button clicked")
		local brainValue = workspace.Script.Brain.Value
		print("Before:", brainValue)

		brainValue = brainValue + 50
		workspace.Script.Brain.Value = brainValue
		
		
			print("After:", brainValue)
		end)
	end)

basically, change that into

local tool = script.Parent

tool.Equipped:Connect(function()
	print("Tool equipped")

	tool.Activated:Connect(function()
		print("Button clicked")
		print("Before:", workspace.Script.Brain.Value)

		workspace.Script.Brain.Value += 50


			print("After:", workspace.Script.Brain.Value)
		end)
	end)

I don’t know if it’ll change anything, but the only other thing I could think the issue is, is if you’re forgetting you set some sort of other script to limit sanity, making it so it can never go above 200.

i didn’t think about the limit. maybe it will work now.

nope it still doesn’t work. i don’t understand how roblox be saying that it’s easy to script when u can’t create a basic script like this.

well, I unfortunately have no other clue what to say to fix your issue. The only thing I could recommend is disabling each script that controls brain value and carefully piecing it together one by one (like disabling the script that subtracts 1 from brainvalue every two seconds, and leaving only the tool script enabled to see if the issue itself comes from the tool adding 50 somehow.) I wish you the best of luck, and I hope you can figure out a solution soon enough!

1 Like

yeah thanks for saying that. ill try to disable the script everytime i click.

1 Like