Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.StarterGui:SetCoreGuiEnabled(2, true)
- mouse = game.Players.LocalPlayer:GetMouse()
- tool = Instance.new("Tool")
- tool.RequiresHandle = false
- tool.Name = "Key Visualizer"
- tool.Activated:connect(function()
- local hit = mouse.Target
- ----------------------------------------------------------------------------------------------------------------
- if hit.Parent.Name == "Keyboard" then
- print(hit.Parent.Name)
- local Key = hit.Parent.Keys
- local KC = hit.Parent.Case.Display.GUI.TextLabel
- elseif hit.Parent.Parent.Name == "Piano" and hit.Parent.Parent.Keys.KeyBox:FindFirstChild("GUI") == nil then
- print(hit.Parent.Parent.Name)
- local Key = hit.Parent.Parent.Keys
- local GUI = Instance.new("BillboardGui")
- GUI.Size = UDim2.new(0, 200, 0, 80)
- GUI.Name = "GUI"
- GUI.MaxDistance = "20"
- GUI.ExtentsOffsetWorldSpace = Vector3.new(0, 25, 0)
- GUI.Parent = hit.Parent.Parent.Keys.KeyBox
- local TextLabel = Instance.new("TextLabel")
- TextLabel.TextSize = "48"
- TextLabel.Size = UDim2.new(0, 200, 0, 80)
- TextLabel.Text = ";)"
- TextLabel.BackgroundTransparency = "1"
- TextLabel.BorderColor3 = Color3.fromHSV(27, 42, 53)
- TextLabel.Parent = hit.Parent.Parent.Keys.KeyBox.GUI
- local KC = hit.Parent.Parent.Keys.KeyBox.GUI.TextLabel
- ----------------------------------------------------------------------------------------------------------------
- tool:Destroy()
- --------------------------------------------------------
- local ROne = Key:FindFirstChild("1")
- --------------------------------------------------------
- local One = ROne:FindFirstChild("1")
- local Two = ROne:FindFirstChild("3")
- local Three = ROne:FindFirstChild("5")
- local Four = ROne:FindFirstChild("6")
- local Five = ROne:FindFirstChild("8")
- local Six = ROne:FindFirstChild("10")
- local Seven = ROne:FindFirstChild("12")
- -----------------------
- local Exclamation = ROne:FindFirstChild("2")
- local At = ROne:FindFirstChild("4")
- local Dollar = ROne:FindFirstChild("7")
- local Percent = ROne:FindFirstChild("9")
- local Up = ROne:FindFirstChild("11")
- --------------------------------------------------------
- local RTwo = Key:FindFirstChild("2")
- --------------------------------------------------------
- local Eight = RTwo:FindFirstChild("1")
- local Nine = RTwo:FindFirstChild("3")
- local Zero = RTwo:FindFirstChild("5")
- local q = RTwo:FindFirstChild("6")
- local w = RTwo:FindFirstChild("8")
- local e = RTwo:FindFirstChild("10")
- local r = RTwo:FindFirstChild("12")
- -----------------------
- local Star = RTwo:FindFirstChild("2")
- local Bracket = RTwo:FindFirstChild("4")
- local Q = RTwo:FindFirstChild("7")
- local W = RTwo:FindFirstChild("9")
- local E = RTwo:FindFirstChild("11")
- --------------------------------------------------------
- local RThee = Key:FindFirstChild("3")
- --------------------------------------------------------
- local t = RThee:FindFirstChild("1")
- local y = RThee:FindFirstChild("3")
- local u = RThee:FindFirstChild("5")
- local i = RThee:FindFirstChild("6")
- local o = RThee:FindFirstChild("8")
- local p = RThee:FindFirstChild("10")
- local a = RThee:FindFirstChild("12")
- -----------------------
- local T = RThee:FindFirstChild("2")
- local Y = RThee:FindFirstChild("4")
- local I = RThee:FindFirstChild("7")
- local O = RThee:FindFirstChild("9")
- local P = RTwo:FindFirstChild("11")
- --------------------------------------------------------
- local RFour = Key:FindFirstChild("4")
- --------------------------------------------------------
- local s = RFour:FindFirstChild("1")
- local d = RFour:FindFirstChild("3")
- local f = RFour:FindFirstChild("5")
- local g = RFour:FindFirstChild("6")
- local h = RFour:FindFirstChild("8")
- local j = RFour:FindFirstChild("10")
- local k = RFour:FindFirstChild("12")
- -----------------------
- local S = RFour:FindFirstChild("2")
- local D = RFour:FindFirstChild("4")
- local G = RFour:FindFirstChild("7")
- local H = RFour:FindFirstChild("9")
- local J = RFour:FindFirstChild("11")
- --------------------------------------------------------
- local RFive = Key:FindFirstChild("5")
- --------------------------------------------------------
- local l = RFive:FindFirstChild("1")
- local z = RFive:FindFirstChild("3")
- local x = RFive:FindFirstChild("5")
- local c = RFive:FindFirstChild("6")
- local v = RFive:FindFirstChild("8")
- local b = RFive:FindFirstChild("10")
- local n = RFive:FindFirstChild("12")
- -----------------------
- local L = RFive:FindFirstChild("2")
- local Z = RFive:FindFirstChild("4")
- local C = RFive:FindFirstChild("7")
- local V = RFive:FindFirstChild("9")
- local B = RFive:FindFirstChild("11")
- --------------------------------------------------------
- local RFive = Key:FindFirstChild("5")
- --------------------------------------------------------
- local m = RFive:FindFirstChild("1")
- --------------------------------------------------------
- while true do
- wait(.1)
- if One.Mesh.Offset.Y ~= 0 then
- KC.Text = "1"
- -----------------------
- elseif Two.Mesh.Offset.Y ~= 0 then
- KC.Text = "2"
- -----------------------
- elseif Three.Mesh.Offset.Y ~= 0 then
- KC.Text = "3"
- -----------------------
- elseif Four.Mesh.Offset.Y ~= 0 then
- KC.Text = "4"
- -----------------------
- elseif Five.Mesh.Offset.Y ~= 0 then
- KC.Text = "5"
- -----------------------
- elseif Six.Mesh.Offset.Y ~= 0 then
- KC.Text = "6"
- -----------------------
- elseif Seven.Mesh.Offset.Y ~= 0 then
- KC.Text = "7"
- ------------------------------------------------------
- elseif Eight.Mesh.Offset.Y ~= 0 then
- KC.Text = "8"
- -----------------------
- elseif Nine.Mesh.Offset.Y ~= 0 then
- KC.Text = "9"
- -----------------------
- elseif Zero.Mesh.Offset.Y ~= 0 then
- KC.Text = "0"
- -----------------------
- elseif q.Mesh.Offset.Y ~= 0 then
- KC.Text = "q"
- -----------------------
- elseif w.Mesh.Offset.Y ~= 0 then
- KC.Text = "w"
- -----------------------
- elseif e.Mesh.Offset.Y ~= 0 then
- KC.Text = "e"
- -----------------------
- elseif r.Mesh.Offset.Y ~= 0 then
- KC.Text = "r"
- ------------------------------------------------------
- elseif t.Mesh.Offset.Y ~= 0 then
- KC.Text = "t"
- -----------------------
- elseif y.Mesh.Offset.Y ~= 0 then
- KC.Text = "y"
- -----------------------
- elseif u.Mesh.Offset.Y ~= 0 then
- KC.Text = "u"
- -----------------------
- elseif i.Mesh.Offset.Y ~= 0 then
- KC.Text = "i"
- -----------------------
- elseif o.Mesh.Offset.Y ~= 0 then
- KC.Text = "o"
- -----------------------
- elseif p.Mesh.Offset.Y ~= 0 then
- KC.Text = "p"
- -----------------------
- elseif a.Mesh.Offset.Y ~= 0 then
- KC.Text = "a"
- ------------------------------------------------------
- elseif s.Mesh.Offset.Y ~= 0 then
- KC.Text = "s"
- -----------------------
- elseif d.Mesh.Offset.Y ~= 0 then
- KC.Text = "d"
- -----------------------
- elseif f.Mesh.Offset.Y ~= 0 then
- KC.Text = "f"
- -----------------------
- elseif g.Mesh.Offset.Y ~= 0 then
- KC.Text = "g"
- -----------------------
- elseif h.Mesh.Offset.Y ~= 0 then
- KC.Text = "h"
- -----------------------
- elseif j.Mesh.Offset.Y ~= 0 then
- KC.Text = "j"
- -----------------------
- elseif k.Mesh.Offset.Y ~= 0 then
- KC.Text = "k"
- ------------------------------------------------------
- elseif l.Mesh.Offset.Y ~= 0 then
- KC.Text = "l"
- -----------------------
- elseif z.Mesh.Offset.Y ~= 0 then
- KC.Text = "z"
- -----------------------
- elseif x.Mesh.Offset.Y ~= 0 then
- KC.Text = "x"
- -----------------------
- elseif c.Mesh.Offset.Y ~= 0 then
- KC.Text = "c"
- -----------------------
- elseif v.Mesh.Offset.Y ~= 0 then
- KC.Text = "v"
- -----------------------
- elseif b.Mesh.Offset.Y ~= 0 then
- KC.Text = "b"
- -----------------------
- elseif n.Mesh.Offset.Y ~= 0 then
- KC.Text = "n"
- ------------------------------------------------------
- elseif m.Mesh.Offset.Y ~= 0 then
- KC.Text = "m"
- ------------------------------------------------------
- end
- end
- -------------------------------------------------------------------------------
- end
- end)
- tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement