Trying to fix a value GUI (Name changing for it)

Here.lua (675 Bytes)

Wait, I changed something very quickly, cause I did something wrong, I’ll try again.

local Allowed = {[1130831331] = true, [0] = true} -- your User Id(s)
local ServerStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:Connect(function(Player)
	if Allowed[Player.UserId] then
		local UI = ServerStorage:FindFirstChild("Admin"):Clone()
		UI.Parent = Player.PlayerGui
	end
end)

local Function = game:GetService("ReplicatedStorage"):FindFirstChild("^&*")

Function.OnServerInvoke = function(Player, Username, Race)
	print(Username, Race)
	Player.Race.Value = tostring(Race)
	print(Player.Name ..  " changed " ..  tostring(Race.Text) .. " " .. tostring(game.Players:FindFirstChild(Username).Race.Value) .. " to " .. Username)
end

It just doesn’t work.

i cant import in studio (30 30 30 30)

Just copy and paste above, it’s a script anyways, not local. and it’s called “ServerScript”

i forgor something, here;

Function.OnServerInvoke = function(Player, Username, Race)
	print(Username, Race)
	Player.Race.Value = Race.Text
	print(Player.Name ..  " changed " ..  tostring(Race.Text) .. " " .. tostring(game.Players:FindFirstChild(Username).Race.Value) .. " to " .. Username)
end

Alright, I’ll try again, hopefully it’ll work.

The GUI won’t open LOL, only the button moves down.


made it visible.

use visible in code im tired (30 30 30)

Also mind updating it slightly then, so it just goes visible?

The only 2 things that appear is this, like not even joking.