#i wanna make a part that when the player touches it ...a part get welded to their uppertorso

1 messages · Page 1 of 1 (latest)

ivory vapor
#

**the problem is when the player touches the part...parts keep getting add to his torso..i want only one part get add

local char = toucher.Parent
if char and char:FindFirstChild("Humanoid") then
torsopos = char:FindFirstChild("UpperTorso").Position
local newpart = Instance.new("Part")
newpart.Parent = workspace
newpart.Position = torsopos
weld = Instance.new("WeldConstraint")
weld.Parent = newpart
weld.Part0 = newpart
weld.Part1 = char:FindFirstChild("UpperTorso")

weldAdded = true
print(torsopos)

end

patent pumice
#

Every part of the player triggers this event, and every parent of those parts is the player.

You're going to have to keep track of what players you've given to and what parts of those players you've touched

So when you're no longer touching any parts of that player, delete the player from the list of given to players so they can get it again

serene mural
#

just check if there was no weld added

#

have a table of player names

#

and check if its the same player

#

if not then run that

mortal island
#

it this is in a touched event

#

if

#

it does fires every time you move slightly because the player is touching in that frame

#

create a table for all hit parts

#

hit players*