#gui help

1 messages · Page 1 of 1 (latest)

granite agate
#

So I'm trying to make a sort of diaogue system with the ProximityPrompt.

Said dialogue system is oging to invole a tween to tween the initial size of 0, 0 - {0.606, 0},{0.15, 0}, though I need to know how to alter properties of multiple gui pieces in the startegui when the ProximityPrompt is on the workspace.

How could I do that?

#

really T.L.D.R is how I would manage to make a connection between a ProximityPrompt script in the workspace with gui in the starter gui

slim hinge
#

u can conenct to teh event of when it gets triggered

granite agate
granite agate
# slim hinge u can conenct to teh event of when it gets triggered

though honestly another arose

local ProximityPromptService = game:GetService("ProximityPromptService")
local frame1fra = Game.StarterGui = WaitForChild("frame1fra")
local imagelabel =  WaitForChild("ImageLable")
local textlabel = WaitForChild("TextLabel")



local function onPromptTrigger(promptObject, player))
    frame1fra.TweenSize(UDim2(0.606, 0, 0.15, 0 ))
    imagelabel.Tweensize(Udim2(0, 118, 0, 101))
    textlabel.Tweensize(Udim2({0, 559, 0, 80))    
    textlabel.FontSize(77)
    textlabel.TweenPosition(Udim2(0.241, 0, 0.166, 0})
    print("triggered")
    wait(5)
    frame1fra.TweenSize(UDim2(0, 0, 0, 0 ))
    imagelabel.Tweensize(Udim2(0, 0, 0, 0 ))
    textlabel.Tweensize(Udim2({0, 0, 0, 0 ))    
    textlabe.FontSize(0)
    textlabel.TweePosition(Udim2(0, 0, 0, 0))
end

ProximityPromptService.PromptTriggered:Connect(onPromptTriggered)

IDK why this isn't working