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 » Scripting Helpers
Home Search
 

Re: Another lookVector problem...

Previous Thread :: Next Thread 
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:22 AM
while wait() do
workspace.x.CFrame=game.Players.Player1.Character.Torso.CFrame + Vector3.new(0,1600,0)
workspace.x.CFrame=CFrame.new(game.Players.Player1.Character.Torso.Position + (Vector3.new(math.sin(300/100*math.pi),0.05,math.cos(300/100*math.pi))*10))
workspace.x.Text1.Type.Text="Kill Player1"
end
end)

--That is a part of my simple script.
--However I want it to turn around wherever I go, at this point of time,
--it only follows the LEFT side of my torso. And doesn't turn.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:26 AM
Bump
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:27 AM
Bumpz
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:29 AM
Bumpeh
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:30 AM
BOOMPEH
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:33 AM
BÜMPĖŽ
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
09 Mar 2013 09:33 AM
Please be considerate and wait way more than 1 minute between thread bumps.
At the least, provide clearer information, because I for one don't understand what you're doing at all.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:36 AM
@BlueTaslem I will stop bumping then, but you know a normal tablet admin, if you say cmds/ or something like that, about 20 tablets will pop up. How do I make it so that the tablets can turn. If you want an example, search for NOVA Admin and see how the tablets can move and turn.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:37 AM
My tablet already moves, but it doesn't turn it just stays about 5 studs away from me.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:42 AM
Bumping because it's been 4 minutes.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 09:45 AM
Bumped again
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:02 AM
Bump
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
09 Mar 2013 10:10 AM
How is this a lookVector problem?
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:13 AM
I know it isn't, but can you please help?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Mar 2013 10:13 AM
Why are you recreating a free model script?
At least use your imagination and come up with something new ....

Anyway, use a Weld. It's way more efficient than using a loop, and it gives the desired effect.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
09 Mar 2013 10:14 AM
You could use a weld an a loop together.

Yey :)
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:14 AM
@AgentFirefox I know, but I want to create my own tablet admin. And how would I use a weld for this script anyway?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Mar 2013 10:16 AM
Where do you want it positioned?
I need an exact location. :3

Then I'll come up with the welding code.
Also, when you say you want it to spin, what exactly do you mean?
I assume you want it to rotate around your character as your character rotates (as in, you want the tablet to stay in the same position relative to the player's torso). Am I right?
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:18 AM
Yes. Agent, you're right, also I want it anywhere, for example if you say cmds (I already have the function for that) the tablets will appear.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Mar 2013 10:21 AM
But where is the tablet with respect to the player? How m any studs away?
Are the tablets in a circle around the player x studs from the center?
Is there any difference in height between the player and the tablets?

I need specific information.

Or, I could post about welds. But I don't have time to do that right now.
Go look up welds. Learn how they work. Take my alien model and see how I use motors.
Motors are essentially welds, but better. :D

http://www.roblox.com/Field-of-Vision-AI-v1-0-item?id=74475007
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:22 AM
^ About 6 studs away from me.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:31 AM
Bump
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
09 Mar 2013 10:33 AM
I have to go. I'll be back in a few hours.
Go ahead and look at Welds/Motors and try to figure it out yourself.
It's quite easy once you figure out what's going on.

If you're still having trouble when I get back, I'll post an example.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 10:59 AM
Waiting for agent to get back...
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
09 Mar 2013 11:17 AM
Also agent, I forgot to mention that yes, I need it in a circle.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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