The transparency part of this script is what isn't working. Does anyone know what is wrong with the gear script?
local Mouse = game.Players.LocalPlayer:GetMouse()
local tool = script.Parent
local Equipped = false
tool.Equipped:Connect(function()
Equipped = true
end)
tool.Unequipped:connect(function()
Equipped = false
end)
Mouse.Button1Down:Connect(function(player)
if Equipped then
local Target = Mouse.Target
Mouse.TargetFilter = game.Players.LocalPlayer.Character
if Target.Name == "Dirt" then
Target.Transparency = Target.Transparency - 0.1
end
if Target.Transparency = 1 then
Target:Destroy()
local RE = game.ReplicatedStorage.RemoteEvent
RE:FireServer(player)
end
end
end)

4 comments
I tried it, and it didn't work. The error that popped up was "Players.DeuceyTheHonk.Backpack.Shovel.LocalScript:20: Expected 'then' when parsing if statement, got '='"
i changed my answer. I think you just had to change the 'if Target.Transparency = 1 then' part to have two ==
i also tried it, it hacked my account and the fbi are after me btw on another note completely unrelated can i crash at anybodys house for a few years?
yeah sure dude