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: Bullet marks showing up on the wall (decals)

Previous Thread :: Next Thread 
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
06 Apr 2016 06:30 PM
how do they make the decals always hit the wall do they just instance a part and how do they always make the Part show in that direction ?
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
06 Apr 2016 06:33 PM
My guess is that when the projectile or ray collides with a brick, an invisible and anchored part is created exactly where the projectile/ray collided, and then a decal is put on that invisible part.
Report Abuse
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
06 Apr 2016 06:34 PM
ik but when i try that dun work
Report Abuse
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
06 Apr 2016 06:42 PM
How Do i rotate the part to face the opposite direction of the look vector of the players torso ?
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
06 Apr 2016 06:43 PM
See how he did this, https://www.roblox.com/Twitch-feet-follow-thing-item?id=352950504 Try something like that.
Report Abuse
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
06 Apr 2016 06:47 PM
Currently trying an attempt on a local
player = game:GetService("Players").LocalPlayer
char = player.Character
mouse = player:GetMouse()
mouse.Button1Down:connect(function()
p = Instance.new("Part",game.Workspace)
p.Anchored = true
p.Size = Vector3.new(1,1,1)
x = mouse.hit.X
y = mouse.hit.Y
z = mouse.hit.Z
p.CFrame = CFrame.new(x,y,z)
mouse.TargetFilter = p
p.Rotation = char.Torso.CFrame.lookVector * 10
end)
while wait() do
print(char.Torso.CFrame.lookVector)
end
Report Abuse
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
06 Apr 2016 07:40 PM
anyone
Report Abuse
rLuaRBLX is not online. rLuaRBLX
Joined: 04 Jan 2016
Total Posts: 70
06 Apr 2016 08:08 PM
The decal isn't actually on the wall, it just appears that way. try creating a transparent brick where the gun hits and adding a decal to that
Report Abuse
regentia is not online. regentia
Joined: 07 Feb 2011
Total Posts: 66
06 Apr 2016 08:20 PM
you need to cast a ray and get the surface normal from the FindPartOnRay() method of the workspace and use that 2 rotate your decal to the right position
Report Abuse
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
13 Apr 2016 03:43 PM
lol when i read this that rluarblx kid did not read what i put Ima try dis ty regentia
Report Abuse
DevDeadly3652 is not online. DevDeadly3652
Joined: 17 Nov 2011
Total Posts: 465
13 Apr 2016 03:45 PM
ok the positioning part is down i use a ray to CFrame it so now how do i Rotate it ?
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