generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to make a mesh object follow the player?

Previous Thread :: Next Thread 
RESlGN is not online. RESlGN
Joined: 31 May 2016
Total Posts: 739
07 Dec 2016 02:11 PM
I don't know if you can but I was just wondering because I need it for a game I am making.
Report Abuse
iLordOfAviation is online. iLordOfAviation
Joined: 23 Mar 2012
Total Posts: 1325
07 Dec 2016 02:32 PM
Same as you would for a regular part


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
07 Dec 2016 02:36 PM
Positions = {}
char = -- define char
creature = -- define creature
oldPos = char.Torso.Position

while wait(1/2) do
if char.Torso.Position ~= char.Position then
oldPos = char.Torso.Position
if #Positions == 5 then
creature:MoveTo(Postions[1])
for i = 1,#Positions-1 in pairs(Positions) do
Positions[i] = Positions[i+1]
Positions[#Positions] = char.Torso.Position
end
else
table.insert(char.Torso.Position)
end
end
end

-- untested, can probably be made more simple



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image