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

Torso is not a valid member of DataModel?

Asked by 5 years ago

trying to make a gui aka a (it) gui for the tag to appear over someones head when they first join aka who ever joins game first is it but im having a Torso is not a valid member of DataModel error and can't figure out why.



local rs = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local Tagger = false local Gui = rs:WaitForChild("Gui") Players.PlayerAdded:Connect(function(plr) if Tagger == false then Tagger = true repeat wait() until plr.Character Gui.Parent = plr.Character Gui.Adornee = plr.Character.Head end end) local Players = game:GetService("Players") local Gui = script.Parent local GuiOwner = Gui.Parent local Torso = GuiOwner.Torso wait(.5) Torso.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then if Players:FindFirstChild(hit.Parent.Name) then local NewGui = Gui:Clone() NewGui.Parent = hit.Parent NewGui.Adornee = hit.Parent.Head Gui:Destroy() end end end)
0
I'm pertty sure that you need to replace torso with HumanoidRootPart if you are using r15 retrobricks 162 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

With R15, there is no "Torso" part. There is Upper Torso, and Lower Torso. As Zomba said, there's also HumanoidRootPart, which is normally in the middle of the two, but just replace Torso, with UpperTorso, LowerTorso, or HumanoidRootPart.

0
accidentally pressed accept answer, but HumanoidRootPart is not a valid member of BillboardGui i feel like this isn't right A1exTatum 57 — 5y
0
I never said HumanoidRootPart was a member of BillboardGui? I was just saying that Torso isn't a member of an R15 character. Knineteen19 307 — 5y
Ad

Answer this question