So, i'm new to scripting but whipped up a quick tool script, which won't work. I've tried to make it where the handle goes into the tool but it just won't work! The code is
TheTool = Instance.new("Tool", Workspace) TheTool.Name = "Echo" wait(5) TheHandle = Instance.new("Part", Echo) TheHandle.Name = "Handle" local copy = game.Workspace.Echo:Clone() copy.Parent = game.Players.LocalPlayer.Character
Please help!
I recommend putting the tool itself in ServerStorage
or ReplicatedStorage
.
So what I would do is I would put the tool Echo
in ReplicatedStorage
.
Another thing that you should do is put this in a LocalScript
in StarterPack
.
What this code technically does is gets the tool from ReplicatedStorage, then it clones it to the player Backpack
and StarterPack
local toolStorage = game:GetService("ReplicatedStorage") local tool = toolStorage:WaitForChild("Echo") local player = game.Players.LocalPlayer local backpack = player:WaitForChild("Backpack") local starterPack = game:GetService("StarterPack") tool:Clone().Parent = backpack tool:Clone().Parent = starterPack
Please put your code in code block (Press the Lua button, then put your code inside the lines) Please accept my answer if it helped you.