Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Not creating a part on every player in the game?

Asked by 6 years ago

only like about 7 players it creates a part on ;-;

for i,p in pairs (game.Players:GetPlayers()) do
     ok = Instance.new("Part", p.Character)
0
try p.Character.Head.Position to indicate where it is or you could do something like "if v and v.Character then" so it doesnt error. Just ideas birdeater11 14 — 6y

1 answer

Log in to vote
-1
Answered by 6 years ago

To create a part in every character on spawn, use this

--Place In StarterPlayer>StarterCharacter

--LocalScript

Character = script.Parent

ok = Instance.new("Part", Character)
0
If this helps, please give me a vote. It helps me out, thnx :) NepalClamps 13 — 6y
Ad

Answer this question