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: ROBLOX's hit detection

Previous Thread :: Next Thread 
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
29 Jul 2016 01:58 AM
Is roblox's hit detection glitchy, or is it just my script?
Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
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
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
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 is not online. Everoso
Joined: 26 Jul 2016
Total Posts: 189
29 Jul 2016 02:04 AM
Probably a debounce issue?


Report Abuse
sharpchain1 is not online. sharpchain1
Joined: 05 Aug 2013
Total Posts: 1009
29 Jul 2016 02:04 AM
like I said add a debounce
Report Abuse
kungzupanda is not online. kungzupanda
Joined: 20 Aug 2011
Total Posts: 183
29 Jul 2016 02:11 AM
how? ;o
Report Abuse
chimmihc is not online. 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 is not online. 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 is not online. 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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
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