It's not working.
-- Variables
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
-- Settings
bind = "r" -- has to be lowercase
-- Script
mouse.KeyDown:connect(function(key)
if key == bind then
game.Players.PlayerAdded:Connect(function(p)
p.CharacterAdded:Connect(function(c)
if p.Name == "bobplayerxd123" then
c.Humanoid.MaxHealth = 0
end
end)
end)
the god script was given to me.

6 comments
My posts are getting deleted for no reason..I just want help -_-
Didn't know I had to give credit, I do appreciate your help.
Mouse is deprecated, use the UserInputService instead, also you didnt end your functions correctly
Try local bind.
Not very familiar with local's and UserInputServices just yet. But I'll try!
Oh wow I was slow and just saw the comments. I didnt know you guys said it..