My serverscript that gives money after touching a block doesn't seem to be working. Can I have a bit of help? It's pretty simple.
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local name = hit.Parent.Name --ust normal variables to use for later
local character = hit.Parent --just normal variables to use for later
--give them money
game.Players[name].leaderstats.Cash.Value + 15
end
end)
Thank you!

2 comments
wow... really leamir...
wow- thanks!