Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 7 years ago
Edited 7 years ago

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 
1
Can you edit and show the full script? qVision 12 — 7y
0
Just display the name of the localplayer( the original player had had it first) LightModed 81 — 7y
0
That's the full script it's a normal script in starter pack shankable 9 — 7y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question