Heya! I’m trying to set the transparency, yet I can’t get it to go transparent. Can someone help me with this script?
local badgeService = game:GetService("BadgeService")
local bbadgeID = 1234567890
game.Workspace.BScroll.ProximityPrompt.Triggered:Connect(function(player)
print("You collected the Builder Scroll")
workspace.BScroll.Transparency = 1
if not badgeService:UserHasBadgeAsync(player.UserId, bbadgeID) then
badgeService:AwardBadge(player.UserId, bbadgeID)
end
end)
Is BScroll a Model or a BasePart? If it’s a Model then loop thru it and set every part transparency to 1, or else if there is a single part inside - set it’s transparency.
You may also destroy it if it isn’t needed after being picked up.
local badgeService = game:GetService("BadgeService")
local bbadgeID = 1234567890
workspace.BScroll.ProximityPrompt.Triggered:Connect(function(player)
print("You collected the Builder Scroll")
workspace.BScroll:Destroy()
if not badgeService:UserHasBadgeAsync(player.UserId, bbadgeID) then
badgeService:AwardBadge(player.UserId, bbadgeID)
end
end)
Can you please export the proximity prompt and full script to a roblox model and upload it here?
Im not really sure why it doesn’t work, but it may allow us to see if there is something wrong with the prompt or something, and also to allow us to do fine tuning