So when I usually increment a numbervalue I use
Data:Increment(500)
How do I do this with a boolvalue?
I tried doing
Data:Increment(true)
I also tried
Data:Increment("true")
But yeah that didn’t work either…
If you could help that would make my day thanks!
rokec123
(rok)
March 19, 2020, 6:58pm
#2
Try Data:Increment(1)
since true is the same as 1 and false would be 0.
MarkiPr0
(Marki)
March 19, 2020, 6:58pm
#3
boolvalue can only be true or false, you can’t add anything to it I believe
starmaq
(starmaq)
March 19, 2020, 7:02pm
#4
Why not use something simple to just set or update the boolvalue, you don’t nessecarly need to use :Increment()
, use :Update()
maybe.
1 Like
this is simple, just change the “increment” for “Set”.
Data:Set(true)
8 Likes
Thank you so much! <3 I’ve been trying to solve this all day.
Okay so it does work but now it won’t save…
Ok nvm for some reason a serverscript didn’t work but I think its because it didn’t detect the datastore but thank you soo much. I used the console and it saves now.
1 Like