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

Why won't this script work?

Asked by 9 years ago
01local player = game.Players.LocalPlayer
02local R1 = game.ReplicatedStorage.Weapons:WaitForChild('R1')
03local introran = player:WaitForChild('IntroRan')
04 
05if introran.Value == 1 then
06    wait(0.5)
07    if player.leaderstats.R1.Value == 1 then
08        local cR1 = R1:Clone()
09            cR1.Parent = player.Backpack
10    end
11end

There isn't an error. This is a local script. It is inside the StarterGUI

0
Try putting a print"Hello world!" on line 4 and tell me if it prints Validark 1580 — 9y

Answer this question