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

How can I edit this god bind key to my preference? [ex] [closed]

Asked by 6 years ago

-- 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)


I don't know if I did it right..Help! Also, if I were to press the key again I want it to ungod me and revert back to normal health of 100. I'm guessing its end) function?

0
This was deleted for a reason. AlphaGamer150 101 — 6y
0
Use code blocks please...SO WE CAN READ YOUR SCRIPT mixgingengerina10 223 — 6y
0
? ScriptingHelper1038 -13 — 6y
0
Please read the rules and question guidelines minikitkat 687 — 6y
0
Please format your script properly so we can read it easierly. Thank you. BunicornBoy 17 — 6y

Closed as Not Constructive by minikitkat

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?