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: Making a Turret

Previous Thread :: Next Thread 
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 07:16 PM
Hi does anyone know a way to make a turret? I'm a little stuck trying to find it out. A tutorial or any help would be appreciated. I tried to Google it but no luck.
I'm trying to make the turret fire at zombies... More or less I already have the shooting part down. I just need help making it aim at a zombie.
Report Abuse
jhend27513 is not online. jhend27513
Joined: 17 Sep 2011
Total Posts: 3369
27 Nov 2014 07:19 PM
Make the turret.
Make it find humanoids
Make sure the humanoids are real
Make some projectiles
Make projectiles change humanoid's health.

Jeebus is the reason for the season
Report Abuse
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 07:27 PM
I think I should get off the forums for now on....
Report Abuse
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 07:27 PM
Opens Door* Leaves* (ノಠ益ಠ)ノ彡┻━┻
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
27 Nov 2014 07:29 PM
OMG it's eseth!!!
HI I DONT KNOW IF YOU REMEBMER ME IM YOUR BIGGEST FAN
Report Abuse
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 07:32 PM
Oh.. Hi then I guess? I'm just on here table flipping Yeeea
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
27 Nov 2014 07:34 PM
YEAH I CANT BELIEVE YOU DONT REMEMBER ME WE PLAYED HANGOUT AT ROBLOX BEACH THAT ONE TIME AND YOU SAID YOU WOULD ADD ME BUT YOU NEVER DID!
Report Abuse
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 07:35 PM
Well It's been a very long time since I've been on roblox so yea... ¯\_(ツ)_/¯ I decided to go ahead and try to redesign my game. We should probably stop posting here since it bumps this thread
Report Abuse
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 08:01 PM
Ok I have a turret but I'm having another issue. How would I get the turret to detect groups inside of other groups

Overall it works but when I have 2 zombies grouped together into a group it can't seem to find where the zombies are at.

function findNearestTorso(pos)
local list = game.Workspace:GetChildren()
-- local longlist = list:GetChildren()
local torso = nil
local dist = 150
local temp = nil
local human = nil
local temp2 = nil
for x = 1, #list do
temp2 = list[x]
if (temp2.className == "Model") and (temp2 ~= script.Parent) then
temp = temp2:findFirstChild("Torso")
human = temp2:findFirstChild("Zombie")
if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
if (temp.Position - pos).magnitude < dist then
torso = temp
dist = (temp.Position - pos).magnitude
end
end
end
end
return torso
end
Report Abuse
eseth3 is not online. eseth3
Joined: 13 Mar 2010
Total Posts: 109
27 Nov 2014 08:21 PM
Bump
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