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)
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.