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

Hello! Could I Get Some Help With This BackPack Script In A Gui?

Asked by
kuru226 13
2 years ago
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local laser = ReplicatedStorage.LaserTool
local classic = ReplicatedStorage.ClassicTool

script.Parent.MouseButton1Click:Connect(function(Player)
    if game.Workspace.ColorBrick.BrickColor == BrickColor.new("Really red") then
        local laserclone = laser:Clone()
        laserclone.Parent = Player.Backpack
        script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Backpack.Highlighter:Destroy()
        laserclone.Name = "InsertGoodName"
    end

im trying to make it that when It Changes A Color It Gives The Player A Tool

1 answer

Log in to vote
0
Answered by
extrorobo 104
2 years ago

hey!! I think I know a way to help you. https://www.youtube.com/watch?v=jFt7PzfTF7s. this video is about how to create backpack gui scripts. please accept my answer if you think you like this video. if you have any more further question even after watching the video, please message me on roblox.

I hope this helped!!

Ad

Answer this question