'(Roblox) Remoteevents teleporting

serverscriptservice script

game.ReplicatedStorage.AdminEvent.OnServerEvent:Connect(function(plr,action,arg1,arg2)
        if action == "Teleport" then
        plr.Character.HumanoidRootPart.CFrame = arg1.Character.HumanoidRootPart.CFrame
        print(arg1)
        print(arg1.Character.HumanoidRootPart.CFrame)
        print(plr.Character.HumanoidRootPart.CFrame)

local gui button script


    
    
function OnClicked() 
    print("clicked")
    
    local arg1

    for index, v in pairs(game.Players:GetDescendants()) do if v:Is(script.Parent.Parent.Parent.TextLabel.TextLabel.Text) then arg1 = v
            local action = "Teleport"
            local plr = game.Players.LocalPlayer
        
        

    game.ReplicatedStorage.AdminEvent:FireServer(plr,action,arg1)
            end
    script.Parent.MouseButton1Down:connect(OnClicked)
        
    end 
end

    
    game.ReplicatedStorage.AdminEvent:FireServer(plr, action, arg1)

no errors in output or the stuff that I try printing like the CFrame



Solution 1:[1]

idk why i got logged in a different account when pressing login with google but I solved this

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 asbjdawbsd