How to make a rng game in stuido lite

  Рет қаралды 329

Bacon Lite

Bacon Lite

Күн бұрын

Пікірлер: 16
@ProMeUgc
@ProMeUgc 12 күн бұрын
Thank you work❤❤❤❤❤❤
@RealBaconLite
@RealBaconLite 10 күн бұрын
You're welcome
@RealBaconLite
@RealBaconLite Ай бұрын
Credits for Ali dev for makeing it go sub to his channel
@neonbhai7218
@neonbhai7218 8 күн бұрын
Yeah this works but I can only my tag I cannot see others and other can’t see mine
@Alidev-e8q
@Alidev-e8q Ай бұрын
Bro this my
@RealBaconLite
@RealBaconLite Ай бұрын
I gave u credits
@kentrileyvelayo3652
@kentrileyvelayo3652 Ай бұрын
why am i here
@theresaconstantino4693
@theresaconstantino4693 Ай бұрын
Real
@RealBaconLite
@RealBaconLite Ай бұрын
@@kentrileyvelayo3652 wdym
@kentrileyvelayo3652
@kentrileyvelayo3652 Ай бұрын
@@theresaconstantino4693 real
@Alidev-e8q
@Alidev-e8q Ай бұрын
Why
@darielGomez-y3s
@darielGomez-y3s Ай бұрын
¿Script?
@RealBaconLite
@RealBaconLite Ай бұрын
ok wait
@RealBaconLite
@RealBaconLite Ай бұрын
local rarityFonts = { Common = Enum.Font.SourceSans, Uncommon = Enum.Font.SourceSansBold, -- Fixed the syntax Rare = Enum.Font.Gotham, Epic = Enum.Font.ArialBold, Legendary = Enum.Font.Fantasy, Mythical = Enum.Font.Bodoni, Exotic = Enum.Font.Antique, Divine = Enum.Font.Cartoon, UltraRare = Enum.Font.FredokaOne, SuperRare = Enum.Font.Highway, MegaRare = Enum.Font.Oswald, HyperRare = Enum.Font.LuckiestGuy, InsaneRare = Enum.Font.Creepster, CrazyRare = Enum.Font.AmaticSC, Unique = Enum.Font.Nunito, Special = Enum.Font.Roboto, Elite = Enum.Font.DenkOne, Supreme = Enum.Font.Garamond, Ultimate = Enum.Font.PermanentMarker, Masterpiece = Enum.Font.Garamond, } local rarityColors = { Common = Color3.fromRGB(255, 255, 255), Uncommon = Color3.fromRGB(0, 255, 0), Rare = Color3.fromRGB(0, 0, 255), Epic = Color3.fromRGB(255, 0, 255), -- Fixed the syntax Legendary = Color3.fromRGB(255, 215, 0), Mythical = Color3.fromRGB(128, 0, 128), -- Fixed the syntax Exotic = Color3.fromRGB(255, 165, 0), Divine = Color3.fromRGB(255, 255, 0), UltraRare = Color3.fromRGB(0, 128, 128), -- Fixed the syntax SuperRare = Color3.fromRGB(255, 69, 0), MegaRare = Color3.fromRGB(139, 0, 139), -- Fixed the syntax HyperRare = Color3.fromRGB(255, 140, 0), InsaneRare = Color3.fromRGB(75, 0, 130), CrazyRare = Color3.fromRGB(255, 20, 147), -- Fixed the syntax Unique = Color3.fromRGB(186, 85, 211), Special = Color3.fromRGB(148, 0, 211), Elite = Color3.fromRGB(30, 144, 255), -- Fixed the syntax Supreme = Color3.fromRGB(255, 99, 71), Ultimate = Color3.fromRGB(60, 179, 113), Masterpiece = Color3.fromRGB(255, 69, 0), } local rollButton = script.Parent -- Assuming the script is a child of the Roll button local skipButton local equipButton local isRolling = false local currentRarityGui = nil local rarityLabel = Instance.new("TextLabel") rarityLabel.BackgroundTransparency = 1 -- Fixed the property name rarityLabel.Size = UDim2.new(0, 200, 0, 50) rarityLabel.TextSize = 30 rarityLabel.Position = UDim2.new(0.5, -100, 0.5, -25) rarityLabel.AnchorPoint = Vector2.new(0.5, 0.5) rarityLabel.Parent = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui -- Fixed spacing local function playTransitionSound() -- Fixed the function name local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://9119713951" -- Fixed property name and removed comment sound.Volume = 0.5 sound.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") sound:Play() sound.Ended:Connect(function() sound:Destroy() end) end local rarities = { "Common", "Uncommon", "Rare", "Epic", "Legendary", "Mythical", "Exotic", "Divine", "UltraRare", "SuperRare", "MegaRare", "HyperRare", "InsaneRare", "CrazyRare", "Unique", "Special", "Elite", "Supreme", "Ultimate", "Masterpiece", } local function showRarity() if isRolling then return end isRolling = true rollButton.Text = "Rolling..." rollButton.Active = false for i = 1, 10 do -- Fixed the loop syntax local randomIndex = math.random(1, #rarities) local rarity = rarities[randomIndex] rarityLabel.Text = rarity rarityLabel.Font = rarityFonts[rarity] rarityLabel.TextStrokeTransparency = 0 -- Fixed property name rarityLabel.TextStrokeColor3 = Color3.new(0, 0, 0) rarityLabel.TextColor3 = rarityColors[rarity] playTransitionSound() -- Play the transition sound wait(0.3) -- Adjust the speed of transition as needed end skipButton = Instance.new("TextButton") skipButton.Parent = rarityLabel.Parent skipButton.Size = UDim2.new(0, 80, 0, 30) skipButton.Position = UDim2.new(0.5, -40, 0.6, 0) skipButton.AnchorPoint = Vector2.new(0.5, 0) skipButton.Text = "Skip" skipButton.BackgroundTransparency = 0.75 skipButton.BackgroundColor3 = Color3.new(0, 0, 0) skipButton.TextColor3 = Color3.new(1, 1, 1) skipButton.MouseButton1Click:Connect(function() -- Fixed event name rarityLabel.Text = "" if currentRarityGui then skipButton:Destroy() equipButton:Destroy() isRolling = false rollButton.Text = "Roll" rollButton.Active = true end end) equipButton = Instance.new("TextButton") equipButton.Parent = rarityLabel.Parent equipButton.Size = UDim2.new(0, 80, 0, 30) equipButton.Position = UDim2.new(0.5, 40, 0.6, 0) equipButton.AnchorPoint = Vector2.new(0.5, 0) equipButton.Text = "Equip" equipButton.BackgroundTransparency = 0.75 equipButton.BackgroundColor3 = Color3.new(0, 0, 0) equipButton.TextColor3 = Color3.new(1, 1, 1) equipButton.MouseButton1Click:Connect(function() -- Fixed event name print("Equip") isRolling = false if currentRarityGui then currentRarityGui:Destroy() end currentRarityGui = Instance.new("BillboardGui") currentRarityGui.Parent = game.Players.LocalPlayer.Character.Head currentRarityGui.Size = UDim2.new(0, 100, 0, 40) currentRarityGui.AlwaysOnTop = true currentRarityGui.StudsOffset = Vector3.new(0, 2, 0) -- Adjust the offset to move the Gui above the head local textLabel = Instance.new("TextLabel") textLabel.Parent = currentRarityGui textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.Text = rarityLabel.Text textLabel.Font = rarityFonts[rarityLabel.Text] textLabel.TextColor3 = rarityColors[rarityLabel.Text] -- Fixed property access textLabel.TextStrokeTransparency = 0 textLabel.TextStrokeColor3 = Color3.new(0, 0, 0) textLabel.TextSize = 20 skipButton:Destroy() equipButton:Destroy() rollButton.Text = "Roll" rollButton.Active = true end) end rollButton.MouseButton1Click:Connect(function() -- Fixed event name showRarity() end)
@Slap_battles-u6u
@Slap_battles-u6u 12 күн бұрын
0:41
@Slap_battles-u6u
@Slap_battles-u6u 12 күн бұрын
0:41
I Tried Redeeming A Decade Old Minecraft Gift Card
16:47
Cube Dimensions
Рет қаралды 205 М.
6 Teams Compete For 10k Robux [Game Jam]
14:27
Hyperion
Рет қаралды 7 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
how to make a Pet sim X game I Studio lite I 2024
2:11
Bacon Lite
Рет қаралды 18
I Made ROBLOX's Hardest Game.
16:06
Feodoric
Рет қаралды 307 М.
FULL 2.11 TRIGGER GUIDE! | Geometry Dash Coding Tutorial #1
19:18
How to make a door that can be opened and closed in Studio Lite
6:11
HOW TO GET GEMS QUICK? GUIDE 💎💎💎 | Guardian Tales
17:47
Pilgrammed - The Fists Only Experience (Part 1)
13:37
CoolTheFool
Рет қаралды 18 М.
How to make a soccer goal system I Studio lite I 2024
3:23
How to My Movie: Visual Effects
7:26
F1ameB01s
Рет қаралды 103 М.
How to make a Part where if clicked, a gui opens[STUDIO LITE]
3:58
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН