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

How do I make NPCs?

Asked by 10 years ago

I want to have ghosts floating around the lobby of my game. I don't want them to have health or anything, just for them to like float around. I need them to automatically move around the lobby. Is this possible?

4 answers

Log in to vote
1
Answered by
Link43758 175
10 years ago

Yup! You should probably be doing some research on BodyVelocity and BodyGyro for objects that fly in the air: http://wiki.roblox.com/index.php/RBX.lua.BodyVelocity_(Object) http://wiki.roblox.com/index.php/RBX.lua.BodyGyro_(Object)

Ad
Log in to vote
0
Answered by 10 years ago

Yes. You can weld bricks and then use CFrame to move them. BTW NPC's names and health bar doesn't have to show. Just remove the name and let the MaxHealth be 0.

Log in to vote
0
Answered by 10 years ago

This is, possible you need to study over some velocities and stuff, and by the way if you don't want them to go away or trhrough the lobby, use raycast to check if somethhing is in it's way.

Log in to vote
0
Answered by
neoG457 315 Moderation Voter
10 years ago

Ghost = script.Parent

while true do

--Ghost goes up for x = 1,15 do Ghost.CFrame = Ghost.CFrame + Vector3.new(0,5,0) wait(0.1) end

--Ghost goes down You can change it to move back and forward for x = 1,15 do Ghost.CFrame = Ghost.CFrame + Vector3.new(0,-5,0) wait(0.1) end end

0
Find a simple model of a robloxian, turn al of its body parts transparent insert this script into the model or atleast all the body parts and it should move up and down neoG457 315 — 10y

Answer this question