Basically a script that kills you if you don't have a certain badge. Any help? Yeah I know I'm basically asking for free code but I can't script to save my life so please help.
COMMUNITY QUESTION
I need a badge killer script. Help? q4 12 312e12de2 1
1 answer
Well i kinda feel bad but if it worked and you accept my answer then it's all good, here you go:
local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")
local BADGE_ID = 1 -- change this
local debounce = false
local definepart = script.Parent -- change this to the location of the part they need to touch!
local function hit()
if not debounce then
debounce = true
if hit then
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player and BadgeService:UserHasBadgeAsync(player.UserId, BADGE_ID) then
end
end
wait(0.5)
debounce = false
end
end
definepart.Touched:Connect(hit)
(THIS IS A SCRIPT BEFORE YOU ASK!)
2 comments
0
Downvoted because this supports requests
0
Reverse-Uno card
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
bro go do research in https://developer.roblox.com/en-us/api-reference