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 » Scripting Helpers
Home Search
 

Re: Prevent Resseting

Previous Thread :: Next Thread 
MonkrysGhost is not online. MonkrysGhost
Joined: 07 Feb 2010
Total Posts: 1505
23 Mar 2014 09:03 AM
How do I prevent people from resetting or block the home screen button on the bottom left corner
Report Abuse
Mowblow is not online. Mowblow
Joined: 03 Mar 2012
Total Posts: 104
23 Mar 2014 09:16 AM
I am not exactly sure, but you could put a TextButton from a ScreenGui over it. Or, if people dying is not part of the game, you could make a localscript with another script to give the local script.

The script would be like:

game.Workspace.ChildAdded:connect(function(child)
local g = child:FindFirstChild("Humanoid")
if (g) then
local f = game.Lighting.AntiRespawnScript:Clone()
local k = child:GetPlayerFromCharacter(child)
f.Parent = k.BackPack

end)

And the localscript in the lighting called "AntiRespawnScript" would be like

local f = game.Players.LocalPlayer
local char = f.Character
local human = char:findFirstChild("Humanoid")

while true do
if human.Health <= 0 then
human.Health = 100
end

Again, this is only an Idea, you would have to see if it would work.
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Mar 2014 09:17 AM
[ Content Deleted ]
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
23 Mar 2014 09:18 AM
change the humanoids name
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
23 Mar 2014 09:29 AM
In my expirience, changing humanoids name, ruins tools.

game.Players.PlayerAdded:connect(p)
p.Character.Humanoid.Died:connect()
Pos = P.Character.Torso.Position
repeat
p.Character:MoveTo(Pos)
wait(1)
until p.Character.Humanoid = default_health
end)
end)


It doesn't STOP reseting, but it doesn't let them leave where they were WHEN they reset. Eventually they will give up anyway...
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
23 Mar 2014 09:30 AM
Ruins tools?
Report Abuse
Teriaan is not online. Teriaan
Joined: 28 Feb 2014
Total Posts: 244
23 Mar 2014 09:37 AM
[ Content Deleted ]
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
23 Mar 2014 09:50 AM
How would that ter?
Report Abuse
MonkrysGhost is not online. MonkrysGhost
Joined: 07 Feb 2010
Total Posts: 1505
23 Mar 2014 10:04 AM
D:
Report Abuse
Teriaan is not online. Teriaan
Joined: 28 Feb 2014
Total Posts: 244
23 Mar 2014 10:04 AM
[ Content Deleted ]
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Mar 2014 10:05 AM
Hmm, I didn't know you scripted.

Rename the humanoid.
Report Abuse
Teriaan is not online. Teriaan
Joined: 28 Feb 2014
Total Posts: 244
23 Mar 2014 10:07 AM
[ Content Deleted ]
Report Abuse
Teriaan is not online. Teriaan
Joined: 28 Feb 2014
Total Posts: 244
23 Mar 2014 10:08 AM
[ Content Deleted ]
Report Abuse
MonkrysGhost is not online. MonkrysGhost
Joined: 07 Feb 2010
Total Posts: 1505
23 Mar 2014 10:12 AM
I dont want people to stop dying, I just dont want them to reset.. And what humanoid? inside the players section in the explorer?
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Mar 2014 10:14 AM
Doesn't stop them from dying if you make edits to the weapons.
Report Abuse
MonkrysGhost is not online. MonkrysGhost
Joined: 07 Feb 2010
Total Posts: 1505
23 Mar 2014 10:15 AM
I just don't want them to reset. I want people to die if they fall off the map, but that's it
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
23 Mar 2014 10:15 AM
Renaming the humanoid will break most tools because most tools look for 'Humanoid' inside the character. I was unaware that renaming the humanoid stopped a player from resetting! I've been looking for a way to do this!

If you rename the humanoid, you'll have to change any tools you use to look for the new humanoid name instead of 'Humanoid' in the script.
Report Abuse
MonkrysGhost is not online. MonkrysGhost
Joined: 07 Feb 2010
Total Posts: 1505
23 Mar 2014 10:29 AM
Uhhgg so complicated.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
23 Mar 2014 10:42 AM
Changing the humanoids name.

Pros;

Can't die without a more complicated kill script

Cons;

Can die

Tools don't work

Hard to refer to later on
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
23 Mar 2014 02:36 PM
[ Content Deleted ]
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
23 Mar 2014 02:37 PM
Or you could, you know, use fake characters instead of the real ones.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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