|
| 29 Jul 2016 01:58 AM |
| Is roblox's hit detection glitchy, or is it just my script? |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2016 02:00 AM |
| well if you mean "glitchy" as in its saying it got hit a ton of times when u only see it as being touched once then no. You just need to add a debounce. But srsly plz explain the problem more thoroughly |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2016 02:03 AM |
| An explain, a brick is suppose to teleport you to the start when you touch it, however you may get a few extra bounces in before you get teleported. |
|
|
| Report Abuse |
|
|
Everoso
|
  |
| Joined: 26 Jul 2016 |
| Total Posts: 189 |
|
|
| 29 Jul 2016 02:04 AM |
Probably a debounce issue?
|
|
|
| Report Abuse |
|
|
|
| 29 Jul 2016 02:04 AM |
| like I said add a debounce |
|
|
| Report Abuse |
|
|
| |
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 29 Jul 2016 02:21 AM |
| Computers take time to do things, just like people. When you give it more and more work to do, it is gonna take longer and longer to complete. |
|
|
| Report Abuse |
|
|
arthas045
|
  |
| Joined: 07 May 2014 |
| Total Posts: 296 |
|
|
| 29 Jul 2016 02:29 AM |
| When your character touches a brick, the touch is registered several times because of the animations or movement. As such, several, the .Touched event is fired several times. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 29 Jul 2016 02:37 AM |
"An explain, a brick is suppose to teleport you to the start when you touch it, however you may get a few extra bounces in before you get teleported."
Learn to read guys. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2016 03:14 AM |
local waittime = tick() local timeToWait = 1
function teleport(argument)
--bla bla
end
something.Touched:connect(function(hit)
if hit and hit.Parent and game.Players:GetPlayerFromCharacter(hit.Parent) and tick() - waittime > timeToWait then waittime = tick() teleport(hit.Parent)
end
end) |
|
|
| Report Abuse |
|
|