I would downvote but it doesn't let me, no offense.
On line 2 and 6, its script.Parent.Touched. What does touched mean? the function doesn't carry the hit arguement and has no idea what Touched is.
Also on line 2 and 6, look at the fact it has + 1 win or whatever. If you are using default leaderstats it should be,
hit.Parent.leaderstats.Wins.Value = hit.Parent.leaderstats.Wins.Value + 1
A log from f9 in server side would help aswell since it shows the debug and everything the game doesn't understand in the script.
2 functions are the same? Thats stupid. Make 1 function. Here is the final script. Also note I will take credit in the game as your last hope..
function onTouch(hit)
local plr = hit.Parent
plr.leaderstats.Wins = plr.leaderstants.Wins + 1
plr.leaderstats.Points = plr.leaderstants.Points + 15
end
script.Parent.Touched:connect(onTouch)
2 comments
damn you need to calm down, not every person knows how certain pieces of code work.
Sorry, I've seen alot of Noobs, and they teach Ontouch as the first function on Roblox wiki. DOes nobody read it.