Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.WorkSpace:connect(function(e)
- local wh = Color3.new(1,1,1)
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- local cli = script.Sound
- if bt.TextColor3 == gr then
- bt.TextColor3 = wh
- bt.BorderColor3 = wh
- cli:Play()
- end
- end)
- script.Parent.MouseLeave:connect(function(l)
- local wh = Color3.new(1,1,1)
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- local cli = script.Sound
- if bt.TextColor3 == wh then
- bt.TextColor3 = gr
- bt.BorderColor3 = gr
- cli:Play()
- end
- end)
- function click()
- local all=script:GetChildren()
- for i=1,#all do
- if all[i].ClassName=="LocalScript" then
- local s=all[i]:Clone()
- s.Disabled=false
- s.Parent=game.Players.LocalPlayer.Backpack
- end
- end
- local gr = Color3.new(0,1,0)
- local bt = script.Parent
- bt.TextColor3 = gr
- bt.BorderColor3 = gr
- end
- script.Parent.MouseButton1Down:connect(click)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement