Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by beddie22 and EthanHong0407 mostly beddie though but thats ok, this does not require name
- local Medkit = script.Parent
- local function handleTouch(otherpart)
- local humanoid = character:FindFirstChild('Humanoid')
- if humanoid then
- print('beddie22s Medkit') -- PLEASE DO NOT CHANGE
- end
- end
- -- I KNOW IM NOT GOOD AT SCRIPTING
- Medkit.touched:connect(handletouch)
- local Medkit = script.Parent
- local healAmount = 100 -- Health you want your Medkit to heal
- local function handleTouch(otherpart)
- local character = otherPart.Parent
- local humanoid = character:FindFirstChild('Humanoid')
- if humanoid then
- local currenthealth = humanoid.Health
- local newhealth = currenthealth + 100 -- Also put the health down here
- humanoid.Health = newHealth
- end
- Medkit.Touched:connect(handleTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement