NinjoOnline
(NinjoOnline)
November 22, 2021, 12:42pm
#1
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
--// function that returns device
print("Device:", Device, "Touch:", IsTouch)
Player:SetAttribute("Device", Device)
Player:SetAttribute("IsTouch", IsTouch)
print("SET", Player:GetAttribute("IsTouch"))
-- RobuxShopUI
print(Player:GetAttribute("IsTouch"))
As you can see, the script that sets the attribute is fired and finished FIRST. So there’s no reason (RobuxShopUI) should be printing nothing?
It also doesn’t show on my players attributes?? To my knowledge, there is no limit on how many attributes can be set
I’m also NOT setting it to nil anywhere:
Qin2007
(Qin2007)
November 22, 2021, 1:40pm
#2
maybe
returns nil
NinjoOnline:
IsTouch
is nil
he cant know that if i this
I do a print, the print returns a valid response. The function is not returning nil values
Forummer
(Forummer)
November 22, 2021, 2:49pm
#4
Attributes are now available!
Hey developers,
Over the past year we’ve been working on a new feature called Attributes. Our goal was to provide an efficient way to set and configure parameters for game assets, allowing developers to rapidly iterate and customize key features.
We are excited to announce the launch of the Attributes Studio Beta so that you can try them out and give us feedback before we enable them on production.
How do I enable the beta?
You can enable attributes under th…
There is a limit per instance but apparently it’s very large and unlikely to be reached.
However your issue is occurring because you’re setting the attribute from a local script, the article linked above states.
Q. Are they replicated from the client to server?
A. No. Attributes respect filtering rules, the only exception to this is team-create.
NinjoOnline
(NinjoOnline)
November 22, 2021, 10:46pm
#5
If you look at my prints you can see I am referencing it from the client… I never reference the attribute from the server, and the output even says CLIENT… hence this is not the problem
Forummer
(Forummer)
November 22, 2021, 11:25pm
#6
Wasn’t sure because of this.
NinjoOnline
(NinjoOnline)
November 22, 2021, 11:30pm
#7
That has nothing to do with my question