Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a block that gives wins on touch?

Asked by 4 years ago
Edited 4 years ago

Explaination: How to you make a block that adds a win to the leaderboard on touch. I also need it to save. Also, how do you make the leaderboard?

1
This isn't a request site, but what you can do for the leaderboard is read this article: https://developer.roblox.com/en-us/recipes/How-to-create-a-leaderboard sean_thecoolman 189 — 4y
0
I thought this was scripting help? barnabasbo0p 3 — 4y
0
@Barnabasbo0p you should attempt it on your own first, if you don't know where to start then you should watch some tutorials about coding first. Roger111 347 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Please dont ask for requests in the future but this is how to add wins on touch: (put inside the part) (also make a wins leaderboard)

script.Parent.Touched:Connect(function(hit)
local man = hit.Parent:FindFirstChild("Humanoid")
if man ~= nil then
local char = game.Players:GetPlayerFromCharacter(hit.Parent)
char.leaderstats.Wins.Value = 10
end
end)
0
Why is it set to 10 and not added? kkfilms_1 68 — 4y
Ad

Answer this question