I looked through everything. What's wrong with it?
script.Parent.Touched:connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) and hit.Parent.Money.Value >= 200 and hit.Parent.Name == script.Parent.Parent.Parent.Owner.Value then
-----------------------------
hit.Parent.Money.Value = hit.Parent.Money.Value -200
-----------------------------
script.Parent.Parent.Parent.WallUpgrade2.Wall1.Transparency = 0
script.Parent.Parent.Parent.WallUpgrade2.Wall1.CanCollide = false
script.Parent.Parent.Parent.WallUpgrade2.Wall2.Transparency = 0
script.Parent.Parent.Parent.WallUpgrade2.Wall2.CanCollide = false
script.Parent.Parent.Parent.WallUpgrade2.Wall3.Transparency = 0
script.Parent.Parent.Parent.WallUpgrade2.Wall3.CanCollide = false
script.Parent.Parent.Parent.WallUpgrade2.Wall4.Transparency = 0
script.Parent.Parent.Parent.WallUpgrade2.Wall4.CanCollide = false
-----------------------------
script.Parent.Transparency = 1
script.Parent.CanCollide = false
script.Parent.Parent.BuyWallsLabel.SurfaceGui.TextLabel.TextTransparency = 1
script.Disabled = true
-----------------------------
end
end)
Thanks in advance for your help!
==EDIT== Okay, so when I checked the Output it said that the error was somewhere in line 2:
if game.Players:GetPlayerFromCharacter(hit.Parent) and hit.Parent.Money.Value >= 200 and hit.Parent.Name == script.Parent.Parent.Parent.Owner.Value then

8 comments
There was an error in line 5. Mind reviewing it. I did and I found nothing.
Could you give me the error please?
It just said that it was disconnected because of an exception
Oh, sorry I didn't put a debounce. And did you make sure you had enough money?
Error on line 7
Uhhh.. no?
This is what came up in output: 00:43:52.584 - Money is not a valid member of Player 00:43:52.584 - Script 'Workspace.BuyWalls2.BuyWalls.Script', Line 8 00:43:52.585 - Stack End 00:43:52.585 - Disconnected event because of exception
Okay well then you got somethin wrong n0t me.