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

Help with a car that follows a player if it sees a player and if a player touches it it dies?

Here is the script

function SeeFollow(player)
if Car.Player.NearPosition then --If the car is near a player,continue
Car = Follow.Player.Position --Follow the player
end
Car.Follow:connect(SeeFollow)
function onTouch(player)
Player.Touched.Health = 0 --If a player touched the car, it dies
end
Car.Touched:connect(onTouch)

3 comments

0

Did you really try to make this script, or are you expecting us to make the script for you?

0

Really trying.I'm not that good at scripting

0

Man, look at the wiki for proper API usage...

1 answer

✓ Accepted answer

It seems you either didn't try and wanted us to do it, or do not know how to properly use Lua. There's no Health property of the Touched event.. I recommend you spend a lot of time on the Wiki getting everything down. You'll need to learn magnitude.

6 comments

0

Some psychiatric help might also be a good idea.

0

WHAT DOES MAGNITUDE MEAN

0

I updated it with a link

0

Cool

0

Accept my answer if this helped!

0

Srry for caps on my what is magnitude comment XD

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