Dev Help please (code in disc)

Channel:
Subscribers:
45
Published on ● Video Link: https://www.youtube.com/watch?v=GeMtP56k8es



Roblox
Game:
Roblox (2006)
Category:
Let's Play
Duration: 1:28
14 views
1


-- script 1, this script adds the points




local addPoints = game.ReplicatedStorage:WaitForChild("AddPoints")


addPoints.OnServerEvent:Connect(function(player)
local leaderstats = player:WaitForChild("leaderstats")
local rebirths = leaderstats:WaitForChild("Rebirths")
local adds = 1 * rebirths.Value
if adds == 0 then
adds = 1
end
player.leaderstats.Steps.Value += adds
end)

-- script 2, the shop script (also instead of the angled brackets, beecause of youtube it will be replaced with ) and ( )

local function gogo()
local plr = game.Players.LocalPlayer
local leaderstats = plr:WaitForChild("leaderstats")
local steps = leaderstats.Steps
local rebirths = leaderstats.Rebirths
local traildata = leaderstats.Trail
local randomval = math.random(1,5)


if steps.Value )= 5000 then
steps.Value = steps.Value - 5000
traildata.Value = randomval
end
end

script.Parent.MouseButton1Click:Connect(gogo)







Other Statistics

Roblox Statistics For Kn1ght

Kn1ght presently has 490 views for Roblox across 15 videos, and about 4 hours worth of Roblox videos were uploaded to his channel. This makes up 14.24% of the content that Kn1ght has uploaded to YouTube.