I want to make all players spawn with a model on their back, and for some reason the model i want does not even show up![](https://imgur.com/bxW7agJ ![](https://imgur.com/UDbMMn2 here is my script:
(Sorry if the script is very bad, im not a great scripter)
local rp = game.ReplicatedStorage local Tank = rp:WaitForChild('Part','Part2','Part3') game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) end) end)
The tank is the model, The child(s) are 'Part', 'Part2', and 'Part3. Im also not asking for a complete script made for me, I just want instructive criticism on how i can fix the script.
the easiest way to go with this is a server script so everyone can see it, but since we cant find the local player with a server script we have to look through every model in workspace and see if the model has a humanoidrootpart and if it does, clone the part from the replicatedstorage and parent them onto the humanoidrootpart, so this would be the script
local rp = game.ReplicatedStorage local Tank = rp:WaitForChild('Part','Part2','Part3') local weld1 = Instance.new("Weld") local weld2 = Instance.new("Weld") local weld3 = Instance.new("Weld") while true do--checks every 0.1 seconds wait0.1 for i, v in pairs(workspace:GetChildren()) do --says v is all the children of workspace if v:FindFirstChild("HumanoidRootPart") then--sees is v (aka the child of workspace) has a humanoidrootpart inside of it local humanoid = v--u understand this i hope if not v.HumanoidRootPart:FindFirstChild("Tank") then--if it cant find Tank inside the humanoidrootpart then Tank:Clone().Parent = humanoid.HumanoidRootPart--this clones and gets the parent humanoidrootpart Tank.CFrame = CFrame.new(humanoid.HumanoidRootPart.Position)--sets the position of the Tank weld1.Parent = humanoid.HumanoidRootPart.Part weld1.Part1 = humanoid.HumanoidRootPart.Part weld1.part2 = humanoid.HumanoidRootPart.Part2 weld2.Parent = humanoid.HumanoidRootPart.Part2 weld2.Part1 = humanoid.HumanoidRootPart.Part2 weld2.part2 = humanoid.HumanoidRootPart.Part weld3.Parent = humanoid.HumanoidRootPart.Part3 weld3.Part1 = humanoid.HumanoidRootPart.Part3 weld3.part2 = humanoid.HumanoidRootPart.Part2 end end end end
i hope this will get u a little bit closer even if its not perfect with the position
Instead of moving every part to the player try welding everything to the main part of the model then welding the main part to the player or just use model:MoveTo() after you get the model from game.ServerStorage