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 8 years ago
local player = game.Players.LocalPlayer
local R1 = game.ReplicatedStorage.Weapons:WaitForChild('R1')
local introran = player:WaitForChild('IntroRan')

if introran.Value == 1 then
    wait(0.5)
    if player.leaderstats.R1.Value == 1 then
        local cR1 = R1:Clone()
            cR1.Parent = player.Backpack
    end
end

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 — 8y

Answer this question