#I desperately need help

1 messages · Page 1 of 1 (latest)

next egret
#

I wanted to make a badge rewarded when falling into the void, does absolutely anyone on this server can just help me solve this issue?

crisp pivot
#

where is the script located?

next egret
crisp pivot
#

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

next egret
#

otherwise I'm forced to use model instead

crisp pivot
#

oh ok, you want the player to fall into the void anywhere and it will give them the badge?

next egret
#

yes

crisp pivot
#

i guess you could make a loop that checks if their Y position is less than a certain value

next egret
#

???

random pastureBOT
#

studio** You are now Level 2! **studio

next egret
#

uhhh

crisp pivot
#

i will send some code in a second

next egret
#

oh ok

crisp pivot
#

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

next egret
#

finally

#

it's successfully worked

crisp pivot
#

nice

viscid dirge