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: Help?

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 May 2013 02:29 PM
So i posted a thread on SH and asked what was wrong with my script but SH doesent HAVE BALLS TO FIX! anyway, sorry if you dont like i post it here but im desperate after doing this thing.So i have a simple shooting script which shoots a ball from my torso to where i click.First i place the brick inside my torso then i make the shooting.But when i first place the bullet in my torso, the bullet shoots from the top of my head instead of the torso.Because im using position when placing it in torso, so how would i place it in my torso using CFrame.I tried but it didnt allow me to do it:

local me = game.Players.LocalPlayer
local tool = script.Parent

local ws = game:GetService("Workspace")

tool.Selected:connect(function(mouse)
mouse.Button1Down:connect(function()

handle = me.Character.Torso

local p = Instance.new("Part", ws)
p.Position = handle.Position------------------THIS IS THE LINE
p.TopSurface = "Smooth"
p.BottomSurface = "Smooth"
p.Shape = Enum.PartType.Ball
p.Size = Vector3.new(1, 1, 1)
p.CanCollide = false
p.BrickColor = BrickColor:Random()

local bv = Instance.new("BodyVelocity")
bv.Parent = p
bv.velocity = (mouse.Hit.p - handle.Position).unit*90
end)
end)
Report Abuse
129K is not online. 129K
Joined: 23 Aug 2011
Total Posts: 19010
16 May 2013 02:31 PM
"but SH doesent HAVE _____ TO FIX! "

I was going to help, until I noticed this.
Report Abuse
KilITheClones is not online. KilITheClones
Joined: 19 Mar 2013
Total Posts: 665
16 May 2013 02:31 PM
BrickColor.random()

get out
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 May 2013 02:32 PM
Lawl, the color actually works.And 129k.Ever heard a joke? think not.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
16 May 2013 02:32 PM
p.CFrame = handle.CFrame * Vector3.new(0, 0, -2);

Even if Scripting Helpers didn't give you the correct answer, this still doesn't belong here, and definitely doesn't require insults.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 May 2013 02:33 PM
Droid.Since when did balls because an insult? and why say "insults" its called "insult" and it wasnt even one.And i dont want it moved away i want it to start in the torso..
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 May 2013 02:35 PM
If it was that big of an insult then im sorry....
Report Abuse
129K is not online. 129K
Joined: 23 Aug 2011
Total Posts: 19010
16 May 2013 02:35 PM
Doesn't matter if it's a joke or not. Reported.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
16 May 2013 02:36 PM
p.CFrame = handle.CFrame;
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 May 2013 02:36 PM
129k, you wouldnt have helped anyway.
Report Abuse
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
16 May 2013 02:39 PM
@Fedora
Stop. Just stop. Everything you say is just invalid and idiotic. Just go away.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
16 May 2013 02:40 PM
Im just gona pretend the other comments doesent exist, droid didnt work.nothing happend :/
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
16 May 2013 02:43 PM
http://www.roblox.com/goto-SH-item?id=115779842
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