--======================================== -- ST3R HUB -- HIGH SCHOOL LIFE RP -- FRANCAIS / ENGLISH --======================================== local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UIS = game:GetService("UserInputService") local Event = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("SetRPNameColor") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") --======================================== -- COULEURS --======================================== local colorList = { ["rose"] = Color3.fromRGB(255,105,180), ["pink"] = Color3.fromRGB(255,105,180), ["rose clair"] = Color3.fromRGB(255,182,193), ["light pink"] = Color3.fromRGB(255,182,193), ["rose fonce"] = Color3.fromRGB(199,21,133), ["dark pink"] = Color3.fromRGB(199,21,133), ["fuchsia"] = Color3.fromRGB(255,0,255), ["magenta"] = Color3.fromRGB(255,0,180), ["rouge"] = Color3.fromRGB(255,0,0), ["red"] = Color3.fromRGB(255,0,0), ["rouge clair"] = Color3.fromRGB(255,100,100), ["light red"] = Color3.fromRGB(255,100,100), ["rouge fonce"] = Color3.fromRGB(139,0,0), ["dark red"] = Color3.fromRGB(139,0,0), ["bordeaux"] = Color3.fromRGB(128,0,32), ["burgundy"] = Color3.fromRGB(128,0,32), ["corail"] = Color3.fromRGB(255,127,80), ["coral"] = Color3.fromRGB(255,127,80), ["orange"] = Color3.fromRGB(255,140,0), ["orange clair"] = Color3.fromRGB(255,190,100), ["light orange"] = Color3.fromRGB(255,190,100), ["peche"] = Color3.fromRGB(255,218,185), ["peach"] = Color3.fromRGB(255,218,185), ["jaune"] = Color3.fromRGB(255,230,0), ["yellow"] = Color3.fromRGB(255,230,0), ["jaune clair"] = Color3.fromRGB(255,255,150), ["light yellow"] = Color3.fromRGB(255,255,150), ["citron"] = Color3.fromRGB(220,255,0), ["lemon"] = Color3.fromRGB(220,255,0), ["or"] = Color3.fromRGB(255,215,0), ["gold"] = Color3.fromRGB(255,215,0), ["dore"] = Color3.fromRGB(212,175,55), ["golden"] = Color3.fromRGB(212,175,55), ["vert"] = Color3.fromRGB(0,200,80), ["green"] = Color3.fromRGB(0,200,80), ["vert clair"] = Color3.fromRGB(144,238,144), ["light green"] = Color3.fromRGB(144,238,144), ["vert fonce"] = Color3.fromRGB(0,100,0), ["dark green"] = Color3.fromRGB(0,100,0), ["emeraude"] = Color3.fromRGB(80,200,120), ["emerald"] = Color3.fromRGB(80,200,120), ["menthe"] = Color3.fromRGB(152,255,152), ["mint"] = Color3.fromRGB(152,255,152), ["olive"] = Color3.fromRGB(128,128,0), ["cyan"] = Color3.fromRGB(0,255,255), ["turquoise"] = Color3.fromRGB(64,224,208), ["bleu"] = Color3.fromRGB(0,100,255), ["blue"] = Color3.fromRGB(0,100,255), ["bleu clair"] = Color3.fromRGB(100,180,255), ["light blue"] = Color3.fromRGB(100,180,255), ["bleu ciel"] = Color3.fromRGB(135,206,250), ["sky blue"] = Color3.fromRGB(135,206,250), ["bleu fonce"] = Color3.fromRGB(0,0,139), ["dark blue"] = Color3.fromRGB(0,0,139), ["bleu nuit"] = Color3.fromRGB(25,25,112), ["midnight blue"] = Color3.fromRGB(25,25,112), ["marine"] = Color3.fromRGB(0,0,128), ["navy"] = Color3.fromRGB(0,0,128), ["violet"] = Color3.fromRGB(148,0,211), ["purple"] = Color3.fromRGB(148,0,211), ["violet clair"] = Color3.fromRGB(200,150,255), ["light purple"] = Color3.fromRGB(200,150,255), ["lilas"] = Color3.fromRGB(200,162,200), ["lilac"] = Color3.fromRGB(200,162,200), ["lavande"] = Color3.fromRGB(230,230,250), ["lavender"] = Color3.fromRGB(230,230,250), ["prune"] = Color3.fromRGB(112,28,78), ["plum"] = Color3.fromRGB(112,28,78), ["marron"] = Color3.fromRGB(139,69,19), ["brown"] = Color3.fromRGB(139,69,19), ["chocolat"] = Color3.fromRGB(123,63,0), ["chocolate"] = Color3.fromRGB(123,63,0), ["beige"] = Color3.fromRGB(245,245,220), ["creme"] = Color3.fromRGB(255,253,208), ["cream"] = Color3.fromRGB(255,253,208), ["sable"] = Color3.fromRGB(194,178,128), ["sand"] = Color3.fromRGB(194,178,128), ["blanc"] = Color3.fromRGB(255,255,255), ["white"] = Color3.fromRGB(255,255,255), ["noir"] = Color3.fromRGB(0,0,0), ["black"] = Color3.fromRGB(0,0,0), ["gris"] = Color3.fromRGB(128,128,128), ["gray"] = Color3.fromRGB(128,128,128), ["grey"] = Color3.fromRGB(128,128,128), ["gris clair"] = Color3.fromRGB(211,211,211), ["light gray"] = Color3.fromRGB(211,211,211), ["light grey"] = Color3.fromRGB(211,211,211), ["gris fonce"] = Color3.fromRGB(60,60,60), ["dark gray"] = Color3.fromRGB(60,60,60), ["dark grey"] = Color3.fromRGB(60,60,60), ["argent"] = Color3.fromRGB(192,192,192), ["silver"] = Color3.fromRGB(192,192,192), ["bronze"] = Color3.fromRGB(205,127,50), ["indigo"] = Color3.fromRGB(75,0,130) } --======================================== -- VARIABLES --======================================== local colors = { colorList["rose"], colorList["noir"] } local isRunning = false local isLocked = false local speed = 0.10 local colorIndex = 1 --======================================== -- GUI --======================================== local oldGui = playerGui:FindFirstChild("ST3R") if oldGui then oldGui:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "ST3R" gui.ResetOnSpawn = false gui.Parent = playerGui --======================================== -- BULLE RETRACTABLE --======================================== local bubble = Instance.new("TextButton") bubble.Name = "ST3RBubble" bubble.Size = UDim2.fromOffset(55,55) bubble.Position = UDim2.new(0,15,0.5,-27) bubble.BackgroundColor3 = Color3.fromRGB(190,55,135) bubble.Text = "ST3R" bubble.TextColor3 = Color3.new(1,1,1) bubble.TextSize = 15 bubble.Font = Enum.Font.GothamBold bubble.Visible = false bubble.Active = true bubble.Parent = gui Instance.new("UICorner",bubble).CornerRadius = UDim.new(1,0) local bubbleStroke = Instance.new("UIStroke") bubbleStroke.Color = Color3.fromRGB(255,100,200) bubbleStroke.Thickness = 2 bubbleStroke.Parent = bubble --======================================== -- FENETRE PRINCIPALE --======================================== local main = Instance.new("Frame") main.Size = UDim2.fromOffset(280,210) main.Position = UDim2.new(0.5,-140,0.5,-105) main.BackgroundColor3 = Color3.fromRGB(20,15,27) main.Active = true main.Parent = gui Instance.new("UICorner",main).CornerRadius = UDim.new(0,12) local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(255,70,180) stroke.Thickness = 2 stroke.Parent = main -- TITRE local title = Instance.new("TextLabel") title.Size = UDim2.new(1,-40,0,40) title.Position = UDim2.fromOffset(5,0) title.BackgroundTransparency = 1 title.Text = "ST3R HUB" title.TextColor3 = Color3.fromRGB(255,80,180) title.TextSize = 23 title.Font = Enum.Font.GothamBold title.Parent = main -- BOUTON RETRACTER local minimize = Instance.new("TextButton") minimize.Size = UDim2.fromOffset(30,30) minimize.Position = UDim2.new(1,-38,0,5) minimize.BackgroundColor3 = Color3.fromRGB(70,40,70) minimize.Text = "—" minimize.TextColor3 = Color3.new(1,1,1) minimize.TextSize = 20 minimize.Font = Enum.Font.GothamBold minimize.Parent = main Instance.new("UICorner",minimize).CornerRadius = UDim.new(0,8) minimize.MouseButton1Click:Connect(function() main.Visible = false bubble.Visible = true end) bubble.MouseButton1Click:Connect(function() bubble.Visible = false main.Visible = true end) --======================================== -- CHAMP DE COULEURS --======================================== local input = Instance.new("TextBox") input.Size = UDim2.new(1,-30,0,38) input.Position = UDim2.fromOffset(15,48) input.BackgroundColor3 = Color3.fromRGB(43,32,50) input.TextColor3 = Color3.new(1,1,1) input.PlaceholderText = "Ex: pink black light blue" input.Text = "rose noir" input.TextSize = 14 input.ClearTextOnFocus = false input.Font = Enum.Font.Gotham input.Parent = main Instance.new("UICorner",input).CornerRadius = UDim.new(0,7) --======================================== -- BOUTON APPLY --======================================== local apply = Instance.new("TextButton") apply.Size = UDim2.new(1,-30,0,32) apply.Position = UDim2.fromOffset(15,95) apply.BackgroundColor3 = Color3.fromRGB(190,55,135) apply.Text = "APPLY COLORS" apply.TextColor3 = Color3.new(1,1,1) apply.TextSize = 13 apply.Font = Enum.Font.GothamBold apply.Parent = main Instance.new("UICorner",apply).CornerRadius = UDim.new(0,7) --======================================== -- STATUT --======================================== local status = Instance.new("TextLabel") status.Size = UDim2.new(1,-20,0,20) status.Position = UDim2.fromOffset(10,132) status.BackgroundTransparency = 1 status.Text = "Colors available" status.TextColor3 = Color3.fromRGB(220,220,220) status.TextSize = 11 status.Parent = main --======================================== -- ON / OFF --======================================== local toggle = Instance.new("TextButton") toggle.Size = UDim2.fromOffset(115,30) toggle.Position = UDim2.fromOffset(15,165) toggle.BackgroundColor3 = Color3.fromRGB(70,40,70) toggle.Text = "ST3R : OFF" toggle.TextColor3 = Color3.new(1,1,1) toggle.Font = Enum.Font.GothamBold toggle.TextSize = 13 toggle.Parent = main Instance.new("UICorner",toggle).CornerRadius = UDim.new(0,7) --======================================== -- CADENAS --======================================== local lock = Instance.new("TextButton") lock.Size = UDim2.fromOffset(35,30) lock.Position = UDim2.fromOffset(230,165) lock.BackgroundColor3 = Color3.fromRGB(50,40,60) lock.Text = "🔓" lock.TextSize = 15 lock.Parent = main Instance.new("UICorner",lock).CornerRadius = UDim.new(0,7) --======================================== -- DEPLACEMENT DE L'INTERFACE --======================================== local function makeDraggable(object) local dragging = false local dragStart local startPos object.InputBegan:Connect(function(i) if isLocked then return end if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = i.Position startPos = object.Position end end) UIS.InputChanged:Connect(function(i) if dragging and not isLocked then if i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch then local delta = i.Position - dragStart object.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end end) UIS.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end) end makeDraggable(main) makeDraggable(bubble) --======================================== -- CADENAS --======================================== lock.MouseButton1Click:Connect(function() isLocked = not isLocked lock.Text = isLocked and "🔒" or "🔓" end) --======================================== -- LECTURE FRANCAIS / ANGLAIS --======================================== local names = {} for name in pairs(colorList) do table.insert(names,name) end table.sort(names,function(a,b) return #a > #b end) local function setColors() local text = string.lower(input.Text) text = text:gsub("%s+"," ") text = text:gsub("^%s+","") text = text:gsub("%s+$","") local newColors = {} while text ~= "" do local found = false for _,name in ipairs(names) do if text == name or text:sub(1,#name+1) == name.." " then table.insert(newColors,colorList[name]) text = text:sub(#name+1) text = text:gsub("^%s+","") found = true break end end if not found then status.Text = "Unknown color: "..text return end end if #newColors == 0 then status.Text = "Enter colors!" return end colors = newColors colorIndex = 1 status.Text = #colors.." colors applied!" end apply.MouseButton1Click:Connect(setColors) --======================================== -- ACTIVATION --======================================== toggle.MouseButton1Click:Connect(function() isRunning = not isRunning toggle.Text = isRunning and "ST3R : ON" or "ST3R : OFF" toggle.BackgroundColor3 = isRunning and Color3.fromRGB(190,55,135) or Color3.fromRGB(70,40,70) end) --======================================== -- ALTERNANCE DES COULEURS --======================================== task.spawn(function() while gui.Parent do if isRunning then Event:FireServer(colors[colorIndex]) colorIndex = (colorIndex % #colors) + 1 task.wait(speed) else task.wait(0.2) end end end) print("ST3R HUB FR / EN LOADED")