Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
- <External>null</External>
- <External>nil</External>
- <Item class="Script" referent="RBX5BDA6C70E8B745AFA79F02F3C9DD3156">
- <Properties>
- <bool name="Disabled">false</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">HatHelperGuideGiverScript</string>
- <ProtectedString name="Source"><![CDATA[-- Guide to how to make a hat giver.
- -- To adjust where your hat will be postioned on your head, go to the script line that says "h.AttachmentPos = Vector3.new(0,0,0)
- -- The first number in the (0,0,0) will make your hat go to the left, or to the right, making the number positive will make your hat be
- -- placed to the left, making it negative( ex. "-1") will make it be placed to the right. If your hat is pretty semetrical, you wont have to
- -- adjust the first number, it stays usually in the middle, a zero.
- -- The middle number adjusts how high/low the hat will be placed on the head. The higher the number is, the lower the hat will be
- -- placed. If you are at zero, and you want the hat to go lower, make the number a negative. Negative numbers will make the hat
- -- be place higher on your robloxian head.
- -- The third number determines how far ahead/back your hat will be placed. Making the number positive will place the hat ahead of
- -- you, while making the number negative will place the hat behind you some.
- -- NOTE, on the first, and last numbers, the ones that make your hat go left/right/ahead/back shouldn't be changed by whole numbers
- -- to make your hat giver perfect, if you have to use those two numbers, move it slowly by ".1's"
- -- This can also go for the middle number. If your hat is slightly higher than its supposed to be, than edit the number slightly.
- -- Do not change the numbers by whole numbers, or else it will go really far off. Change the numbers by ".1's" and ".2's"
- -- If you want to after how many seconds can you get another hat on your head, change the line that says "wait(5)"
- -- Changing this will change after how many seconds can someone touch the giver, and get a hat. It's best to leave it as it is,
- -- Changing it really doesnt matter.
- -- In build mode, after every time you change this script, copy the script, delete it, and paste it back into your hat, if you don't,
- -- nothing will change, I don't know why, but this is how I make my givers.
- -- If you want to change the hat that you are trying on, change the "Mesh" Just delete the one in the brick that this script is in,
- -- and copy a mesh from a different hat, that you want to try on with this script.
- -- Do not rename the name of the "Mesh", leave it saying Mesh, or the giver wont work.
- -- Ask any questions here: http://www.roblox.com/Forum/ShowPost.aspx?PostID=13178947
- -- If you want to know how to retexture a hat, read this: http://www.roblox.com/Forum/ShowPost.aspx?PostID=10502388
- debounce = true
- function onTouched(hit)
- if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
- debounce = false
- h = Instance.new("Hat")
- p = Instance.new("Part")
- s = Instance.new("Sound")
- h.Name = "BoomBox"
- s.Looped = true
- s.Volume = 1 -- It doesn't make a difference, but if you want to make your place in Explorer neater, change this to the name of your hat.
- p.Parent = h
- p.Position = hit.Parent:findFirstChild("Head").Position
- p.Name = "Handle"
- p.formFactor = 0
- p.Size = Vector3.new(-0,-0,-1)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Locked = true
- script.Parent.Mesh:clone().Parent = p
- h.Parent = hit.Parent
- s.Parent = hit.Parent.Torso
- h.AttachmentPos = Vector3.new(0,1.75,-0.7) -- Change these to change the positiones of your hat, as I said earlier.
- wait(5) debounce = true
- end
- end
- script.Parent.Touched:connect(onTouched)
- -- Script Guide by HatHelper]]></ProtectedString>
- </Properties>
- </Item>
- <Item class="SpecialMesh" referent="RBX00187890571B49EC906B43E3E4E81F81">
- <Properties>
- <token name="LODX">2</token>
- <token name="LODY">2</token>
- <Content name="MeshId"><url>http://www.roblox.com/asset/?id=151760030</url></Content>
- <token name="MeshType">5</token>
- <string name="Name">Mesh</string>
- <Vector3 name="Offset">
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </Vector3>
- <Vector3 name="Scale">
- <X>-1</X>
- <Y>1</Y>
- <Z>-1</Z>
- </Vector3>
- <Content name="TextureId"><url>http://www.roblox.com/asset/?id=151760072</url></Content>
- <Vector3 name="VertexColor">
- <X>1</X>
- <Y>1</Y>
- <Z>1</Z>
- </Vector3>
- </Properties>
- </Item>
- <Item class="ScreenGui" referent="RBXA9A4895C3DDE42C99176F06A9712B3A1">
- <Properties>
- <string name="Name">SoundGui</string>
- </Properties>
- <Item class="Script" referent="RBX1F9BF8D52A5B433E9B91AC40771153F7">
- <Properties>
- <bool name="Disabled">false</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">GUI Giver</string>
- <ProtectedString name="Source"><![CDATA[local debounce = false
- function getPlayer(humanoid)
- local players = game.Players:children()
- for i = 1, #players do
- if players[i].Character.Humanoid == humanoid then return players[i] end
- end
- return nil
- end
- function onTouch(part)
- local human = part.Parent:findFirstChild("Humanoid")
- if (human ~= nil) and debounce == false then
- debounce = true
- local player = getPlayer(human)
- if (player == nil) then return end
- script.Parent:clone().Parent = player.PlayerGui
- wait(1)
- debounce = false
- player.PlayerGui.OnTouchGui:remove()
- wait(5)
- debounce = false
- wait(5)
- end
- end
- script.Parent.Parent.Touched:connect(onTouch)
- ]]></ProtectedString>
- </Properties>
- </Item>
- <Item class="Frame" referent="RBX77AF12E234924ACA81FA07D7533A3EEB">
- <Properties>
- <bool name="Active">false</bool>
- <Color3 name="BackgroundColor3">4288914085</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4279970357</Color3>
- <int name="BorderSizePixel">1</int>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <string name="Name">Frame</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>0</XO>
- <YS>0.5</YS>
- <YO>-25</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">false</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>0</XS>
- <XO>200</XO>
- <YS>0</YS>
- <YO>100</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <token name="Style">3</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- <Item class="TextButton" referent="RBX56A0C3A9A3004D0A851AB15F19176F6C">
- <Properties>
- <bool name="Active">true</bool>
- <bool name="AutoButtonColor">true</bool>
- <Color3 name="BackgroundColor3">4278255360</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4294967295</Color3>
- <int name="BorderSizePixel">2</int>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <token name="Font">4</token>
- <token name="FontSize">7</token>
- <bool name="Modal">false</bool>
- <string name="Name">TextButton</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>46</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">true</bool>
- <bool name="Selected">false</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>0.25</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>35</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <token name="Style">0</token>
- <string name="Text">Play</string>
- <Color3 name="TextColor3">4294967295</Color3>
- <bool name="TextScaled">false</bool>
- <Color3 name="TextStrokeColor3">4278190080</Color3>
- <float name="TextStrokeTransparency">0.200000003</float>
- <float name="TextTransparency">0</float>
- <bool name="TextWrapped">false</bool>
- <token name="TextXAlignment">2</token>
- <token name="TextYAlignment">1</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- </Item>
- <Item class="LocalScript" referent="RBX2D369AD63DAC432B81219E1E0843DD29">
- <Properties>
- <bool name="Disabled">false</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">LocalScript</string>
- <ProtectedString name="Source"><![CDATA[local ContentProvider = game:GetService("ContentProvider")
- local totalWait = 20
- local queueSize = ContentProvider.RequestQueueSize
- function UpdateQueueSize()
- queueSize = ContentProvider.RequestQueueSize
- end
- function WaitForSoundToLoad()
- local start = tick()
- while (ContentProvider.RequestQueueSize > queueSize) and ((tick() - start) < totalWait ) do
- wait(0.1)
- end
- if (start - tick() > 1) then print("Took " .. tostring(start - tick()) " seconds to load") end
- end
- local x = game.Workspace:FindFirstChild(""..script.Parent.Parent.Parent.Parent.Name)
- if not (x) then
- return
- else
- function PlaySound(id)
- if id == nil then print("Invalid sound") return end
- local sound = x.Torso.Sound
- sound.SoundId = "http://www.roblox.com/asset?id=" .. tostring(id)
- UpdateQueueSize()
- WaitForSoundToLoad()
- sound:Play()
- end
- local TextBox = script.Parent:WaitForChild("TextBox")
- local TextButton = script.Parent:WaitForChild("TextButton")
- local Stop = script.Parent:WaitForChild("Stop")
- TextBox.FocusLost:connect(function(enterPressed)
- Game:GetService("ContentProvider"):Preload(TextBox.Text)
- end)
- TextButton.MouseButton1Click:connect(function()
- PlaySound(tonumber(TextBox.Text))
- end)
- Stop.MouseButton1Click:connect(function()
- local sound = x.Torso.Sound
- sound:Stop()
- end)
- end
- ]]></ProtectedString>
- </Properties>
- </Item>
- <Item class="TextBox" referent="RBX5F796A9430144ADE96F736D152F5CF6A">
- <Properties>
- <bool name="Active">true</bool>
- <Color3 name="BackgroundColor3">4294967295</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4291282887</Color3>
- <int name="BorderSizePixel">2</int>
- <bool name="ClearTextOnFocus">true</bool>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <token name="Font">4</token>
- <token name="FontSize">5</token>
- <bool name="MultiLine">false</bool>
- <string name="Name">TextBox</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>0</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">true</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>1</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>40</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <string name="Text">paste ID here</string>
- <Color3 name="TextColor3">4279970357</Color3>
- <bool name="TextScaled">false</bool>
- <Color3 name="TextStrokeColor3">4278190080</Color3>
- <float name="TextStrokeTransparency">1</float>
- <float name="TextTransparency">0</float>
- <bool name="TextWrapped">false</bool>
- <token name="TextXAlignment">2</token>
- <token name="TextYAlignment">1</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- </Item>
- <Item class="TextButton" referent="RBXA04FA22920E6422A97BC1EC0F6F33489">
- <Properties>
- <bool name="Active">true</bool>
- <bool name="AutoButtonColor">true</bool>
- <Color3 name="BackgroundColor3">4294901760</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4294967295</Color3>
- <int name="BorderSizePixel">2</int>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <token name="Font">4</token>
- <token name="FontSize">7</token>
- <bool name="Modal">false</bool>
- <string name="Name">Stop</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>138</XO>
- <YS>0</YS>
- <YO>46</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">true</bool>
- <bool name="Selected">false</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>0.25</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>35</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <token name="Style">0</token>
- <string name="Text">Stop</string>
- <Color3 name="TextColor3">4294967295</Color3>
- <bool name="TextScaled">false</bool>
- <Color3 name="TextStrokeColor3">4278190080</Color3>
- <float name="TextStrokeTransparency">0.200000003</float>
- <float name="TextTransparency">0</float>
- <bool name="TextWrapped">false</bool>
- <token name="TextXAlignment">2</token>
- <token name="TextYAlignment">1</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- </Item>
- <Item class="Script" referent="RBX4DB8ABBD9D9044019B0623B372EB9BFC">
- <Properties>
- <bool name="Disabled">true</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">Script</string>
- <ProtectedString name="Source"><![CDATA[local x = game.Workspace:FindFirstChild(""..script.Parent.Parent.Parent.Parent.Name)
- if not (x) then
- return
- else
- ]]></ProtectedString>
- </Properties>
- </Item>
- </Item>
- </Item>
- <Item class="Part" referent="RBX058D72A5AECF450C8F9C78419D30B939">
- <Properties>
- <bool name="Anchored">true</bool>
- <float name="BackParamA">-0.5</float>
- <float name="BackParamB">0.5</float>
- <token name="BackSurface">0</token>
- <token name="BackSurfaceInput">0</token>
- <float name="BottomParamA">-0.5</float>
- <float name="BottomParamB">0.5</float>
- <token name="BottomSurface">0</token>
- <token name="BottomSurfaceInput">0</token>
- <int name="BrickColor">194</int>
- <CoordinateFrame name="CFrame">
- <X>-20.5999985</X>
- <Y>2.99999905</Y>
- <Z>-23.7000008</Z>
- <R00>0</R00>
- <R01>0</R01>
- <R02>-1</R02>
- <R10>0</R10>
- <R11>1</R11>
- <R12>0</R12>
- <R20>1</R20>
- <R21>0</R21>
- <R22>0</R22>
- </CoordinateFrame>
- <bool name="CanCollide">true</bool>
- <PhysicalProperties name="CustomPhysicalProperties">
- <CustomPhysics>false</CustomPhysics>
- </PhysicalProperties>
- <float name="Elasticity">0.5</float>
- <float name="Friction">0.300000012</float>
- <float name="FrontParamA">-0.5</float>
- <float name="FrontParamB">0.5</float>
- <token name="FrontSurface">0</token>
- <token name="FrontSurfaceInput">0</token>
- <float name="LeftParamA">-0.5</float>
- <float name="LeftParamB">0.5</float>
- <token name="LeftSurface">0</token>
- <token name="LeftSurfaceInput">0</token>
- <bool name="Locked">false</bool>
- <token name="Material">256</token>
- <string name="Name">ROBLO-WORLD Boombox real works</string>
- <float name="Reflectance">0</float>
- <float name="RightParamA">-0.5</float>
- <float name="RightParamB">0.5</float>
- <token name="RightSurface">0</token>
- <token name="RightSurfaceInput">0</token>
- <Vector3 name="RotVelocity">
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </Vector3>
- <float name="TopParamA">-0.5</float>
- <float name="TopParamB">0.5</float>
- <token name="TopSurface">0</token>
- <token name="TopSurfaceInput">0</token>
- <float name="Transparency">0</float>
- <Vector3 name="Velocity">
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </Vector3>
- <token name="formFactorRaw">3</token>
- <token name="shape">1</token>
- <Vector3 name="size">
- <X>3.00000048</X>
- <Y>2.00000095</Y>
- <Z>0.600000024</Z>
- </Vector3>
- </Properties>
- <Item class="Script" referent="RBX5BDA6C70E8B745AFA79F02F3C9DD3156">
- <Properties>
- <bool name="Disabled">false</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">HatHelperGuideGiverScript</string>
- <ProtectedString name="Source"><![CDATA[-- Guide to how to make a hat giver.
- -- To adjust where your hat will be postioned on your head, go to the script line that says "h.AttachmentPos = Vector3.new(0,0,0)
- -- The first number in the (0,0,0) will make your hat go to the left, or to the right, making the number positive will make your hat be
- -- placed to the left, making it negative( ex. "-1") will make it be placed to the right. If your hat is pretty semetrical, you wont have to
- -- adjust the first number, it stays usually in the middle, a zero.
- -- The middle number adjusts how high/low the hat will be placed on the head. The higher the number is, the lower the hat will be
- -- placed. If you are at zero, and you want the hat to go lower, make the number a negative. Negative numbers will make the hat
- -- be place higher on your robloxian head.
- -- The third number determines how far ahead/back your hat will be placed. Making the number positive will place the hat ahead of
- -- you, while making the number negative will place the hat behind you some.
- -- NOTE, on the first, and last numbers, the ones that make your hat go left/right/ahead/back shouldn't be changed by whole numbers
- -- to make your hat giver perfect, if you have to use those two numbers, move it slowly by ".1's"
- -- This can also go for the middle number. If your hat is slightly higher than its supposed to be, than edit the number slightly.
- -- Do not change the numbers by whole numbers, or else it will go really far off. Change the numbers by ".1's" and ".2's"
- -- If you want to after how many seconds can you get another hat on your head, change the line that says "wait(5)"
- -- Changing this will change after how many seconds can someone touch the giver, and get a hat. It's best to leave it as it is,
- -- Changing it really doesnt matter.
- -- In build mode, after every time you change this script, copy the script, delete it, and paste it back into your hat, if you don't,
- -- nothing will change, I don't know why, but this is how I make my givers.
- -- If you want to change the hat that you are trying on, change the "Mesh" Just delete the one in the brick that this script is in,
- -- and copy a mesh from a different hat, that you want to try on with this script.
- -- Do not rename the name of the "Mesh", leave it saying Mesh, or the giver wont work.
- -- Ask any questions here: http://www.roblox.com/Forum/ShowPost.aspx?PostID=13178947
- -- If you want to know how to retexture a hat, read this: http://www.roblox.com/Forum/ShowPost.aspx?PostID=10502388
- debounce = true
- function onTouched(hit)
- if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
- debounce = false
- h = Instance.new("Hat")
- p = Instance.new("Part")
- s = Instance.new("Sound")
- h.Name = "BoomBox"
- s.Looped = true
- s.Volume = 1 -- It doesn't make a difference, but if you want to make your place in Explorer neater, change this to the name of your hat.
- p.Parent = h
- p.Position = hit.Parent:findFirstChild("Head").Position
- p.Name = "Handle"
- p.formFactor = 0
- p.Size = Vector3.new(-0,-0,-1)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Locked = true
- script.Parent.Mesh:clone().Parent = p
- h.Parent = hit.Parent
- s.Parent = hit.Parent.Torso
- h.AttachmentPos = Vector3.new(0,1.75,-0.7) -- Change these to change the positiones of your hat, as I said earlier.
- wait(5) debounce = true
- end
- end
- script.Parent.Touched:connect(onTouched)
- -- Script Guide by HatHelper]]></ProtectedString>
- </Properties>
- </Item>
- <Item class="ScreenGui" referent="RBXA9A4895C3DDE42C99176F06A9712B3A1">
- <Properties>
- <string name="Name">SoundGui</string>
- </Properties>
- <Item class="Script" referent="RBX1F9BF8D52A5B433E9B91AC40771153F7">
- <Properties>
- <bool name="Disabled">false</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">GUI Giver</string>
- <ProtectedString name="Source"><![CDATA[local debounce = false
- function getPlayer(humanoid)
- local players = game.Players:children()
- for i = 1, #players do
- if players[i].Character.Humanoid == humanoid then return players[i] end
- end
- return nil
- end
- function onTouch(part)
- local human = part.Parent:findFirstChild("Humanoid")
- if (human ~= nil) and debounce == false then
- debounce = true
- local player = getPlayer(human)
- if (player == nil) then return end
- script.Parent:clone().Parent = player.PlayerGui
- wait(1)
- debounce = false
- player.PlayerGui.OnTouchGui:remove()
- wait(5)
- debounce = false
- wait(5)
- end
- end
- script.Parent.Parent.Touched:connect(onTouch)
- ]]></ProtectedString>
- </Properties>
- </Item>
- <Item class="Frame" referent="RBX77AF12E234924ACA81FA07D7533A3EEB">
- <Properties>
- <bool name="Active">false</bool>
- <Color3 name="BackgroundColor3">4288914085</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4279970357</Color3>
- <int name="BorderSizePixel">1</int>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <string name="Name">Frame</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>0</XO>
- <YS>0.5</YS>
- <YO>-25</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">false</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>0</XS>
- <XO>200</XO>
- <YS>0</YS>
- <YO>100</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <token name="Style">3</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- <Item class="TextButton" referent="RBX56A0C3A9A3004D0A851AB15F19176F6C">
- <Properties>
- <bool name="Active">true</bool>
- <bool name="AutoButtonColor">true</bool>
- <Color3 name="BackgroundColor3">4278255360</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4294967295</Color3>
- <int name="BorderSizePixel">2</int>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <token name="Font">4</token>
- <token name="FontSize">7</token>
- <bool name="Modal">false</bool>
- <string name="Name">TextButton</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>46</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">true</bool>
- <bool name="Selected">false</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>0.25</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>35</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <token name="Style">0</token>
- <string name="Text">Play</string>
- <Color3 name="TextColor3">4294967295</Color3>
- <bool name="TextScaled">false</bool>
- <Color3 name="TextStrokeColor3">4278190080</Color3>
- <float name="TextStrokeTransparency">0.200000003</float>
- <float name="TextTransparency">0</float>
- <bool name="TextWrapped">false</bool>
- <token name="TextXAlignment">2</token>
- <token name="TextYAlignment">1</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- </Item>
- <Item class="LocalScript" referent="RBX2D369AD63DAC432B81219E1E0843DD29">
- <Properties>
- <bool name="Disabled">false</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">LocalScript</string>
- <ProtectedString name="Source"><![CDATA[local ContentProvider = game:GetService("ContentProvider")
- local totalWait = 20
- local queueSize = ContentProvider.RequestQueueSize
- function UpdateQueueSize()
- queueSize = ContentProvider.RequestQueueSize
- end
- function WaitForSoundToLoad()
- local start = tick()
- while (ContentProvider.RequestQueueSize > queueSize) and ((tick() - start) < totalWait ) do
- wait(0.1)
- end
- if (start - tick() > 1) then print("Took " .. tostring(start - tick()) " seconds to load") end
- end
- local x = game.Workspace:FindFirstChild(""..script.Parent.Parent.Parent.Parent.Name)
- if not (x) then
- return
- else
- function PlaySound(id)
- if id == nil then print("Invalid sound") return end
- local sound = x.Torso.Sound
- sound.SoundId = "http://www.roblox.com/asset?id=" .. tostring(id)
- UpdateQueueSize()
- WaitForSoundToLoad()
- sound:Play()
- end
- local TextBox = script.Parent:WaitForChild("TextBox")
- local TextButton = script.Parent:WaitForChild("TextButton")
- local Stop = script.Parent:WaitForChild("Stop")
- TextBox.FocusLost:connect(function(enterPressed)
- Game:GetService("ContentProvider"):Preload(TextBox.Text)
- end)
- TextButton.MouseButton1Click:connect(function()
- PlaySound(tonumber(TextBox.Text))
- end)
- Stop.MouseButton1Click:connect(function()
- local sound = x.Torso.Sound
- sound:Stop()
- end)
- end
- ]]></ProtectedString>
- </Properties>
- </Item>
- <Item class="TextBox" referent="RBX5F796A9430144ADE96F736D152F5CF6A">
- <Properties>
- <bool name="Active">true</bool>
- <Color3 name="BackgroundColor3">4294967295</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4291282887</Color3>
- <int name="BorderSizePixel">2</int>
- <bool name="ClearTextOnFocus">true</bool>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <token name="Font">4</token>
- <token name="FontSize">5</token>
- <bool name="MultiLine">false</bool>
- <string name="Name">TextBox</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>0</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">true</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>1</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>40</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <string name="Text">paste ID here</string>
- <Color3 name="TextColor3">4279970357</Color3>
- <bool name="TextScaled">false</bool>
- <Color3 name="TextStrokeColor3">4278190080</Color3>
- <float name="TextStrokeTransparency">1</float>
- <float name="TextTransparency">0</float>
- <bool name="TextWrapped">false</bool>
- <token name="TextXAlignment">2</token>
- <token name="TextYAlignment">1</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- </Item>
- <Item class="TextButton" referent="RBXA04FA22920E6422A97BC1EC0F6F33489">
- <Properties>
- <bool name="Active">true</bool>
- <bool name="AutoButtonColor">true</bool>
- <Color3 name="BackgroundColor3">4294901760</Color3>
- <float name="BackgroundTransparency">0</float>
- <Color3 name="BorderColor3">4294967295</Color3>
- <int name="BorderSizePixel">2</int>
- <bool name="ClipsDescendants">false</bool>
- <bool name="Draggable">false</bool>
- <token name="Font">4</token>
- <token name="FontSize">7</token>
- <bool name="Modal">false</bool>
- <string name="Name">Stop</string>
- <Ref name="NextSelectionDown">null</Ref>
- <Ref name="NextSelectionLeft">null</Ref>
- <Ref name="NextSelectionRight">null</Ref>
- <Ref name="NextSelectionUp">null</Ref>
- <UDim2 name="Position">
- <XS>0</XS>
- <XO>138</XO>
- <YS>0</YS>
- <YO>46</YO>
- </UDim2>
- <float name="Rotation">0</float>
- <bool name="Selectable">true</bool>
- <bool name="Selected">false</bool>
- <Ref name="SelectionImageObject">null</Ref>
- <UDim2 name="Size">
- <XS>0.25</XS>
- <XO>0</XO>
- <YS>0</YS>
- <YO>35</YO>
- </UDim2>
- <token name="SizeConstraint">0</token>
- <token name="Style">0</token>
- <string name="Text">Stop</string>
- <Color3 name="TextColor3">4294967295</Color3>
- <bool name="TextScaled">false</bool>
- <Color3 name="TextStrokeColor3">4278190080</Color3>
- <float name="TextStrokeTransparency">0.200000003</float>
- <float name="TextTransparency">0</float>
- <bool name="TextWrapped">false</bool>
- <token name="TextXAlignment">2</token>
- <token name="TextYAlignment">1</token>
- <bool name="Visible">true</bool>
- <int name="ZIndex">1</int>
- </Properties>
- </Item>
- <Item class="Script" referent="RBX4DB8ABBD9D9044019B0623B372EB9BFC">
- <Properties>
- <bool name="Disabled">true</bool>
- <Content name="LinkedSource"><null></null></Content>
- <string name="Name">Script</string>
- <ProtectedString name="Source"><![CDATA[local x = game.Workspace:FindFirstChild(""..script.Parent.Parent.Parent.Parent.Name)
- if not (x) then
- return
- else
- ]]></ProtectedString>
- </Properties>
- </Item>
- </Item>
- </Item>
- <Item class="SpecialMesh" referent="RBX00187890571B49EC906B43E3E4E81F81">
- <Properties>
- <token name="LODX">2</token>
- <token name="LODY">2</token>
- <Content name="MeshId"><url>http://www.roblox.com/asset/?id=151760030</url></Content>
- <token name="MeshType">5</token>
- <string name="Name">Mesh</string>
- <Vector3 name="Offset">
- <X>0</X>
- <Y>0</Y>
- <Z>0</Z>
- </Vector3>
- <Vector3 name="Scale">
- <X>-1</X>
- <Y>1</Y>
- <Z>-1</Z>
- </Vector3>
- <Content name="TextureId"><url>http://www.roblox.com/asset/?id=151760072</url></Content>
- <Vector3 name="VertexColor">
- <X>1</X>
- <Y>1</Y>
- <Z>1</Z>
- </Vector3>
- </Properties>
- </Item>
- </Item>
- </roblox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement