of     1   

TheGuyDudeDude
#189379683Thursday, May 19, 2016 1:56 PM GMT

If you've ever played CS:GO or Murder Mystery 2 you would've known about crate unboxing, I've been stuck for a while trying to figure out how to make my own unboxing GUI for an upcoming game of mine. Does anyone know some tips on how to make a CS:GO based unboxing gui?
Ortron
#189380413Thursday, May 19, 2016 2:29 PM GMT

Use ClipsDecendants that way anything inside the frame won't show on the screen unless it is rotated
ColonySimulator
#189380655Thursday, May 19, 2016 2:39 PM GMT

Well for that you will need some list ,some gui and some item For example if we have our item in a folder. --So let create first by creating our folder in a place for example Lighting section,then we need a list of prize PrizesFolder = -- Enter your directory of your prizes folder Prizes = PrizesFolder:GetChildren() PrizesN = {""} -- Our prizes list with their Name PrizesI = {""} -- Enter by yourself all the Image ID of your thing function SetPrizesList() for p=1,#Prizes table.insert(PrizesN,p,Prizes[p].Name) -- insert the value inside the list end end SetPrizesList() -- then we need to make our gui and button (Our script is in a local script,because we have a gui) PrizeGui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) PrizeGui.Name = "PrizeGui" BGColors = {} -- Enter in here the three color value of your RGB (note it will be divided by the 255, so enter the 255 RGB color) C = 255 -- our 255 constant (Dont change it for the RGB of your background) BackGround = Instance.new("Frame",PrizeGui) BackGround.Name = "PrizeBG" BackGround.Visible = true BackGround.Position = UDim2.new(0,300,0,400) BackGround.Size = UDim2.new(0,200,0,200) BackGround.BackgroundColor3 = Color3.new(BGColors[1]/C,BGColors[2]/C,BGColors[3]/C) PrizeImage = Instance.new("ImageLabel",BackGround) PrizeImage.Name = "PrizeImage" PrizeImage.Position = UDim2.new(0,50,0,50) PrizeImage.Size = UDim2.new(0,50,0,50) PrizeName = Instance.new("TextLabel",BackGround) PrizeName.Name = "PrizeName" PrizeName.Position = UDim2.new(0,100,0,100) PrizeName.Size = UDim2.new(0,100,0,30) PrizeName.BackgroundTransparency = 1 WheelSpeed = 0.1 -- Change it for your own wheel speed function RevealPrize() -- The last spin shows the image for P=1,PrizeNo do PrizeImage.Image = "rbxassetid://" .. PrizeI[I] wait(WheelSpeed) end end function Spin() -- The Effect of switching between prize for S=1,WheelSpin do for I=1,#PrizeI do PrizeImage.Image = "rbxassetid://" .. PrizeI[I] wait(WheelSpeed) end end RevealPrize() end function LuckyWheel() -- Setting our wheel SpinsSetup = {minSpin,maxSpin} -- Switch the minSpin and maxSpin with the number WheelSpin = math.random (SpinsSetup[1],SpinsSetup[2]) -- will set a no of spin random PrizeNo = math.random(1,#PrizeN) PrizeName = PrizeN[PrizeNo] Spin() end LuckyWheel()
ColonySimulator
#189380773Thursday, May 19, 2016 2:44 PM GMT

I think that I made some error , but here it is fixed with the function I forgot that will give prize and I forgot to show the name x) PrizesFolder = -- Enter your directory of your prizes folder Prizes = PrizesFolder:GetChildren() PrizesN = {} -- Our prizes list with their Name PrizesI = {""} -- Enter by yourself all the Image ID of your thing function SetPrizesList() for p=1,#Prizes table.insert(PrizesN,p,Prizes[p].Name) -- insert the value inside the list end end SetPrizesList() -- then we need to make our gui and button (Our script is in a local script,because we have a gui) PrizeGui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui) PrizeGui.Name = "PrizeGui" BGColors = {} -- Enter in here the three color value of your RGB (note it will be divided by the 255, so enter the 255 RGB color) C = 255 -- our 255 constant (Dont change it for the RGB of your background) BackGround = Instance.new("Frame",PrizeGui) BackGround.Name = "PrizeBG" BackGround.Visible = true BackGround.Position = UDim2.new(0,300,0,400) BackGround.Size = UDim2.new(0,200,0,200) BackGround.BackgroundColor3 = Color3.new(BGColors[1]/C,BGColors[2]/C,BGColors[3]/C) PrizeImage = Instance.new("ImageLabel",BackGround) PrizeImage.Name = "PrizeImage" PrizeImage.Position = UDim2.new(0,50,0,50) PrizeImage.Size = UDim2.new(0,50,0,50) PrizeName = Instance.new("TextLabel",BackGround) PrizeName.Name = "PrizeName" PrizeName.Position = UDim2.new(0,100,0,100) PrizeName.Size = UDim2.new(0,100,0,30) PrizeName.BackgroundTransparency = 1 WheelSpeed = 0.1 -- Change it for your own wheel speed function GivePrize() WinnerPrize = PrizeFolder:FindFirstChild(PrizeName):clone() WinnerPrize.Parent = Player.Backpack end function RevealPrize() -- The last spin shows the image for P=1,PrizeNo do PrizeImage.Image = "rbxassetid://" .. PrizeI[I] PrizeName.Text = PrizeN[I] wait(WheelSpeed) end GivePrize() end function Spin() -- The Effect of switching between prize for S=1,WheelSpin do for I=1,#PrizeI do PrizeImage.Image = "rbxassetid://" .. PrizeI[I] PrizeName.Text = PrizeN[I] wait(WheelSpeed) end end RevealPrize() end function LuckyWheel() -- Setting our wheel SpinsSetup = {minSpin,maxSpin} -- Switch the minSpin and maxSpin with the number WheelSpin = math.random (SpinsSetup[1],SpinsSetup[2]) -- will set a no of spin random PrizeNo = math.random(1,#PrizeN) PrizeName = PrizeN[PrizeNo] Spin() end LuckyWheel()
ColonySimulator
#189380805Thursday, May 19, 2016 2:45 PM GMT

replace WinnerPrize.Parent = Player.Backpack with WinnerPrize.Parent = game.Players.LocalPlayer.Backpack
ColonySimulator
#189380974Thursday, May 19, 2016 2:52 PM GMT

and NP for the help I made this for fun because I was bored and didnt asked for robux but no thanks from you :(
Compounds
#189381070Thursday, May 19, 2016 2:56 PM GMT

thanks for helping him out :)
TheGuyDudeDude
#189554827Sunday, May 22, 2016 2:41 PM GMT

Alright, Just got back from my trip and thanks so much Colony for the script :D

    of     1