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

Confused about this tool script?

Asked by 9 years ago
tool = script.Parent
player = game.Players.LocalPlayer



tool.Activated:connect(function()
    player.Charater.Torso.Transparency = 0.5
end)

It doesn't return an error, but it doesn't work. It IS a local script

1 answer

Log in to vote
3
Answered by 9 years ago
local tool = script.Parent --consider using local variables
local player = game.Players.LocalPlayer



tool.Activated:connect(function()
    player.Character.Torso.Transparency = 0.5 --misspelled character ;)
end)

Ad

Answer this question