So yeah i'm trying this
local A_1 = "Pistol"
local A_2 = game:GetService("Workspace")[tostring(game:GetService('Players').LocalPlayer.Name)]["Pistol"].FrontEnd.Muzzle
local A_3 = game:GetService("Players")[Textboxname.Text]
local Event = game:GetService("ReplicatedStorage").Guns.Remotes.FireGun
Event:FireServer(A_1, A_2, A_3)
But every time I use it the error of attempt to index global Textboxname.Text happens.

10 comments
i think you meant: local A_3 = game:GetService("Players")[Textboxname.Text]
Yeah, it works but still with the same error.
show more code then
local A_1 = "Pistol" local A_2 = game:GetService("Workspace")[tostring(game:GetService('Players').LocalPlayer.Name)]["Pistol"].FrontEnd.Muzzle local A_3 = game:GetService("Players")[Textboxname.Text] local Event = game:GetService("ReplicatedStorage").Guns.Remotes.FireGun Event:FireServer(A_1, A_2, A_3)
Remove
.name?^ Btw, just edit your post; no need to put it into a comment.
Oh, sorry I'm new to this..Also, to avoid questions. I'm making a gui that's why.
You didn't define
Textboxnameprior. :pWouldn’t you need to add something to get the actual connected players like PlayersAdded or a loop through players?
I don't think so since i'm doing a gui where you insert the name.