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

Showing damage on textlabel?

Hi I was wonder how to show your damage on a sword with textlabel. Can you help? This is my guess.

repeat wait() until game.Players.LocalPlayer.Character 
humanoid = game.Players.LocalPlayer.Character.Humanoid
local plr = game.Players.LocalPlayer

while true do 
	wait()
	script.Parent.Text = "Your sword does " ..plr.Backpack.ClassicSword.Configurations.LungeDamage " damage!"
end

1 answer

✓ Accepted answer

You forgot these dots

repeat wait() until game.Players.LocalPlayer.Character 
humanoid = game.Players.LocalPlayer.Character.Humanoid
local plr = game.Players.LocalPlayer

while true do 
    wait()
    script.Parent.Text = "Your sword does " ..plr.Backpack.ClassicSword.Configurations.LungeDamage.." damage!"
end

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