This commit is contained in:
2024-04-08 18:17:29 -04:00
parent 42db037fc5
commit 53e383cbb1
2 changed files with 13 additions and 5 deletions

View File

@@ -95,6 +95,7 @@ function StudioEntities.indexAll(enabled: boolean)
end end
elseif Item:IsA("LuaSourceContainer") then --Cant allow scripts outside of the framework elseif Item:IsA("LuaSourceContainer") then --Cant allow scripts outside of the framework
--mini algIsAorthim to see if the script is part of the rhpid-framework character or not --mini algIsAorthim to see if the script is part of the rhpid-framework character or not
--[[
local Model = Item:FindFirstAncestorOfClass("Model") local Model = Item:FindFirstAncestorOfClass("Model")
if Model and not Players:GetPlayerFromCharacter(Model) then if Model and not Players:GetPlayerFromCharacter(Model) then
@@ -104,6 +105,7 @@ function StudioEntities.indexAll(enabled: boolean)
Item:Destroy() Item:Destroy()
warn(`Script: "{Item.Name}" ({Item.ClassName}) was removed because it was outside of the rhpid-framework boundries,`, Item:GetFullName()) warn(`Script: "{Item.Name}" ({Item.ClassName}) was removed because it was outside of the rhpid-framework boundries,`, Item:GetFullName())
end end
]]
end end
if table.find(CS:GetTags(Item), "ServerGuard_Physics") then if table.find(CS:GetTags(Item), "ServerGuard_Physics") then

View File

@@ -9,7 +9,7 @@ export type Effects = {
} }
local Lighting = game:GetService("Lighting") local Lighting = game:GetService("Lighting")
local mat_fullbright = game:GetService("RunService"):IsStudio() local mat_fullbright = false
local Lighting_PropsTree: LightingProps = { local Lighting_PropsTree: LightingProps = {
["Ambient"] = mat_fullbright and Color3.new(1,1,1) or Color3.fromRGB(40,40,40), ["Ambient"] = mat_fullbright and Color3.new(1,1,1) or Color3.fromRGB(40,40,40),
@@ -30,7 +30,7 @@ local Lighting_PropsTree: LightingProps = {
["FogStart"] = 10_0000, ["FogStart"] = 10_0000,
} }
local function Skybox(): (Sky, Atmosphere) local function Skybox(): (Sky, Atmosphere, BloomEffect)
local SkyBox = Instance.new("Sky") :: Sky local SkyBox = Instance.new("Sky") :: Sky
SkyBox.SkyboxBk = "rbxassetid://48020371" SkyBox.SkyboxBk = "rbxassetid://48020371"
SkyBox.SkyboxDn = "rbxassetid://48020144" SkyBox.SkyboxDn = "rbxassetid://48020144"
@@ -40,7 +40,7 @@ local function Skybox(): (Sky, Atmosphere)
SkyBox.SkyboxUp = "rbxassetid://48020383" SkyBox.SkyboxUp = "rbxassetid://48020383"
SkyBox.MoonTextureId = "" SkyBox.MoonTextureId = ""
SkyBox.StarCount = 500 SkyBox.StarCount = 500
local Atmosphere = Instance.new("Atmosphere") :: Atmosphere local Atmosphere = Instance.new("Atmosphere") :: Atmosphere
Atmosphere.Density = .429 Atmosphere.Density = .429
Atmosphere.Offset = 0 Atmosphere.Offset = 0
@@ -49,7 +49,12 @@ local function Skybox(): (Sky, Atmosphere)
Atmosphere.Glare = .1 Atmosphere.Glare = .1
Atmosphere.Haze = 1.5 Atmosphere.Haze = 1.5
return SkyBox, Atmosphere local Bloom = Instance.new("BloomEffect") :: BloomEffect
Bloom.Intensity = .75
Bloom.Size = 35
Bloom.Threshold = 1.5
return SkyBox, Atmosphere, Bloom
end end
return function(): Effects return function(): Effects
@@ -68,9 +73,10 @@ return function(): Effects
end end
end end
local Sky, Atmosphere = Skybox() local Sky, Atmosphere, Bloom = Skybox()
Sky.Parent = Lighting Sky.Parent = Lighting
Atmosphere.Parent = Lighting Atmosphere.Parent = Lighting
Bloom.Parent = Lighting
return { return {
ColorCorrection = ColorCorrection ColorCorrection = ColorCorrection