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

What Service or type of script is used to make a "part" appear behind your character when he walks?

Asked by 10 years ago

Im thinking about making a game that makes it to where when you walk a part appears behind your character such as in murder mystery

2 answers

Log in to vote
0
Answered by
Diitto 230 Moderation Voter
10 years ago

I would recommend that you have a LocalScript in every player that makes it so that every 5 or so seconds, a small part is made where their feet are, and then 25 seconds later, the part is destroyed.

Example:

01wait();
02script:destroy();--// Anti Death Removal
03 
04local Player=game:service'Players'.localPlayer;
05local TrailSize=2;--// The trail size. Can be changed.
06 
07while(wait(5))do--// Do this every 5 seconds
08    local Character=Player.Character;
09 
10    if(
11        Character--// If they have a character
12        and Character.Parent=workspace--// If the character is in the workspace ( prevents errors from falling off the base )
13        and Character:findFirstChild'Right Leg'--// If they have a right leg
14        and Character:findFirstChild'Left Leg'--// If they have a left leg
15        and Character:findFirstChild'Humanoid'--// If they are a real character
View all 51 lines...

***** Interesting ChatColor class found on NoliCAIKS' code snippet container. It gets the Player's chat color, which is determined by their name.

0
When i play it in studio mode and walk around the baseplate nothing shows up. Do i have to be in Play Mode? iThunderStrike24 0 — 10y
0
Is there an error? If so, it's because you did not put in the ChatColor module that I posted on my answer. Diitto 230 — 10y
Ad
Log in to vote
-2
Answered by 10 years ago

Oh! That is called pathfinding! Go to this link!

http://wiki.roblox.com/index.php?title=Pathfinding

0
ive done that but it doesnt work it doesnt cut off in certain "parts" like on murder mystery iThunderStrike24 0 — 10y
0
Oh well... You have to code that and maybe before you start giving me a minus learn how to script... fualtyhellboy 5 — 10y
0
He's asking a good question, and you're not helping. EzraNehemiah_TF2 3552 — 10y

Answer this question