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

Previous Thread :: Next Thread 
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
10 Nov 2016 09:16 AM
I've made a turret that shoots while it turns in circles. But that isn't what I want. How would i make the turret face the direction of the player (with rays maybe?)? The rest i can handle. This idea hit me, how do i make the turret face the right direction?
Report Abuse
Egzekiel is not online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
10 Nov 2016 09:45 AM
Use a BodyGyro or a loop and use model:SetPrimaryPartCFrame(turret.Position,torso.Position)


Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
10 Nov 2016 05:29 PM
what does model set primary part cframe do? make it look at point?
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
10 Nov 2016 05:31 PM
while game:GetService('RunService').RenderStepped:wait() do
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame,target.CFrame)
end
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
10 Nov 2016 05:32 PM
CFrame.p***
Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
10 Nov 2016 06:31 PM
Alls gud, except that my hinge that i have in place to make it turn "forever", when disabled it doesn't make the turret stare at the player...
Report Abuse
Xstarlight is not online. Xstarlight
Joined: 18 Oct 2012
Total Posts: 870
11 Nov 2016 01:44 PM
B1
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