|
| 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
|
  |
| 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 |
|
|
|
| 06 Apr 2016 06:34 PM |
| ik but when i try that dun work |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|