Categories > Coding > Lua >

Can people make a script fix for an utg gui?

Posts: 7

Threads: 2

Joined: Apr, 2020

Reputation: 0

Posted

Its an RBXM for a roblox game, Make it for a certain person.

  • 0

falsepikawoods

Pika Pika!

Posts: 11

Threads: 2

Joined: Jun, 2020

Reputation: 1

Replied

As a utg remixist myself, a good idea would be to put the utg gui into a module script (as a parent) and name it "MainModule"
and put the following code inside the module:

 

function module.Load(plr)

for _, v in pairs(game:GetService("Players"):GetPlayers()) do

if string.sub(string.lower(v.Name), 0, string.len(plr)) == string.lower(plr) then

local gui = script.AccessUI:Clone()

gui.Parent = v:FindFirstChildWhichIsA("PlayerGui")

end

end

end

 

then upload the module as a model, get the id of that model then you can delete the module from the workspace and create a server script (plain script, not local or module) and put it inside the service "ServerScriptService"
and inside that script put the following code

 

game.Players.PlayerAdded:Connect(function(player)

    if player.Name = "Put Username Here" then

    require(ModuleIDHere).Load("Put Username Here")

else

    print("no utg for u")

end)


now, test the game and the utg should show up!
hope this helps!
if you have questions dm me on discord

  • 0

pikachu hackerman
exploits i own(ed)
SirHurt  (ip logger :clown:)
Sentinel had but then gave acc
planning to get

Synapse X

B
B
B
B
B
B
B
B
B
B
B
B
B
B
b

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )