#I desperately need help
1 messages · Page 1 of 1 (latest)
where is the script located?
you should put the script inside a part, then scale that part to cover the whole void area
and change the CanCollide of the part to false
so when the player touches the part it will run the code
well then I want to break the resizing limit and infinitely extend the size of it
otherwise I'm forced to use model instead
oh ok, you want the player to fall into the void anywhere and it will give them the badge?
yes
i guess you could make a loop that checks if their Y position is less than a certain value
???
** You are now Level 2! **
uhhh
i will send some code in a second
oh ok
-- void badge script
local badgeID = <your badge id>
local badgeService = game:GetService("BadgeService")
local Players=game:GetService("Players")
local PlayerList=Players:GetChildren()
Players.PlayerAdded:Connect(function(plr)
table.insert(PlayerList,plr)
end)
function giveBadge(player)
local index=table.find(PlayerList,player)
if not index then return end
table.remove(PlayerList,index)
print("Awarding void badge to "..player.Name)
badgeService:AwardBadge(player.UserId, badgeID)
end
while task.wait() do
for i,plr in pairs(Players:GetChildren()) do
if not plr.Character then continue end
if plr.Character.HumanoidRootPart.Position.Y<-300 then
giveBadge(plr)
end
end
end
nice
Literally the same as what I said lmao