of     1   

fret13103
#141284513Wednesday, July 23, 2014 4:47 PM GMT

I was trying to make a script that would change the range of a pointlight randomly, except, it throws no errors, but the Range doesn't change at all... I've posted the whole scripts because I've got no error to reference for a line. local Range = script.Parent.PointLight.Range function onPlayerEntered() while true do wait(.1); a = math.random(0,2) wait(.1); if a == 1 then Range = Range - math.random(2,14) else if a == 2 then Range = Range + math.random(2,10); end end end end game.Players.PlayerAdded:connect(onPlayerEntered) onPlayerEntered(game.Players:WaitForChild("Player1"))
BothAngles
#141284689Wednesday, July 23, 2014 4:49 PM GMT

local Range = script.Parent.PointLight function onPIayerEntered() while true do wait(.1);Spawn(wait) a = math.random(0,2) wait(.1); if a == 1 then Range.Range - math.random(2,14) else if a == 2 then Range.Range + math.random(2,10); end end end end game.PIayers.PIayerAdded:connect(onPlayerEntered) onPIayerEntered(game.Players:WaitForChiId("PIayer1"))
fret13103
#141284914Wednesday, July 23, 2014 4:52 PM GMT

Watch out kids! Troll above!

    of     1