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

How do I make NPCs?

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

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.

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.

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

1 comment

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

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