#buggy proximityprompt!

4 messages · Page 1 of 1 (latest)

wintry musk
#

y'all I got a buggy bug with tweenservice
not sure if this is my fault or what
why does the progress bar (the grey bar) only show up after halfway
(the progress bar is parented to a canvasgroup)
https://medal.tv/games/roblox-studio/clips/icAtAOW8xyO4Bp8E5/d1337iTCGEUv?invite=cr-MSxTamssMTc2MTExMzU5LA

ProximityPromptService.PromptButtonHoldBegan:Connect(function(ProximityPrompt, Player)
    local ProximityPromptTable = PromptUITable[ProximityPrompt]
    
    if ProximityPromptTable and ProximityPromptTable[1] then
        local ProgressFrame = ProximityPromptTable[1]:WaitForChild("ProgressFrame")

        TweenService:Create(ProgressFrame, TweenInfo.new(ProximityPrompt.HoldDuration), {Position = UDim2.new(0, 0, 0, 0)}):Play()
        ProgressFrame:GetPropertyChangedSignal("Position"):Connect(function()
            print(ProgressFrame.Position)
        end)
    end
end)

Watch Untitled and millions of other Roblox Studio videos on Medal, the largest Game Clip Platform.

▶ Play video
wintry musk
tacit marsh
wintry musk