zazy0909
(Slitzzzy)
August 21, 2022, 11:20pm
#1
I’m trying to do a player tag system using IntValues where “1” means the tag is active and “0” is inactive
I have a “task” that should tick the “Has Uranium” tag as “1” but it seems it isn’t working
I’ve tried looking at a few other posts and none of them seem to help my issue
Here is the code I’m using
local PlayersServ = game.Players
local Player = game.Players.LocalPlayer
local TAG = Player.PlayerScripts["Player Tags"]
--Settings--
--Settings--
Button.Triggered:Connect(function(player)
print("Event fired")
TAG["Has Uranium"].Value = 1
print("Gave "..Player.Name.." Tag")
end)
1 Like
nonamehd24
(nonamehd24)
August 21, 2022, 11:30pm
#2
You can use a bool value instead. Also this is really bad for networking as well. I recommend reading this post about this too.
(this post assumes intermediate lua / roblox knowledge)
Introduction
I’m making this post because I see a lot of games using things like the below code snippet in competitive fighting games. This, to be put quite simply, isn’t good at all. I will explain why in this post.
local Stunned = Instance.new("Folder")
Stunned.Name = "Stunned"
Stunned.Parent = Character
The demon that is StarterCharacterScripts
The first common pattern I see is value objects / folders being in StarterCharacterScrip…
zazy0909
(Slitzzzy)
August 21, 2022, 11:32pm
#3
Do you know any methods that are good for networking?
nonamehd24
(nonamehd24)
August 21, 2022, 11:35pm
#4
Actually nvm but what I was saying is you can use bool values for this instead.
1 Like
zazy0909
(Slitzzzy)
August 21, 2022, 11:35pm
#5
Ok, cool. Thank you!
(must have 30 - characters)
Spa_rkk
(spark)
August 21, 2022, 11:43pm
#6
Is it changing from a server or local if local fire it to server.
45t67g
(GamerManBad)
August 22, 2022, 12:00am
#7
Okay so, I agree with nonamehd24 that you should definitely use bool values, however, I think that I could definitely help more if I had more description. What does the output look like, is it printing the “Event fired”? What exactly are you trying to make happen? Given you are using a local script