Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to add more interactable pieces onto a character body?

What I mean is, I'd like to add an object(joint, part, etc.) that has a CanCollide = false, such as on the leg to indicate the player's "foot", "side of their foot", "the back of the foot", and the "inside of the foot". With this then I could have it to where if the soccer ball (im making a soccer game >_> ) gets hit by a certain side of the foot then it would go in the desired direction. Is it possible to add some type of object onto it that I could use as an "interact" piece? Thanks for your help.

2 answers

Well your simplest way would be to use the armor creator script and edit the names of the parts. Roblox ArmorCreator Then once you do that you would just create a script in the soccer ball detecting what the name of the part that hit it is making the soccer ball move.

--I would recommend weld I think what you mean is weld making the part then welding it to your character some like it would be this
--In a Script
function PlayerAdded(p)
x = Instance.new("Part",Workspace)
x.CanCollide = false
x.TopSurface = "Smooth"
x.BottomSurface = "Smooth"
x.Size=Vector3.new(make this the size of ur right leg)
x.BrickColor=BrickColor.new("")--Whatever brick color u want
local weld = Instance.new("Weld",Workspace)
weld.Part0 = p["Right Leg"]
weld.Part1 = workspace.Part
end
game.Players.PlayerAdded:connect(PlayerAdded)

2 comments

0

That seems like it would work, but how would I make it so that each person that joins the server would automatically get that welded to them?

0

Add the game.Players.PlayerAdded Event

This discussion is preserved as it was. New answers, comments, and votes are closed.