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

Why are the words "player" underlined blue?

Asked by 4 years ago

why is this underlined blue?

local z = script.parent
local x = z.Part
local y = z.Leaves1
local hits = 0
local hitsN = 5
x.touched:connect(function(hit)
    if hit.Parent.Name == "Axe" then
        hits = hits + 1

        if hits == hitsN then
            hits = 0
            x.Anchored = false
            y.Anchored = false
            y.CanCollide = false    
            wait(0.01)
            hit:Destroy()
            x.Rotation = Vector3.new(45,0,0)
            **player**.leaderstats.Lumber.Value = **player**.leaderstats.Lumber.Value  + 15

        end
    end
end)

thanks, TSSRafa

0
Player is underlined because it isn't defined in the script. I answered your previous question in detail, go check that out. Hope it helps! vislbIe 4 — 4y

Answer this question