The Ctrl + V Game

  • Thread starter Thread starter smileyhead
  • Start date Start date
  • Views Views 573,812
  • Replies Replies 9,272
  • Likes Likes 15
1670317733513.png
 
local models = {"Model1", "Model2", "Model3", "Model4", "Model5"}

while true do local randomModel = models[math.random(#models)] local model = game.Workspace:FindFirstChild(randomModel) if model then model:Clone().Parent = game.Workspace end wait(1) end
 
local wienerDog = Instance.new("Model") wienerDog.Name = "Wiener Dog"

local body = Instance.new("Part") body.Name = "Body" body.Size = Vector3.new(1, 1, 2) body.Position = Vector3.new(0, 0, 0) body.Parent = wienerDog

local head = Instance.new("Part") head.Name = "Head" head.Size = Vector3.new(1, 1, 1) head.Position = Vector3.new(0, 1, 0) head.Parent = wienerDog

local tail = Instance.new("Part") tail.Name = "Tail" tail.Size = Vector3.new(0.5, 0.5, 0.5) tail.Position = Vector3.new(0, -1, 0) tail.Parent = wienerDog

local leftFrontLeg = Instance.new("Part") leftFrontLeg.Name = "Left Front Leg" leftFrontLeg.Size = Vector3.new(0.5, 1, 0.5) leftFrontLeg.Position = Vector3.new(-0.5, -0.5, 1) leftFrontLeg.Parent = wienerDog

local rightFrontLeg = Instance.new("Part") rightFrontLeg.Name = "Right Front Leg" rightFrontLeg.Size = Vector3.new(0.5, 1, 0.5) rightFrontLeg.Position = Vector3.new(0.5, -0.5, 1) rightFrontLeg.Parent = wienerDog

local leftBackLeg = Instance.new("Part") leftBackLeg.Name = "Left Back Leg" leftBackLeg.Size = Vector3.new(0.5, 1, 0.5) leftBackLeg.Position = Vector3.new(-0.5, -0.5, -1) leftBackLeg.Parent = wienerDog

local rightBackLeg = Instance.new("Part") rightBackLeg.Name = "Right Back Leg" rightBackLeg.Size = Vector3.new(0.5, 1, 0.5) rightBackLeg.Position = Vector3.new(0.5, -0.5, -1) rightBackLeg.Parent = wienerDog
 
C++:
    // For all songlines to index, process with comparisons and find duplicates
    while (indexToSongline < songlineCount)
    {
        int bytesCount = g_PokeyStream.GetFramesPerSongline(indexToSongline) * frameSize;

        int index1 = g_PokeyStream.GetOffsetPerSongline(indexToSongline);
        unsigned char* buff1 = g_PokeyStream.GetStreamBuffer() + (index1 * frameSize);

        // If there is no index already, assume the Index1 to be the first occurence
        if (listOfMatches[indexToSongline] == -1)
            listOfMatches[indexToSongline] = index1;

        // Compare all indexes available and overwrite matching songline streams with index1's offset
        for (int i = 0; i < songlineCount; i++)
        {
            // If the bytes count between 2 songlines isn't matching, don't even bother trying
            if (bytesCount != g_PokeyStream.GetFramesPerSongline(i) * frameSize)
                continue;

            int index2 = g_PokeyStream.GetOffsetPerSongline(i);
            unsigned char* buff2 = g_PokeyStream.GetStreamBuffer() + (index2 * frameSize);

            // If there is a match, the second index will adopt the offset of the first index
            if (!memcmp(buff1, buff2, bytesCount))
                listOfMatches[i] = index1;
        }

        // Process to the next songline index until they are all processed
        indexToSongline++;
    }
 

Site & Scene News

Popular threads in this forum