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

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

Asked by 9 years ago

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

Log in to vote
0
Answered by
Hexcede 52
9 years ago

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.

Ad
Log in to vote
0
Answered by 9 years ago
--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)
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? Ghost4Man 25 — 9y
0
Add the game.Players.PlayerAdded Event legomaster38 39 — 9y

Answer this question