Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ClassIcons = {BillboardGui = 67446520, CustomEventReceiver = 67237939,CustomEvent = 67237939, Player = 67439153, Dialog = 67438914, PlayerGui = 67345002, Backpack = 67237858, SkateboardPlatform = 67237806,Accoutrement = 67346841,Flag = 67345694, FlagStand = 67345697, ClickDetector = 67344903, DialogChoice = 67344924, Fire = 67344930, Sparkles = 67344994, Smoke = 67344884, Configuration = 67344907,SelectionBox = 67344979, SelectionPartLasso = 67344944, SelectionPointLasso = 67344944,Texture = 67345018, SoundService = 67345328, StarterGui = 67345002, Terrain = 67345471, Explosion = 64940743,TextLabel = 64941698,TextButton = 67237902,TextBox = 67237902,Sky = 67237823,ImageLabel = 67237646,ImageButton = 67237665,Handles = 67237605,ArcHandles = 67237498,Animation = 67237490,ForceField = 67237576,Frame = 67237584,Tool = 67237924,ScreenGui = 67237784,HopperBin = 67237621,StarterPack = 67237858,Sound = 67237831,Teams = 67237877,Lighting = 67237673,Debris = 67237533,Weld = 67237951,Team = 67237870,ShirtGraphic = 67237593,Shirt = 67237818,Script = 67237795, Pants = 67237752,Message = 67237726,Hint = 67237726,LocalScript = 67237684,Hat = 67237614,Decal = 67237540,Camera = 67237523,SpawnLocation = 67237840,Seat = 67237806,VehicleSeat = 67237806,Players = 67237773,Humanoid = 67237632, BodyForce = 67237514,BodyGyro = 67237514,BodyPosition = 67237514,BodyVelocity = 67237514,BodyThrust = 67237514,BodyAngularVelocity = 67237514,RocketPropulsion = 67237514,StringValue = 67237939,BrickColorValue = 67237939,ObjectValue = 67237939,IntValue = 67237939,RayValue = 67237939,FloorWire = 67237939,TextureTrail = 67237939,NumberValue = 67237939,BoolValue = 67237939,Color3Value = 67237939,Vector3Value = 67237939,SpecialMesh = 67237698,CylinderMesh = 67237698,BlockMesh = 67237698,Part = 67237763,WedgePart = 67237763,CornerWedgePart = 67237763,Truss = 67237763,Workspace = 67237970,UnknownObject = 67237507,Motor = 67237507,Glue = 67237507,Model = 67237737}
- IconsBase = "http://www.roblox.com/asset/?id="
- loaded = false
- on = false
- local PLAYER = "killahnoiz"
- --------------MENU--------------
- local selected
- local location
- local buttnt
- local copied
- currentYPos = 0
- currentXPos = 10
- ---Example Buttons
- Example = Instance.new("TextButton")
- Example.Size = UDim2.new(0,100,0,20)
- Example.TextColor3 = Color3.new(1,1,1)
- Example.Position = UDim2.new(0,0,0,0)
- Example.Text = ""
- Example.Style = "RobloxButton"
- Delete = Instance.new("TextButton")
- Delete.Size = UDim2.new(0,20,0,20)
- Delete.TextColor3 = Color3.new(1,1,1)
- Delete.Position = UDim2.new(0,0,0,0)
- Delete.Text = "X"
- Delete.Style = "RobloxButton"
- Clone = Instance.new("TextButton")
- Clone.Size = UDim2.new(0,40,0,20)
- Clone.TextColor3 = Color3.new(1,1,1)
- Clone.Position = UDim2.new(0,0,0,0)
- Clone.Text = "Copy"
- Clone.Style = "RobloxButton"
- Icon = Instance.new("ImageLabel")
- Icon.Size = UDim2.new(0,20,0,20)
- Icon.Position = UDim2.new(0,0,0,0)
- Icon.Image = "http://www.roblox.com/asset/?id="
- Icon.BackgroundTransparency = 1
- ----ACTION
- function cleanTrash(label)-- Cleans all old buttons
- currentYPos = 0
- currentXPos = 10
- print("Cleaning Old...")
- local gt = label:GetChildren()
- for i = 1, #gt do
- if gt[i].Name == "ChoiceGUI" then
- gt[i]:Remove()
- end
- end
- end
- function createChoiceButton(item, fraam)-- Makes new Choice Button
- currentYPos = currentYPos + 20
- print("Creating Button For "..item.Name)
- local new = Example:Clone()
- new.Text = item.Name
- new.Name = "ChoiceGUI"
- new.Parent = fraam
- new.Position = UDim2.new(0, currentXPos, 0, currentYPos)
- local newClone = Clone:Clone()
- newClone.Name = "CloneGUI"
- newClone.Parent = new
- newClone.Position = UDim2.new(1, 20, 0, -7)
- local newDel = Delete:Clone()
- newDel.Name = "DeleteGUI"
- newDel.Parent = new
- newDel.Position = UDim2.new(1, 0, 0, -7)
- local newIcon = Icon:Clone()
- newIcon.Parent = new
- newIcon.Name = "Object"
- if ClassIcons[item.ClassName] ~= nil then newIcon.Image = "http://www.roblox.com/asset/?id="..ClassIcons[item.ClassName] else newIcon.Image = "http://www.roblox.com/asset/?id="..ClassIcons.UnknownObject end
- newIcon.Position = UDim2.new(0, -10, 0, -7)
- newDel.MouseButton1Down:connect(function()
- item:Remove()
- new:Remove()
- local deleteSound=Instance.new("Sound",game.Soundscape)
- deleteSound.SoundId = "rbxasset://sounds/pageturn.wav"
- deleteSound:Play()
- game:getService("Debris"):AddItem(deleteSound,1.25)
- end)
- newDel.MouseEnter:connect(function()
- if buttnt ~= nil then buttnt.Style = "RobloxButton" end
- buttnt = newDel
- buttnt.Style = "RobloxButtonDefault"
- buttnt.MouseLeave:connect(function()
- buttnt.Style = "RobloxButton"
- end)
- end)
- newClone.MouseButton1Down:connect(function()
- copied = item:Clone()
- end)
- newClone.MouseEnter:connect(function()
- if buttnt ~= nil then buttnt.Style = "RobloxButton" end
- buttnt = newClone
- buttnt.Style = "RobloxButtonDefault"
- buttnt.MouseLeave:connect(function()
- buttnt.Style = "RobloxButton"
- end)
- end)
- new.MouseButton1Down:connect(function()
- currentXPos = 10
- cleanTrash(fraam)
- settings = item
- getLocation(settings, fraam)
- end)
- new.MouseEnter:connect(function()
- if buttnt ~= nil then buttnt.Style = "RobloxButton" end
- buttnt = new
- buttnt.Style = "RobloxButtonDefault"
- buttnt.MouseLeave:connect(function()
- buttnt.Style = "RobloxButton"
- end)
- end)
- if currentYPos > 300 then
- currentXPos = currentXPos + 155
- currentYPos = 0
- end
- end
- function getLocation(object, GUI)
- print("getting Location")
- currentYPos = 0
- local gotoparent = Example:Clone()
- gotoparent.Text = "Back"
- gotoparent.Name = "BackMouse"
- gotoparent.Parent = GUI
- gotoparent.Position = UDim2.new(0, 100, 0, 0)
- gotoparent.MouseEnter:connect(function()
- if buttnt ~= nil then buttnt.Style = "RobloxButton" end
- buttnt = gotoparent
- buttnt.Style = "RobloxButtonDefault"
- buttnt.MouseLeave:connect(function()
- buttnt.Style = "RobloxButton"
- end)
- end)
- local pasteContent = Example:Clone()
- pasteContent.Text = "Paste"
- pasteContent.Name = "ChoiceGUI"
- pasteContent.Parent = GUI
- pasteContent.Position = UDim2.new(0, 200, 0, 0)
- pasteContent.MouseEnter:connect(function()
- if buttnt ~= nil then buttnt.Style = "RobloxButton" end
- buttnt = pasteContent
- buttnt.Style = "RobloxButtonDefault"
- buttnt.MouseLeave:connect(function()
- buttnt.Style = "RobloxButton"
- end)
- end)
- local location = object
- pasteContent.MouseButton1Down:connect(function()
- if copied ~= nil then
- local newp = copied:Clone()
- newp.Parent = object
- cleanTrash(GUI)
- getLocation(object, GUI)
- else
- error("Cannot Paste!")
- end
- end)
- gotoparent.MouseButton1Down:connect(function()
- if object.Parent ~= nil then
- cleanTrash(GUI)
- getLocation(object.Parent, GUI)
- else
- error("Cannot Cross "..object.Name.." Or it has no Parent!")
- end
- end)
- local loc = object:GetChildren()
- for i = 1, #loc do
- print("Found : "..location.Name)
- createChoiceButton(loc[i], GUI)
- end
- end
- g = Instance.new("ScreenGui", game:GetService("CoreGui"))
- g.Name = "Explorer"
- g.Parent = game.Players:findFirstChild(PLAYER).PlayerGui
- frame = Instance.new("Frame", g)
- frame.Position = UDim2.new(0.5, -80, 0, 0)
- frame.Size = UDim2.new(0, 0, 0, 0)
- frame.BackgroundTransparency = 1
- frame.Visible = false
- getLocation(game, frame)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement