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
|
  |
| 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 |
|
|
|
| 16 May 2013 02:31 PM |
BrickColor.random()
get out |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
| |
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 16 May 2013 02:36 PM |
| 129k, you wouldnt have helped anyway. |
|
|
| Report Abuse |
|
|
|
| 16 May 2013 02:39 PM |
@Fedora Stop. Just stop. Everything you say is just invalid and idiotic. Just go away. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 3252 |
|
|
| 16 May 2013 02:43 PM |
| http://www.roblox.com/goto-SH-item?id=115779842 |
|
|
| Report Abuse |
|
|