Hi - seeing as my previous post about this problem remains unanswered (see htts://scriptinghelpers.org/questions/9281/why-is-the-tool-not-being-distributed
- I felt it would be necessary to pick out the problematic area, or where I believe the problem is originated.
Perhaps I should explain in more detail what the problem is - The GameTool (Hopperbin) is inside of a script that distributes most of the scripts information - and the maps. This script works by copying the GameTool from the Workspace (Workspace.Distribution, more accurately), and putting it into the backpack of the player. The script inside of the Hopperbin then loads the rest of the game, including it's GUI(s), and such.
The first player to connect is getting the tool, while all other players after him/her are not.
I believe the problem is originating from -
game.Players.PlayerAdded:connect(function(player)
consoleMessage(player.Name.." has connected.","Toothpaste")
player.CharacterAdded:connect(function()
gtool:clone().Parent = player.Backpack
player.Backpack["GameTool"].Archivable = false
player.Backpack["GameTool"]["woop"].Archivable = false
end)
- although I am open to other suggestions. The other post has the entire script available.
A note to administrators: If you plan on deleting this post, please delete the older one and leave the more explained one here.
Thanks in advance, -Dragon
'gtool' is specified here -
gtool = script.GameTool:clone()
script:remove()
in the same script.
EDIT: For Dominic and dueling
remove() is not present in the script, as the script (from the point above) continues to do
local warning = game.Lighting.Resources.GUI.Warning:clone()
Spawn(function()
repeat wait(0) until player:findFirstChild("PlayerGui") and player.PlayerGui:findFirstChild("Menu")
warning.Parent = player.PlayerGui
local leedstat = Instance.new("BoolValue",player)
leedstat.Name = "leaderstats"
Instance.new("StringValue",leedstat).Name = "Users"
wait(4)
warning.Agree:TweenPosition(UDim2.new(0.35,0,.7,0),"Out","Quad",1,true)
warning.Agree.MouseButton1Click:connect(function()
warning.Agree:TweenPosition(UDim2.new(0.5,-100,2,0),"Out","Quad",1,true)
warning.Frame:TweenPosition(UDim2.new(0,0,2,0),"Out","Quad",0.7,true)
game.Debris:AddItem(warning,2)
player.PlayerGui.Menu.Frame.Active = true
end)
end)
end)
which is unrelated (I think) to the problem I am having.

1 comment
The first player is still the only one getting the script, and that has also broke the script entirely - and I have reverted it to the version before that.