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: Quick Question

Previous Thread :: Next Thread 
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
20 Feb 2016 08:27 AM
So I have a basic Dm script, that it clones this part into workspace and damages all players that touch it

function OnT(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.Character.Humanoid.Health = player.Character.Humanoid.Health - 5
end

script.Parent.Touched:connect(OnT)

But if a player is afk and I put the part right onto him, as long as he doesnt move it wont affect him. Is there a known method for fixing this?


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
20 Feb 2016 08:30 AM
Bumped


Report Abuse
ElectoStriking is not online. ElectoStriking
Joined: 10 May 2014
Total Posts: 1547
20 Feb 2016 08:33 AM
something to do with velocity checking but im not sure bout that but u many want to add a debounce to what you have there



#Strikin'
Report Abuse
adzz123 is not online. adzz123
Joined: 11 Jun 2011
Total Posts: 260
20 Feb 2016 08:35 AM
Yeah velocity would allow it to slide off hence causing him to lose health.


There are 10 types of people in this world. Those that understand binary and those that don't.
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