They want a block that essentially gives them “points” when they touch it. Every second you are alive when you sword fight you get 1 time. These blocks will increase how much time you have been alive.
@ProjectTqnvirr, you need to look into .Touched() events and how to edit basic leaderstats. Something like this is a rough example:
(script inside the block!)
local timeAmount = math.random(50,100) -- picks a number from 50 to 100.
local touched = false
script.Parent.Touched:Connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) then
if not touched then
touched = true
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local lstats = plr.leaderstats
local Time = lstats.Time
Time.Value = Time.Value + timeAmount
script.Parent:Destroy()
end
end
end)