You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I made a bring all command issue is I can’t make it work, -
What is the issue? Include screenshots / videos if possible!
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Everything global variables differentiate between player and other players 3 days on this script
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- This is an example Lua code block
game.ReplicatedStorage.BringAllRemote.OnServerEvent:Connect(function(Player)
for i,v in pairs(game.Players:GetPlayers()) do
for i,x in pairs(ids) do
if v.UserId ~= x then
char = v.Character
print(char)
elseif v.UserId == x then
Owner = game.Players:GetPlayerByUserId(x)
OwnerChar = Owner.Character
Head = OwnerChar.Head
while true do
wait(0.0)
Part.CFrame = Head.CFrame:ToWorldSpace(offset)
char.PrimaryPart.CFrame = Part.CFrame
break
end
end
end
end
end)