Greetings! I am trying to replicate something without creating an object. I am wondering if I can :SetAttribute() game or even ReplicatedStorage if possible, but preferably game, and if it will replicate to the Client.
Thanks in advance!
Greetings! I am trying to replicate something without creating an object. I am wondering if I can :SetAttribute() game or even ReplicatedStorage if possible, but preferably game, and if it will replicate to the Client.
Thanks in advance!
Server
game:SetAttribute("GLOBAL", true)
if game:GetAttribute("GLOBAL") then
print("SERVER")
end
game.ReplicatedStorage:SetAttribute("GLOBAL", true)
if game.ReplicatedStorage:GetAttribute("GLOBAL") then
print("SERVERREP")
end
Client
print("client")
if game:GetAttribute("GLOBAL") then
print("CLIENT")
end
if game.ReplicatedStorage:GetAttribute("GLOBAL") then
print("CLIENTREP")
end
Output:
Basically the attribute replicated for ReplicatedStorage but not game.