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

?Trying To Make It So That When Color Is Red It Gives A Player An Item And Deletes An Old Item

Asked by
kuru226 13
2 years ago
script.Parent.MouseButton1Click:Connect(function(Player)
    if game.Workspace.SeesWhatHighlighterYouChoseDuring.BrickColor == 
BrickColor.new("Really red") then
        local laser = game.ReplicatedStorage.HighlighterWithLaserBackSights:Clone()
        laser.Parent = Player.BackPack
        Player.BackPack.Highlighter:Destroy()
        laser.Name = "Highlighter"
    end

1 answer

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

I dont think that you have mentioned the part where you have to delte old stuff and give new ones

Ad

Answer this question