Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make it say the original owner of the weapon?

I made a knife script and every time you use it shards of the knife fall off saying the player's name who originally had the knife. This is to prevent random kill as it says the first person to ever get the weapon.

However the original part isn't working for me.

Instead of saying the original owner of the weapon it just says the player that joined the game the most recently

way=true
while way==true do
game.Lighting.bullet.BillboardGui.Frame.TextLabel.Text = "" ..script.Parent.Parent.Name.. ""
wait(1)
way=false
end 

3 comments

1

Can you edit and show the full script?

0

Just display the name of the localplayer( the original player had had it first)

0

That's the full script it's a normal script in starter pack

1 answer

I believe the solution is quite simple. First of all, have a LocalScript instead of a normal Script. Next, don't do script.Parent.Parent.Name, but instead make it game.Players.LocalPlayer.Name

Accept if helped

This discussion is preserved as it was. New answers, comments, and votes are closed.