#use item to get badge and Gui

4 messages · Page 1 of 1 (latest)

lost surge
#

how do i make it so when clicking with an item, you get a badge and a Gui is triggered

#

what i have rn:

#
    wait(2)
    game.Players.LocalPlayer.PlayerGui.BigEnding.Enabled = true
    script.Parent.Parent.Humanoid.WalkSpeed = 0
    local bs = game:GetService("BadgeService")
    local player = game:GetService("Players")
    script.Parent.Touched:Connect(function(player)
        local p = player:GetPlayerFromCharacter(script.Parent.Parent)
        p.PlayerGui.ToiletEnding.Enabled = true
        bs:AwardBadge(p.UserId,1860528835177743)
        print "hello"
    end)
end)```
#

its a local script inside the tool