✓ Accepted answer
First of all, let me fix this script. I noticed you made a few errors.
<pre class= "brush: lua"></pre>
Frame = script.Parent
TextButton = Frame.TextButton
local Ak47 = game:GetService("StorageService").Ak47
function HasClicked
Ak47.Parent = game.StarterPack
end
TextButton.MouseButton1Click:Connect(HasClicked)
<pre class="brush: lua"></pre>
Ah! Much better.
#Problems
On line 6, you did "StartPack" not "Starterpack" I don't think there's such thing as "StartPack".
On line 8, don't use :connect(). It's deprecated and it doesn't work anymore; Try using :Connect().
On line 8, you made another function by making the function(HasClicked), furthermore you need to do the following:
TextButton.MouseButton1Click:Connect(HasClicked)
The reason why there is no end) is because it's connecting to a function you made, not creating another in the same line of code.
- Lastly, on line 13 of your code, it is
print() not Print().
If I helped, let me know down on the comments. If you don't understand something, just ask me.