I literally cannot end this script, it's always a red line under the end or an error message! How the hell do I end this script?
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if game.MarketplaceService:PlayerOwnsAsset(player,7187215) then
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c)
c.Humanoid.Died:connect(function() local cv = c.Humanoid:findFirstChild("creator") if cv
then local k = cv.Value if k and k ~= p then k.leaderstats.Money.Value =
k.leaderstats.Money.Value+4
else
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c)
c.Humanoid.Died:connect(function() local cv = c.Humanoid:findFirstChild("creator") if cv
then local k = cv.Value if k and k ~= p then k.leaderstats.Money.Value =
k.leaderstats.Money.Value+4
end end end) end) end)
end
end)
Thanks!

1 comment
a lot of the code is out of view.. sorry, you'll need to use the "Copy" button to see it all.