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: gun bulletholes, brick spawn ontop. wat. p.s HALP!!11

Previous Thread :: Next Thread 
Naxxanar is not online. 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 is online. 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 is not online. Thedagz
Joined: 10 Mar 2012
Total Posts: 798
22 Mar 2017 10:07 PM
Try

Potato.CFrame = CFrame.new(Mouse.Hit)
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
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 is online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
22 Mar 2017 10:13 PM
'Tis 3Am.
Report Abuse
Naxxanar is not online. 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 is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
22 Mar 2017 10:16 PM
lmaooo


R$83,276 and climbing.
Report Abuse
Naxxanar is not online. 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 is not online. Naxxanar
Joined: 13 Jun 2012
Total Posts: 709
22 Mar 2017 10:56 PM
i need halp
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