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

Previous Thread :: Next Thread 
DRMOTT is not online. DRMOTT
Joined: 20 Oct 2008
Total Posts: 515
11 Jan 2015 01:44 PM
Is there a way to make a "safe plate" without using forcefield. Instead you cant get damaged while you are on this plate? The only way i know is using the forcefield and setting a magnitude. Can you do it the other way? if so how?
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
11 Jan 2015 02:20 PM
What is a safe plate?
Report Abuse
TannerLG is not online. TannerLG
Joined: 08 Jan 2015
Total Posts: 51
11 Jan 2015 02:20 PM
Safe Plate is probably like a Safe Zone, where you are protected from certain elements in a game, I suppose.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
11 Jan 2015 02:33 PM
humanoid.MaxHealth = math.huge
humanoid.Health = math.huge
Report Abuse
TannerLG is not online. TannerLG
Joined: 08 Jan 2015
Total Posts: 51
11 Jan 2015 02:36 PM
Some weapons can kill using the dmg amount math.huge though, too.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
11 Jan 2015 02:37 PM
math.inf

:3
Report Abuse
TannerLG is not online. TannerLG
Joined: 08 Jan 2015
Total Posts: 51
11 Jan 2015 05:37 PM
Same there, -.-
Report Abuse
DRMOTT is not online. DRMOTT
Joined: 20 Oct 2008
Total Posts: 515
12 Jan 2015 12:06 PM
hmmm ok thanks!
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Jan 2015 12:37 PM
local safe = script.Parent

safe.Touched:connect(function(hit)
local human = hit.Parent:FindFirstChild("Humnaoid")
if human then
local oldMax = human.MaxHealth
local oldHealth = human.Health
human.MaxHealth = math.huge
human.Health = math.huge
repeat
local hit2 = safe.TouchEnded:wait()
until hit == hit2
hit.Heath = oldHealth
hit.MaxHealth = oldMax
end
end)


Should work.
Report Abuse
DRMOTT is not online. DRMOTT
Joined: 20 Oct 2008
Total Posts: 515
12 Jan 2015 12:46 PM
Ok Thanks
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
12 Jan 2015 01:01 PM
No problem.
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