Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Having script troubles?

while true do
	wait(15)
	game.Lighting.Turkey:Clone().Parent = game.player.Backpack
	wait(30)
	game.Lighting.Turkey:Clone().Parent = game.player.Backpack
	wait(12)
	game.Lighting.Turkey:Clone().Parent = game.player.Backpack
end

It won't work in game so I'm sure I did something wrong. Is there a line of code I put after "end"? I see it in a lot of loop scripts.

1 comment

0

This script is in a tool. Also, could you please verify if I put it in the Handle, or just the tool. (It's using the Fluffy Unicorn scripts.)

2 answers

You didn't define player.

Put this above while true do.

local player = game.Players.LocalPlayer

By the way, switch it to local script

2 comments

0

It didn't seem to work.... It's for a Fluffy Unicorn tool with a Trollamon mesh on it if that helps....

0

Oh, I'm sorry.

If you're in Play Solo, try setting the parent like this

game.Lighting.Turkey:Clone().Parent = Game.Players.Player.Backpack

or if you're actually in a Roblox Server

game.Lighting.Turkey:Clone().Parent = Game.Players.iDarrick.Backpack

This discussion is preserved as it was. New answers, comments, and votes are closed.