So I decided to make a code that allows only me, no one else to be able to get a certain gear in game. Here is the script...
local Players = game:GetService("Players")
local Player = game.Players.LocalPlayer
local FlowerBasket = game:GetService("ReplicatedStorage"):WaitForChild("FlowerBasket")
local Backpack = Player:FindFirstChild("Backpack")
wait(2)
Players.PlayerAdded:Connect(function()
if script.Parent.Username.Value == "543752773" then
Backpack.FlowerBasket:Clone()
end
end)
I really need to stop trying to code at 3:00 in the morning its making me confused Its probably line 8, but I don't know how to fix that.

2 comments
For some reason it deletes itself in SSS, have a fix?
I figured out the problem, Mikeal semi help so I'm going to say you answerd my question, thank you :)