Basically, im getting nothing at all when this part is touched...
local pipeNumber = 1
script.Parent.Touched:Connect(function(hit)
local model = hit.Parent:FindFirstChild'Humanoid'
if model then
local plr = game.Players:FindFirstChild(hit.Parent.Name)
if plr:FindFirstChild("PipesPassed") then
local pipesPassed = plr:FindFirstChild("PipesPassed")
if pipesPassed.Value > pipeNumber then
pipesPassed.Value = 1
local plrcoins = game:GetService("ReplicatedStorage"):WaitForChild("LockedBanks"):FindFirstChild(plr.Name)
plrcoins.Value = plrcoins.Value + 1
print("success")
end
end
else
print("error")
end
end)
