-
What do you want to achieve? I want to clone the ui to the target player.
-
What is the issue? Doesnt clone the ui to target player.
-
What solutions have you tried so far? No solutions.
local player = game.Players.LocalPlayer
local AssignFrame = script.Parent.AssignFrame
local AssignedFrame = script.Parent.Assigned
local Username_Frame = script.Parent.AssignFrame.Username
local mouse = player:GetMouse()
--Department Button
local GC = AssignFrame.GC
local CC = AssignFrame.CC
local CPT = AssignFrame.Captain
local FO = AssignFrame.FO
local Supervsor = AssignFrame.Supervisor
local CoHost = AssignFrame["Co-Host"]
--Main Button Works
mouse.Button1Down:Connect(function()
local target = mouse.Target
if target.Parent:FindFirstChild("Humanoid") and target.Parent ~= game.Workspace then
Username_Frame.Text = target.Parent.Name
GC.MouseButton1Click:Connect(function()
target.AssignedFrame:Clone()
Username_Frame.Text = "It worked."
end)
end
end)