Jump to content

Recommended Posts

Hello, I'm looking for a script that will show Billboard Gui only when a player's body is close to it. By default Billboard Gui only shows when player's camera is near it and I need to have the actual player close to it in order to see it. 

I will be buying that type of script.

DM me on Discord or reply here if you want :)

Share this post


Link to post
Share on other sites
  • 1 month later...

Kind of easy, not to shitpost or be annoying but I'm glad to do it for free, have a part that constantly checks for magnitude of player, have part transparent that has the billboard inside of it so you can check for the position, so you would do:

local part = script.Parent

while true do

wait()

for _, player in pairs(game.Players:GetChildren()) do

     local billboardgui -- define ur gui here

    local char = player.Character or player.CharacterAdded:Wait()

    local torso = char:FindFirstChild("Torso")

    local distance = (part.Position - torso.Position).magnitude

    local AgroDistance = 5 -- how close they need to be (5 studs) for gui to appear

        if distance <= AgroDistance then -- means if the magnitude is 5 studs or less

            billboardgui.Visible = true -- I believe this is how u do it

       else billboardgui.Visible = false -- means if they aren't close it won't be visible

       end

end

 

hope this helped

Edited by cmodii
typo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.