game.ReplicatedStorage.Start.OnServerEvent:Connect(function(plr, stand, id)
print(Stand) -- Getting nil.
local ReallyStand = plr.Character:FindFirstChild("Stand")
print(ReallyStand) -- Geting again nil, bruh..
end)
Im cant solve this problem, im tryed to got this stand with for i v in pairs, but this not helped, this function doesnt finded the model with stand, but in Explorer i can succesfuly see this stand (im calling event when im has been spawned, 20-30 sec again with check before calling.)
Hi there! If I’m correct you can’t access the player’s character from a server script like that.
I would recommend you find the player’s character by doing this.
local char = workspace:FindFirstChild(plr.Name)
I know it’s not the best way, since there are a lot of things that can go wrong with this method.
But it can do the job what you need.
Just make sure, there aren’t any models named the same as the player’s name, but if there is you can solve it by doing a check like this:
local char
if workspace:FindFirstChild(plr.Name) and workspace:FindFirstChild(plr.Name):FindFirstChild("Humanoid") then
char = workspace:FindFirstChild(plr.Name)
end
game.ReplicatedStorage.Start.OnServerEvent:Connect(function(plr, stand, id)
print(stand) -- Getting nil.
local ReallyStand = plr.Character:FindFirstChild("stand")
if ReallyStand then
print("Yes")
else
print("No")
end
end)