Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

How can i make it so people can exploit into god mode? [closed]

Asked by 4 years ago
Edited 4 years ago

I need this so that I can make it so people cant use an exploit to make themself god mode.

0
... RealTinCan 217 — 4y
0
Script? Vortex_Vasne 89 — 4y
1
game.Players.LocalPlayer.Character.Humanoid.MaxHealth = math.huge game.Players.LocalPlayer.Character.Humanoid.Health = math.huge greatneil80 2647 — 4y
0
The title 'can' spelt wrong. Change it to 'can't'. And type carefully :P Xapelize 2658 — 4y

Closed as Not Constructive by BlackOrange3343

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

Remember, this wasn't a request site. I give you a warning.

Ok, let get right into that question's answer :)

game.Players.PlayerAdded:Connect(function(plr)

end)

If a player added, it will automatically get local. (Maybe it's the right to explain or I don't know)

'end)' is a thing that ends from :Connect(function)

game.Players.PlayerAdded:Connect(function(plr)
    if plr and plr:FindFirstChild("Humanoid") then

    end
end)
~~~~~~~~~~~~~~~~

Finds player's humanoid and local it :)

'end' is a end from if statement.

game.Players.PlayerAdded:Connect(function(plr) if plr and plr:FindFirstChild("Humanoid") then if plr:FindFirstChild("Humanoid").Health == 100 then

    end
end

end)

Line 3 means if the player humanoid's health was 100 then...

game.Players.PlayerAdded:Connect(function(plr)
    if plr and plr:FindFirstChild("Humanoid") then
        if plr:FindFirstChild("Humanoid").Health == 100 then
            print(plr.Character.Name.." is a good player he didn't exploits :)")
            else
            plr:Kick("You have been banned by hacking into god mode >:(")
            end
    end
end)

Line 4 means if the player was good (Health was 100) then print example: Player1 is a good player he didn't exploit :)

ELSE

Kicks the people with reason: You have been banned by hacking into god mode >:(

So this script maybe will work I don't know because I didn't test it out in Roblox studio

Thanks for reading, Bye! :3

If you have any question, comment below :) I happy to answer them :D

Ad
Log in to vote
0
Answered by 4 years ago

Yeah if someone could please write me a anti cheat

\

0
Remember, this isn't a request site. sngnn 274 — 4y