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

How would I fix this to make a visual inventory system? [closed]

Asked by 5 years ago
Edited 5 years ago

Here is the source code to my Local script in my Tool named "Test"

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local mouse = Player:GetMouse()
local replicate = game.workspace.yello
local toolz = script.Parent




script.Parent.Equipped:connect(function(mouse)
    mouse.Button1Down:connect(function()
        if mouse.Target then
            print("The Mouse is pointing to the" .. mouse.Target.Name)
            if mouse.Target.Name == "Hello" then
                replicate:Clone()
                replicate.Position = game.Hello.Position
                toolz:Destroy()
            end
        else
            print("The Mouse is pointing at nothing")

        end
    end)
end)

I sort of want this type of inventory system.

https://gyazo.com/83799e2b72adedd05bb2948903dbcca2

0
This is not a script writing service. We help with errors, not make the script. AlphaGamer150 101 — 5y

Closed as Not Constructive by RubenKan

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?