Hello! Im trying to make a script that puts an overhead script on top of your head saying: (Playername) Paid Respects!

Im really not experienced with this kind of things; so i made this nooby one using the scripts from free models and tutorials:

  • *repeat wait() until game.Players.LocalPlayer

    local player = script.Parent.Parent

    local mouse = player:GetMouse()

    mouse.KeyDown:connect(function(key)

    if key == "f" then

    script.Parent = game.ServerScriptService

    local billboard = script.BillboardGui

    local playername = "Alexjandro_23" ---This is supposed to be every player that presses f

    end

    end)

    end)*

Pls help!

9 comments

0

if pay_respects then f end

1

F

0

Use UserInputService or ContextActionService, and use a "RemoteEvent" to do the paid respect effect on the Server.

0

f

1

f

0

@Alexjandro_23 , Do you want it to appear above your name, or the player who you clicked's name?

0

f

0

playername should be player.Name

0

what happened here...?