Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait();
- user = 'tyridge77';
- local player = game:GetService("Players")[user]
- local musicoriginal = Instance.new("Sound");
- local music = musicoriginal:clone();
- music.Parent = player.Character.Head;
- local music_array = {{"142392682",1},{"142356750",1}};
- local client = [=[
- wait();
- local player = game.Players.LocalPlayer;
- local ui = Instance.new("ScreenGui",player.PlayerGui);
- local frame = Instance.new("Frame",ui);
- frame.BackgroundTransparency = 1;
- frame.Size = UDim2.new(1,0,1,0);
- local box = Instance.new("TextBox",frame);
- box.BackgroundTransparency = .9;
- box.BackgroundColor3 = Color3.new();
- box.TextColor3 = Color3.new(1,1,1);
- box.Position = UDim2.new(.6,0,.8,0);
- box.Size = UDim2.new(.4,0,.05,0);
- local stringvalue = game.ReplicatedStorage:FindFirstChild("input") or Instance.new("StringValue",game.ReplicatedStorage);
- stringvalue.Name = "input";
- game.ReplicatedStorage.Changed:connect(function()
- wait(1)
- if not game.ReplicatedStorage:FindFirstChild("input") then
- stringvalue = game.ReplicatedStorage:WaitForChild("input");
- locked = true;
- end
- end)
- box.FocusLost:connect(function(enter)
- if enter == true and not lockedd then
- stringvalue.Value = box.Text;
- end
- end)
- ]=]
- NLS(client,player.Character);
- -- 2 - Handle
- obj2 = Instance.new("Part")
- obj2.CFrame = CFrame.new(Vector3.new(96.7201004, 1.84154582, 22.1550484)) * CFrame.Angles(8.6619855644947e-022, 8.6619855644947e-022, -1.5707964897156)
- obj2.FormFactor = Enum.FormFactor.Custom
- obj2.TopSurface = Enum.SurfaceType.Smooth
- obj2.RotVelocity = Vector3.new(6.92091033e-020, 6.92091033e-020, 6.92091033e-020)
- obj2.BottomSurface = Enum.SurfaceType.Smooth
- obj2.Size = Vector3.new(0.350000024, 0.560000002, 1.28999996)
- obj2.BrickColor = BrickColor.new("Mid gray")
- obj2.Velocity = Vector3.new(6.99999978e-020, -5.7225008, 6.99999978e-020)
- obj2.Friction = 0.30000001192093
- obj2.Shape = Enum.PartType.Block
- obj2.Name = "Handle"
- Taco = obj2;
- -- 3 - Mesh
- obj3 = Instance.new("SpecialMesh")
- obj3.MeshType = Enum.MeshType.FileMesh
- obj3.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
- obj3.MeshId = "http://www.roblox.com/asset/?id=14846869"
- obj3.TextureId = "http://www.roblox.com/asset/?id=14846834"
- obj3.Parent = obj2
- -- 2 - Burrito
- obj2 = Instance.new("Part")
- obj2.CFrame = CFrame.new(Vector3.new(-54.9829941, 1.76618731, -31.6860008)) * CFrame.Angles(-1.5707963705063, 0, 1.5707963705063)
- obj2.FormFactor = Enum.FormFactor.Custom
- obj2.TopSurface = Enum.SurfaceType.Smooth
- obj2.RotVelocity = Vector3.new(1.36602804e-019, 1.36602804e-019, 1.36602804e-019)
- obj2.BottomSurface = Enum.SurfaceType.Smooth
- obj2.Size = Vector3.new(0.529999971, 0.540000021, 1)
- obj2.BrickColor = BrickColor.new("Mid gray")
- obj2.Velocity = Vector3.new(1.39999983e-019, -11.4450054, 1.39999983e-019)
- obj2.Friction = 0.30000001192093
- obj2.Shape = Enum.PartType.Block
- obj2.Name = "Burrito"
- obj2.Parent = obj1
- Burrito = obj2;
- -- 3 - Mesh
- obj3 = Instance.new("SpecialMesh")
- obj3.MeshType = Enum.MeshType.FileMesh
- obj3.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
- obj3.MeshId = "http://www.roblox.com/asset/?id=28437866"
- obj3.TextureId = "http://www.roblox.com/asset/?id=28437890"
- obj3.Parent = obj2
- -- 2 - Sombrero
- Hat = Instance.new("Hat");
- Hat.AttachmentForward = Vector3.new(0, 0, -1);
- Hat.AttachmentPos = Vector3.new(0, -0.25, 0);
- Hat.AttachmentRight = Vector3.new(1, 0, 0);
- Hat.AttachmentUp = Vector3.new(0, 1, 0);
- Hat.Name = "TranslatorHat";
- -- 3 - Handle
- obj3 = Instance.new("Part")
- obj3.CFrame = CFrame.new(Vector3.new(-51.7999954, -0.845267892, -34.0000038)) * CFrame.Angles(1.5186921339787e-020, 1.5186921339787e-020, 1.5186921339787e-020)
- obj3.FormFactor = Enum.FormFactor.Plate
- obj3.CanCollide = false
- obj3.TopSurface = Enum.SurfaceType.Smooth
- obj3.RotVelocity = Vector3.new(2.66133316e-019, 2.66133316e-019, 2.66133316e-019)
- obj3.BottomSurface = Enum.SurfaceType.Smooth
- obj3.Size = Vector3.new(2, 0.800000012, 2)
- obj3.Velocity = Vector3.new(2.79999888e-019, -22.8900204, 2.79999888e-019)
- obj3.Friction = 0.30000001192093
- obj3.Shape = Enum.PartType.Block
- obj3.Name = "Handle"
- obj3.Parent = Hat
- -- 4 - Mesh
- obj4 = Instance.new("SpecialMesh")
- obj4.MeshType = Enum.MeshType.FileMesh
- obj4.MeshId = "http://www.roblox.com/asset/?id=1028797"
- obj4.TextureId = "http://www.roblox.com/asset/?id=1028796"
- obj4.Parent = obj3
- -- 2 - Hat
- obj2 = Instance.new("Hat")
- GermanHat = obj2;
- GermanHat.AttachmentForward = Vector3.new(0, 0, -1);
- GermanHat.AttachmentPos = Vector3.new(0, -0.25, 0);
- GermanHat.AttachmentRight = Vector3.new(1, 0, 0);
- GermanHat.AttachmentUp = Vector3.new(0, 1, 0);
- GermanHat.Name = "TranslatorHat";
- -- 3 - Handle
- obj3 = Instance.new("Part")
- obj3.CFrame = CFrame.new(Vector3.new(50.090004, 0.406529874, 3.40999603)) * CFrame.Angles(8.6619845547528e-022, 8.6619845547528e-022, 8.6619845547528e-022)
- obj3.FormFactor = Enum.FormFactor.Plate
- obj3.CanCollide = false
- obj3.TopSurface = Enum.SurfaceType.Smooth
- obj3.RotVelocity = Vector3.new(6.92091033e-020, 6.92091033e-020, 6.92091033e-020)
- obj3.BottomSurface = Enum.SurfaceType.Smooth
- obj3.Size = Vector3.new(2, 0.800000012, 2)
- obj3.Velocity = Vector3.new(6.99999978e-020, -5.7225008, 6.99999978e-020)
- obj3.Friction = 0.30000001192093
- obj3.Shape = Enum.PartType.Block
- obj3.Name = "Handle"
- obj3.Parent = GermanHat;
- -- 4 - Mesh
- obj4 = Instance.new("SpecialMesh")
- obj4.MeshType = Enum.MeshType.FileMesh
- obj4.MeshId = "http://www.roblox.com/asset/?id=1045381"
- obj4.TextureId = "http://www.roblox.com/asset/?id=16543789"
- obj4.Parent = obj3
- ItalianHat = Instance.new("Hat")
- ItalianHat.Name = "TranslatorHat";
- -- 3 - Handle
- obj3 = Instance.new("Part")
- obj3.CFrame = CFrame.new(Vector3.new(50.090004, 0.406529874, 3.40999603)) * CFrame.Angles(8.6619845547528e-022, 8.6619845547528e-022, 8.6619845547528e-022)
- obj3.FormFactor = Enum.FormFactor.Plate
- obj3.CanCollide = false
- obj3.TopSurface = Enum.SurfaceType.Smooth
- obj3.RotVelocity = Vector3.new(6.92091033e-020, 6.92091033e-020, 6.92091033e-020)
- obj3.BottomSurface = Enum.SurfaceType.Smooth
- obj3.Size = Vector3.new(2, 0.800000012, 2)
- obj3.Velocity = Vector3.new(6.99999978e-020, -5.7225008, 6.99999978e-020)
- obj3.Friction = 0.30000001192093
- obj3.Shape = Enum.PartType.Block
- obj3.Name = "Handle"
- obj3.Parent = ItalianHat
- -- 4 - Mesh
- obj4 = Instance.new("SpecialMesh") obj4.Name = "Mesh";
- obj4.MeshType = Enum.MeshType.FileMesh
- obj4.Scale = Vector3.new(2.70000005, 2.70000005, 2.70000005)
- obj4.MeshId = "http://www.roblox.com/asset/?id=209973783"
- obj4.TextureId = "http://www.roblox.com/asset/?id=209974032"
- obj4.Parent = obj3
- -- 2 - Hat
- AmericanHat = Instance.new("Hat")
- AmericanHat.Name = "TranslatorHat";
- -- 3 - Handle
- obj3 = Instance.new("Part")
- obj3.CFrame = CFrame.new(Vector3.new(50.090004, 0.406529874, 3.40999603)) * CFrame.Angles(8.6619845547528e-022, 8.6619845547528e-022, 8.6619845547528e-022)
- obj3.FormFactor = Enum.FormFactor.Plate
- obj3.CanCollide = false
- obj3.TopSurface = Enum.SurfaceType.Smooth
- obj3.RotVelocity = Vector3.new(6.92091033e-020, 6.92091033e-020, 6.92091033e-020)
- obj3.BottomSurface = Enum.SurfaceType.Smooth
- obj3.Size = Vector3.new(2, 0.800000012, 2)
- obj3.Velocity = Vector3.new(6.99999978e-020, -5.7225008, 6.99999978e-020)
- obj3.Friction = 0.30000001192093
- obj3.Shape = Enum.PartType.Block
- obj3.Name = "Handle"
- obj3.Parent = AmericanHat
- -- 4 - Mesh
- obj4 = Instance.new("SpecialMesh")
- obj4.MeshType = Enum.MeshType.FileMesh
- obj4.Scale = Vector3.new(2.70000005, 2.70000005, 2.70000005)
- obj4.MeshId = "http://www.roblox.com/asset/?id=2711178"
- obj4.TextureId = "http://www.roblox.com/asset/?id=46591093"
- obj4.Parent = obj3
- function playmusic(music)
- local ar = music_array[math.random(1,#music_array)];
- local id,pitch,loop = unpack(ar);
- music.SoundId = "http://roblox.com/asset/?ID="..id;
- music.Pitch = pitch;
- wait();
- music.Looped = loop;
- music:Play();
- music.DidLoop:connect(function()
- local ar = music_array[math.random(1,#music_array)];
- local id,pitch = unpack(ar);
- music.SoundId = "http://roblox.com/asset/?ID="..id;
- music.Pitch = pitch;
- wait();
- music.Looped = loop;
- music:Play();
- end)
- end
- local hatlangs = {
- ["es"] = {Hat,{{"142392682",1},{"142356750",1}}},
- ["de"] = {GermanHat,{{"154196982",.5,true}}},
- ["it"] = {ItalianHat,{{"142789062",1,true}}},
- ["en"] = {AmericanHat,{{"157043431",1,false}}}
- }
- Langs = {
- ["Язык"] = "Код",
- ["Albanian"] = " sq",
- ["Arabian"] = " ar",
- ["Armenian"]= " hy",
- ["Azeri az"]= "",
- ["Belarusian"]= " be",
- ["Bosnian"]= " bs",
- ["Bulgarian"]= " bg",
- ["Catalan"]= " ca",
- ["Croatian"]= " hr",
- ["Czech cs"]= "",
- ["Chinese"]= " zh",
- ["Danish"]= " da",
- ["Dutch nl"]= "",
- ["English"]= " en",
- ["Estonian"]= " et",
- ["Finnish"]= " fi",
- ["French"]= " fr",
- ["Georgian"]= " ka",
- ["German"]= " de",
- ["Greek el"]= "",
- ["Hebrew"]= " he",
- ["Hungarian"]= " hu",
- ["Icelandic"]= " is",
- ["Indonesian"]= " id",
- ["Italian"]= " it",
- ["Japanese"]= " ja",
- ["Korean"]= " ko",
- ["Latvian"]= " lv",
- ["Lithuanian"]= " lt",
- ["Macedonian"]= " mk",
- ["Malay ms"]= "",
- ["Maltese"]= " mt",
- ["Norwegian"]= " no",
- ["Polish"]= " pl",
- ["Portuguese"]= " pt",
- ["Romanian"]= " ro",
- ["Russian"]= " ru",
- ["Spanish"]= " es",
- ["Serbian"]= " sr",
- ["Slovak"]= " sk",
- ["Slovenian"]= " sl",
- ["Swedish"]= " sv",
- ["Thai"]= " th",
- ["Turkish"]= " tr",
- ["Ukrainian"]= " uk",
- ["Vietnamese"]= " vi"
- }
- Specials =
- {
- [241] = "n",
- [237] = "i",
- [225] = "a",
- [233] = "e",
- [243] = "o",
- [250] = "u",
- [252] = "u",
- [161] = "i",
- [191] = "?"
- }
- for i,v in pairs(Langs) do
- v = v:gsub("%s","");
- end
- local ChatService = game:GetService("Chat");
- local HttpService = game:GetService("HttpService");
- function GetIndex(str)
- for i,v in pairs(Langs) do
- if str:lower():gsub("%s","")==v:lower():gsub("%s","") then
- return i;
- end
- end
- end
- function GetDetected(str)
- local str = [==[https://translate.yandex.net/api/v1.5/tr.json/detect?key=trnsl.1.1.20150819T034831Z.7cd305fb6c39804a.88c652a492a5066d0f4f08bf7f69b758aaf30cff&text=]==]..str;
- return GetIndex(HttpService:GetAsync(str):match([==[lang":"(.+)"]==]));
- end
- function GetDetectedRaw(str)
- local str = [==[https://translate.yandex.net/api/v1.5/tr.json/detect?key=trnsl.1.1.20150819T034831Z.7cd305fb6c39804a.88c652a492a5066d0f4f08bf7f69b758aaf30cff&text=]==]..str;
- return HttpService:GetAsync(str):match([==[lang":"(.+)"]==]);
- end
- local stats = {["from"] = "en",["to"] = "es",["chosen"] = "es"};
- function Give(player)
- local stats = {["from"] = "en",["to"] = "es",["chosen"] = "es"};
- player.Chatted:connect(function(msg) check(player,msg,stats) end)
- end
- function FindPlayer(plr) if not plr then return end
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1,3)==plr:lower():sub(1,3) then
- return v;
- end
- end
- end
- function check(Player,msg,stats)
- print'gothere'
- for i,v in pairs(Langs) do
- if v and v ~= "" then
- print(msg:lower():gsub("%s+",""),i:lower():gsub("%s+",""))
- if msg:lower():gsub("%s","")==i:lower() then
- to = v:gsub("%s+",""):gsub("%s","");
- print("to: ",to);
- stats.chosen = to;
- stats.to = to;
- if Player.Character:FindFirstChild("TranslatorHat") then
- Player.Character.TranslatorHat:Destroy();
- end
- local hatlangsfound = hatlangs[stats.chosen];
- if hatlangsfound then
- local hat,msc = unpack(hatlangsfound);
- hat = hat:clone();
- if Player.Character:FindFirstChild("Wool") then
- hat.AttachmentPos = hat.AttachmentPos+Vector3.new(0,-.2,0);
- elseif Player.Character:FindFirstChild("Beak") then
- hat.AttachmentPos = hat.AttachmentPos+Vector3.new(0,.3,0);
- if stats.chosen == "it" then
- hat.AttachmentPos = hat.AttachmentPos+Vector3.new(0,-0.1,-.1);
- hat.Handle.Mesh.Scale = hat.Handle.Mesh.Scale-Vector3.new(0,0,1);
- end
- end
- hat.Parent = Player.Character;
- music_array = msc;
- if music then music:Destroy() end
- music = musicoriginal:clone();
- music.Parent = player.Character.Head;
- playmusic(music);
- end
- print'here'
- ChatService:Chat(Player.Character.Head,i,"Red");
- return;
- end
- end
- end
- if Player.Name == user then
- local a,b = msg:match("(%w+)/(%w+)")
- if a and b then
- local foundplayer = FindPlayer(b);
- if a:lower() == "give" and foundplayer then
- Give(foundplayer);
- end
- if a:lower() == "det" and b then
- local res = GetDetected(b);
- if res then
- ChatService:Chat(Player.Character.Head,res,"Red")
- end
- return;
- end
- end
- end
- local url = [=[https://translate.yandex.net/api/v1.5/tr/translate?key=trnsl.1.1.20150819T034831Z.7cd305fb6c39804a.88c652a492a5066d0f4f08bf7f69b758aaf30cff&lang=#FROM#-#TO#&text=]=]
- url = url:gsub("#FROM#",stats.from);
- url = url:gsub("#TO#",stats.to);
- print(stats.from,stats.to)
- local res = HttpService:GetAsync(url..msg)
- res = res:match([=[<text>(.+)</text>]=]);
- print(res);
- if res == "s" and to == "es" then res = "si" end
- if res:find("s") and #res < 3 then
- res = "si";
- end
- ChatService:Chat(Player.Character.Head,res,"Red")
- end
- Give(player);
- local input = game.ReplicatedStorage:WaitForChild("input");
- input.Changed:connect(function()
- local val = input.Value;
- if val ~= "" then
- check(player,val,stats);
- end
- end)
- while test do wait(3)
- local burrito = ({Taco,Burrito})[math.random(1,2)]:clone();
- burrito.Parent = Workspace;
- burrito.CFrame = CFrame.new(math.random(-100,100),math.random(20,100),math.random(-100,100))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement