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

Showing damage on textlabel?

Asked by 9 years ago

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

Log in to vote
0
Answered by
Dr_Doge 100
9 years ago

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
Ad

Answer this question