StringValue Value not changing?

I’m trying to automatically assign the LocalPlayer to a StringValue.
It’s not working and there’s no error coming out of the output.

This is my local script (called UserAssignKey) inside of StarterGui:

local player = game:GetService("Players").LocalPlayer
local Name = player.Name
Destination = script.Parent.TechnicaWhitelist.Administrators.User1
Destination.Value = Name

Help is appreciated, I really need to get this going.

Screenshot of the location from the StringValue:

2 Likes

I made something like this before, and it shouldn’t be on a localscript, instead insert a folder in serverstorage and make a remote event, when fired make it change the values and I’m sure it will work

Because if it’s in a local script, it will only change it for the PLAYER not the server itself

1 Like

Yeah, I want it to be changed for the player.

Since the game is only a 1 player game.

Tried that, also didn’t work.

So i’m going with a localscript because the game is a 1 player game only.

so if it is a 1 player game, what is the purpose for changing the values?

The issue has already been fixed by myself.
Purpose is to have a user automatically be whitelisted to use a specific system within the game, in this case the LocalPlayer.