#How to make a billboardUi pop up above your head when u trigger a prox

44 messages · Page 1 of 1 (latest)

pallid schooner
#

If you need a script then I can send one I’ve been using

nocturne vessel
pallid schooner
#

Yeah

#
local Billboard = game.StarterPlayer.StarterCharacterScripts.BillboardGui
local Bool = script.Parent.Parent.Finished

script.Parent.Triggered:Connect(function(plr)
    local ClonedBoard = Billboard:Clone()
    ClonedBoard.Enabled = true
    wait(5)
    ClonedBoard:Destroy()
    Bool.Value = true
end)
#

i tried to do a characteradded but it didnt work

#

so i could parent it to the characters HumanoidRootPart

#

@nocturne vessel

nocturne vessel
#

why do you put the billboard gui inside of starter character scripts

#

put it inside replicated storage

pallid schooner
#

alright

nocturne vessel
#

also i recommend adding a :WaitForChild() to your billboard variable since when you load the game the billboard gui won't instantly load in which could cause an error

pallid schooner
#

Alright will do that

#

Tell me if this looks good

#
local Billboard = game.ReplicatedStorage:WaitForChild("BillboardGui")
local Bool = script.Parent.Parent.Finished

script.Parent.Triggered:Connect(function(plr)
    local ClonedBoard = Billboard:Clone()
    ClonedBoard.Enabled = true
    wait(5)
    ClonedBoard:Destroy()
    Bool.Value = true
end)
nocturne vessel
#

yea it looks good however you're not doing anything with the billboard gui you are cloning inside of the Triggered event

pallid schooner
#

should i do a

plr.CharacterAdded:Connect(function(char)
end)
nocturne vessel
#

no instead you could do

pallid schooner
#

ohhhhh

#

yeah cause i want it to be enabled when you hit e on the prompt

#

and after 5 seconds it be destroyed

nocturne vessel
#
script.Parent.Triggered:Connect(function(plr)
    local character = plr.Character
    
    if not character then -- the player's character should be loaded in since they are triggering a prompt but just in case, we check if it exists or not bc we dont want our code to break
        print("player character does not exist")
        return
    end
    
    local ClonedBoard = Billboard:Clone()
    ClonedBoard.Enabled = true
    wait(5)
    ClonedBoard:Destroy()
    Bool.Value = true
end)
pallid schooner
#

alrighty ill test and thank u for helping me i havent really mastered my proximity prompts yet

nocturne vessel
#

np, working with proximity prompts is very simple and easy, you can get it

#

lmk if there was any issues

pallid schooner
#

now that i have the character all i have to do is do

ClonedBoard.Parent = character.HumanoidRootPart
nocturne vessel
#

if you want the billboard gui to be directly above the characters head

#

you have to parent it to the character's head

#

not Humanoid root part

pallid schooner
#

ohh alright

#

lemme test

#

can i also do a

character.WalkSpeed = 0
wait(5)
character.WalkSpeed = 16
#

.Humanoid**

nocturne vessel
#

your choice, you can do anything

pallid schooner
#

alrighty ima test real quick

#

LETS GO

#

THANK U SO MUCH DUDE

nocturne vessel
#

np glad you figured it out!

pallid schooner
#

I’m making a job rn so basically u click it u can’t move and it says working

#

And u touch another part and it sells

#

I added a math.random(50,100) too so it’ll look better as a job or the pay

nocturne vessel
#

sounds good, good luck with it

pallid schooner
#

Thank u