#How to make a billboardUi pop up above your head when u trigger a prox
44 messages · Page 1 of 1 (latest)
can you send your script you wrote
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
why do you put the billboard gui inside of starter character scripts
put it inside replicated storage
alright
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
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)
yea it looks good however you're not doing anything with the billboard gui you are cloning inside of the Triggered event
should i do a
plr.CharacterAdded:Connect(function(char)
end)
no instead you could do
wym
ohhhhh
yeah cause i want it to be enabled when you hit e on the prompt
and after 5 seconds it be destroyed
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)
alrighty ill test and thank u for helping me i havent really mastered my proximity prompts yet
np, working with proximity prompts is very simple and easy, you can get it
lmk if there was any issues
now that i have the character all i have to do is do
ClonedBoard.Parent = character.HumanoidRootPart
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
ohh alright
lemme test
can i also do a
character.WalkSpeed = 0
wait(5)
character.WalkSpeed = 16
.Humanoid**
your choice, you can do anything
np glad you figured it out!
here is documentation to proximity prompts, there is alot you can do with it
https://create.roblox.com/docs/reference/engine/classes/ProximityPrompt
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
sounds good, good luck with it
Thank u