Add GTA city builder + background injection API for Roblox Studio
- inject_gta_city.py: Full GTA-style city with 20 buildings, roads, cars, street lights, traffic lights, trees, 15 human enemies with varied skin/clothing, and 10 COD weapons with visible gun models - inject_bg.py: Background injection using SendMessage/PostMessage Win32 API - inject_bg2.py: PostMessage approach targeting main window for WPF apps - inject_cod_final.py: Working COD game injection (7-step sequential) - cod_inject.py: Combined COD game builder with proper Studio launch - roblox-fps-p1-p6: Split Lua scripts for multi-part injection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
28
roblox-fps-p4-hud.lua
Normal file
28
roblox-fps-p4-hud.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
-- HUD GUI + PLAYER SETUP (~2800 chars)
|
||||
local hud=Instance.new("ScreenGui",game.StarterGui)hud.Name="FPS_HUD"hud.ResetOnSpawn=false hud.ZIndexBehavior=Enum.ZIndexBehavior.Sibling
|
||||
local ch=Instance.new("Frame",hud)ch.Name="Crosshair"ch.Size=UDim2.new(0,20,0,2)ch.Position=UDim2.new(0.5,-10,0.5,-1)ch.BackgroundColor3=Color3.new(1,1,1)ch.BorderSizePixel=0
|
||||
local cv=Instance.new("Frame",hud)cv.Name="CrosshairV"cv.Size=UDim2.new(0,2,0,20)cv.Position=UDim2.new(0.5,-1,0.5,-10)cv.BackgroundColor3=Color3.new(1,1,1)cv.BorderSizePixel=0
|
||||
local hm=Instance.new("Frame",hud)hm.Name="HitMarker"hm.Size=UDim2.new(0,30,0,30)hm.Position=UDim2.new(0.5,-15,0.5,-15)hm.BackgroundTransparency=1 hm.Visible=false
|
||||
local h1=Instance.new("Frame",hm)h1.Size=UDim2.new(0,15,0,3)h1.Position=UDim2.new(0,15,0,0)h1.Rotation=45 h1.BackgroundColor3=Color3.new(1,1,1)h1.BorderSizePixel=0
|
||||
local h2=Instance.new("Frame",hm)h2.Size=UDim2.new(0,15,0,3)h2.Position=UDim2.new(0,0,0,15)h2.Rotation=45 h2.BackgroundColor3=Color3.new(1,1,1)h2.BorderSizePixel=0
|
||||
local hbf=Instance.new("Frame",hud)hbf.Name="HealthFrame"hbf.Size=UDim2.new(0,250,0,30)hbf.Position=UDim2.new(0,20,1,-60)hbf.BackgroundColor3=Color3.fromRGB(30,30,30)hbf.BorderSizePixel=0 hbf.BackgroundTransparency=0.3
|
||||
local hfl=Instance.new("Frame",hbf)hfl.Name="HealthFill"hfl.Size=UDim2.new(1,0,1,0)hfl.BackgroundColor3=Color3.fromRGB(0,200,0)hfl.BorderSizePixel=0
|
||||
local htx=Instance.new("TextLabel",hbf)htx.Name="HealthText"htx.Size=UDim2.new(1,0,1,0)htx.BackgroundTransparency=1 htx.TextColor3=Color3.new(1,1,1)htx.TextStrokeTransparency=0.5 htx.Font=Enum.Font.GothamBold htx.TextSize=16 htx.Text="100 HP"
|
||||
local af=Instance.new("Frame",hud)af.Name="AmmoFrame"af.Size=UDim2.new(0,200,0,60)af.Position=UDim2.new(1,-220,1,-80)af.BackgroundTransparency=1
|
||||
local at=Instance.new("TextLabel",af)at.Name="AmmoText"at.Size=UDim2.new(1,0,0.6,0)at.BackgroundTransparency=1 at.TextColor3=Color3.new(1,1,1)at.TextStrokeTransparency=0.5 at.Font=Enum.Font.GothamBold at.TextSize=28 at.TextXAlignment=Enum.TextXAlignment.Right at.Text="30 / 30"
|
||||
local wn=Instance.new("TextLabel",af)wn.Name="WeaponName"wn.Size=UDim2.new(1,0,0.4,0)wn.Position=UDim2.new(0,0.6,0)wn.BackgroundTransparency=1 wn.TextColor3=Color3.fromRGB(200,200,200)wn.TextStrokeTransparency=0.7 wn.Font=Enum.Font.Gotham wn.TextSize=14 wn.TextXAlignment=Enum.TextXAlignment.Right wn.Text="M4A1 Carbine"
|
||||
local rb=Instance.new("Frame",hud)rb.Name="ReloadBar"rb.Size=UDim2.new(0,200,0,6)rb.Position=UDim2.new(0.5,-100,1,-120)rb.BackgroundColor3=Color3.fromRGB(60,60,60)rb.BorderSizePixel=0 rb.Visible=false rb.BackgroundTransparency=0.3
|
||||
local rf=Instance.new("Frame",rb)rf.Name="Fill"rf.Size=UDim2.new(0,0,1,0)rf.BackgroundColor3=Color3.fromRGB(255,200,0)rf.BorderSizePixel=0
|
||||
local rt=Instance.new("TextLabel",hud)rt.Name="ReloadText"rt.Size=UDim2.new(0,200,0,20)rt.Position=UDim2.new(0.5,-100,1,-140)rt.BackgroundTransparency=1 rt.TextColor3=Color3.fromRGB(255,200,0)rt.Font=Enum.Font.GothamBold rt.TextSize=14 rt.Text="RELOADING..."rt.Visible=false
|
||||
local kf=Instance.new("Frame",hud)kf.Name="KillFeed"kf.Size=UDim2.new(0,250,0,200)kf.Position=UDim2.new(1,-260,0,10)kf.BackgroundTransparency=1
|
||||
Instance.new("UIListLayout",kf)
|
||||
local sf=Instance.new("Frame",hud)sf.Name="ScoreFrame"sf.Size=UDim2.new(0,200,0,40)sf.Position=UDim2.new(0.5,-100,0,10)sf.BackgroundColor3=Color3.fromRGB(20,20,20)sf.BackgroundTransparency=0.5 sf.BorderSizePixel=0
|
||||
local st=Instance.new("TextLabel",sf)st.Name="ScoreText"st.Size=UDim2.new(1,0,1,0)st.BackgroundTransparency=1 st.TextColor3=Color3.new(1,1,1)st.Font=Enum.Font.GothamBold st.TextSize=20 st.Text="KILLS: 0"
|
||||
local sb=Instance.new("TextLabel",hud)sb.Name="StreakBanner"sb.Size=UDim2.new(0,400,0,60)sb.Position=UDim2.new(0.5,-200,0.3,0)sb.BackgroundTransparency=1 sb.TextColor3=Color3.fromRGB(255,50,50)sb.Font=Enum.Font.GothamBold sb.TextSize=36 sb.TextStrokeTransparency=0.3 sb.Text=""sb.Visible=false
|
||||
local vi=Instance.new("ImageLabel",hud)vi.Name="DamageVignette"vi.Size=UDim2.new(1,0,1,0)vi.BackgroundTransparency=1 vi.ImageTransparency=1 vi.Image="rbxassetid://1489679531"vi.ImageColor3=Color3.new(1,0,0)
|
||||
local mm=Instance.new("Frame",hud)mm.Name="Minimap"mm.Size=UDim2.new(0,150,0,150)mm.Position=UDim2.new(0,10,0,10)mm.BackgroundColor3=Color3.fromRGB(20,20,30)mm.BorderSizePixel=2 mm.BorderColor3=Color3.fromRGB(100,100,100)
|
||||
local md=Instance.new("Frame",mm)md.Name="PlayerDot"md.Size=UDim2.new(0,6,0,6)md.Position=UDim2.new(0.5,-3,0.5,-3)md.BackgroundColor3=Color3.fromRGB(0,150,255)md.BorderSizePixel=0 md.Shape=Enum.UIRectShape.Circle
|
||||
local wl=Instance.new("Frame",hud)wl.Name="WeaponList"wl.Size=UDim2.new(0,500,0,25)wl.Position=UDim2.new(0.5,-250,1,-25)wl.BackgroundColor3=Color3.fromRGB(15,15,15)wl.BackgroundTransparency=0.5 wl.BorderSizePixel=0
|
||||
local cats={{"[1-6] AR",Color3.fromRGB(100,150,255)},{"[7-0] SMG",Color3.fromRGB(100,255,100)},{"[QET] SNIPER",Color3.fromRGB(255,100,100)},{"[ZX] SHOTGUN",Color3.fromRGB(255,200,50)},{"[CV] LMG",Color3.fromRGB(200,100,255)},{"[BNG] PISTOL/RPG",Color3.fromRGB(255,150,100)}}
|
||||
for i,c in ipairs(cats)do local l=Instance.new("TextLabel",wl)l.Size=UDim2.new(1/#cats,0,1,0)l.Position=UDim2.new((i-1)/#cats,0,0,0)l.BackgroundColor3=c[2]l.BackgroundTransparency=0.7 l.TextColor3=Color3.new(1,1,1)l.Font=Enum.Font.GothamBold l.TextSize=10 l.Text=c[1]end
|
||||
print("HUD DONE")
|
||||
Reference in New Issue
Block a user