Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a copy of something and add to startpack?

Asked by 4 years ago

How do I make a copy of something and add to startpack? Also how do i access ServerStorage How do I acess MouseButton1click two times?(Say I want click to open menu and click to close menu?)

If i use mousebutton1click two times to close and open it doesn't work

0
You need to put your code in aw script to access serverstorage. You cannot access server storage with a local script TheRealPotatoChips 793 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

The answer to this is by using the :Clone() function then making the parent of the clone starter pack, it goes something like this

Tool:Clone().Parent = game.Workspace.Players.LocalPlayer.BackPack No one's going to script it for you, sorry.

Also, you don't need to access MouseButton1Down() twice, you can just make it close, open on each click, something like

script.Parent.MouseButton1Down:Connect(function()
    if open == false then
        Frame.Visible = true
    else
    open = true
    Frame.Visible = false

likewise, that's not accurate by the way you need your variables but that sums it up. You're welcome, and good luck!

Ad

Answer this question