My script is like this:
script.Parent.Shoot.OnServerEvent:Connect(function(PlrName,MouseyPos) print(MouseyPos) local Char = script.Parent local PlrInThisWeapon = game:GetService("Players"):GetChildren(Char.Name) ---------etc.
Why it got player's name, but can't find player? Help me!
you have to follow the script, GetChildren does not get one object, it gets all the children, and Players object does not have GetChildren function.
I just use the following script
local player for _,p in pairs(game.Players:GetPlayers()) do if p.Name == playerName then player = p break end end