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: How do you show where a bullet hit?

Previous Thread :: Next Thread 
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
14 Jun 2016 04:42 PM
I have this, but it's so bad cant really figure this out.

if T.Name == "Scat" then
local PH = Instance.new("Part",workspace)
PH.Anchored = true
PH.CanCollide = false
PH.FormFactor = "Custom"
PH.Size = Vector3.new(0.25,0.25,0.25)
PH.CFrame = B.CFrame
PH.Rotation = T.Rotation
B:Destroy()
game.Debris:AddItem(PH,5)
end


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
14 Jun 2016 04:43 PM
what is B and T?
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
14 Jun 2016 04:44 PM
If you looked you could tell, lol but I really should have said so T is the part that being hit, and B is the bullet.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Codons is not online. Codons
Joined: 25 Feb 2016
Total Posts: 273
14 Jun 2016 04:45 PM
um those are horrible variable names so it's kind of hard to tell


Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
14 Jun 2016 04:46 PM
Well it would be nice if you had the normal to go along with it but this should do:
PH.CFrame = (T.CFrame - T.Position) + B.Position
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
14 Jun 2016 04:51 PM
It does the same thing. It seems to work but really late, as in it goes threw the part most the time and sticks on the other side and sometimes even off the part it hits.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
14 Jun 2016 05:11 PM
mk


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
14 Jun 2016 08:01 PM
Like this is really something that's so hard and no one can help with it...
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
14 Jun 2016 08:04 PM
Switch to ray if you care so much about what it hits.
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
15 Jun 2016 06:07 AM
Idk how to do rays, this is my very first attempt to even make a gun and everything works including reload, the gui, sounds... Is there no way to do this like this -_-?


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
15 Jun 2016 08:01 AM
BulletHoleTexture = "http://www.roblox.com/asset/?id=64291961";
I really can only help with that because I have no idea what parts are in your gun.


420.69 dogescoped
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
15 Jun 2016 10:08 AM
I have said what the parts are... Read the replies.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
15 Jun 2016 09:35 PM
Bump
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
15 Jun 2016 09:44 PM
http://wiki.roblox.com/index.php?title=Making_a_ray-casting_laser_gun

Laser guns and normal guns work pretty much the same.
Report Abuse
exoSentinel is not online. exoSentinel
Joined: 18 Mar 2012
Total Posts: 2795
15 Jun 2016 09:45 PM
How2MakeSmoothParticleProjectileSendHelp


Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
16 Jun 2016 07:46 AM
If this can be done without ray I'm not changing it, bump.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
16 Jun 2016 08:01 AM
please stop bumping this
Use TurboFusion's gunkits as an example.


420.69 dogescoped
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
16 Jun 2016 08:03 AM
I will not use any kits for example when people here can help, and I will not stop bumping until I get help.
There is no reason why someone cant help. This should be extremely easy for most of you and I know it does not require much to do this.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Goocolax is not online. Goocolax
Joined: 14 Jun 2016
Total Posts: 226
16 Jun 2016 08:05 AM
I really would help but your being a jerk and refusing to stop bumping, use a kit man. Your first step shouldn't be ask scripters.
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
16 Jun 2016 08:13 AM
I'm in no way being a jerk.
This is obviously not my first step, as you can see I did try and I proved code, if you're assuming I'm new to coding, I'm not.
This was my first gun attempt and everything works but this is a little someone extra I'd like to know how to do.

As I said before I will not stop bumping this, I see people write hella lines of code for users and I help people all the time so I know someone here can help if you aren't helping and are going off the topic don't post here, or do I'll just ignore every off topic post from now on.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
16 Jun 2016 08:15 AM
Are you trying to make it display some sort of effect if it hits something, or detect if it hits a certain object?
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
16 Jun 2016 08:17 AM
I'm just trying to show a part where the bullet hit, so if you shoot a wall it will show where the bullet hit the wall for a few seconds by creating a part in that exact position.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Goocolax is not online. Goocolax
Joined: 14 Jun 2016
Total Posts: 226
16 Jun 2016 08:18 AM
Look, here's a bit of code out of my old project. Now scram.

bullet.Touched:connect(function(hit)
bullet.Anchored=true
end)

from there, feel free to make the bullet invisible and in its place put your little PH marker
Report Abuse
Briicks is not online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
16 Jun 2016 08:19 AM
You should take a look at the posts here before you post.


Super Fast Profit Finder - https://www.roblox.com/games/421528235/Super-Fast-Profit-Finder
Report Abuse
Grevok is not online. Grevok
Joined: 07 Jul 2013
Total Posts: 1652
16 Jun 2016 08:20 AM
If its extremely easy, then why do you reject our help?


420.69 dogescoped
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