Naxxanar
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 709 |
|
|
| 22 Mar 2017 10:05 PM |
local Potato=Instance.new('Part', Workspace); Potato.Anchored=true Potato.Position=CFrame.new(Mouse.Hit.p) Potato.Size=Vector3.new(.2, .2, .2) Potato.BrickColor=BrickColor.new('Black') Potato.Material=Enum.Material.SmoothPlastic Potato.TopSurface=Enum.SurfaceType.SmoothNoOutlines Potato.BottomSurface=Enum.SurfaceType.SmoothNoOutlines Potato.LeftSurface=Enum.SurfaceType.SmoothNoOutlines Potato.RightSurface=Enum.SurfaceType.SmoothNoOutlines Potato.FrontSurface=Enum.SurfaceType.SmoothNoOutlines Potato.BackSurface=Enum.SurfaceType.SmoothNoOutlines
the "bullet hole" spawns ontop of the brick I shoot at, hALPPP!!!1
what am I doing wrong |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 22 Mar 2017 10:06 PM |
Potato.CFrame=CFrame.new(Mouse.Hit)
Use CFrame not Position. |
|
|
| Report Abuse |
|
|
Thedagz
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 798 |
|
|
| 22 Mar 2017 10:07 PM |
Try
Potato.CFrame = CFrame.new(Mouse.Hit) |
|
|
| Report Abuse |
|
|
|
| 22 Mar 2017 10:12 PM |
"CFrame.new(Mouse.Hit)"
Why are you guys constructing a CFrame value with another CFrame value? PlayerMouse.Hit is already a CFrame value.
|
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
| |
|
Naxxanar
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 709 |
|
|
| 22 Mar 2017 10:15 PM |
| oh yeah sorry about tht "Position" thng, i meant .CFrame, i messed around with it before but it works now. i did a few minor mistakes lol |
|
|
| Report Abuse |
|
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 22 Mar 2017 10:16 PM |
lmaooo
R$83,276 and climbing. |
|
|
| Report Abuse |
|
|
Naxxanar
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 709 |
|
|
| 22 Mar 2017 10:46 PM |
ok bump its working fine with the exception that the bullethole lands whereever the mouse is pointed. :c
if Mouse and Mouse.Target~=nil and Mouse.Target:IsA('BasePart') then BulletHole=Instance.new('Part', Workspace); BulletHole.Name='BulletHole' BulletHole.Anchored=true BulletHole.CanCollide=false BulletHole.CFrame=CFrame.new(Mouse.Hit.p) BulletHole.Size=Vector3.new(.2, .2, .2) BulletHole.BrickColor=BrickColor.new('Black') BulletHole.Material=Enum.Material.SmoothPlastic BulletHole.TopSurface=Enum.SurfaceType.SmoothNoOutlines BulletHole.BottomSurface=Enum.SurfaceType.SmoothNoOutlines BulletHole.LeftSurface=Enum.SurfaceType.SmoothNoOutlines BulletHole.RightSurface=Enum.SurfaceType.SmoothNoOutlines BulletHole.FrontSurface=Enum.SurfaceType.SmoothNoOutlines BulletHole.BackSurface=Enum.SurfaceType.SmoothNoOutlines BulletHole.Material=Enum.Material.Slate local CleanerCloneTwo=CleanerClone:Clone(); CleanerCloneTwo.Parent=BulletHole CleanerCloneTwo.Disabled=false else end; |
|
|
| Report Abuse |
|
|
Naxxanar
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 709 |
|
| |
|