anti exploit remotes and skybox script

This commit is contained in:
2024-03-03 19:46:46 -05:00
parent 1af1c6919e
commit 6000e80164
5 changed files with 49 additions and 16 deletions

View File

@@ -2,10 +2,14 @@
--!native
--!strict
local Lighting = game:GetService("Lighting")
type LightingProps = { [string]: Color3 | number | boolean | string }
export type Effects = {
ColorCorrection: ColorCorrectionEffect
}
local Lighting = game:GetService("Lighting")
local Lighting_PropsTree: LightingProps = {
["Ambient"] = Color3.fromRGB(40,40,40),
["Brightness"] = 1,
@@ -25,13 +29,33 @@ local Lighting_PropsTree: LightingProps = {
["FogStart"] = 100000,
}
export type Effects = {
ColorCorrection: ColorCorrectionEffect
}
local function Skybox(): (Sky, Atmosphere)
local SkyBox = Instance.new("Sky") :: Sky
SkyBox.SkyboxBk = "rbxassetid://48020371"
SkyBox.SkyboxDn = "rbxassetid://48020144"
SkyBox.SkyboxFt = "rbxassetid://48020234"
SkyBox.SkyboxLf = "rbxassetid://48020211"
SkyBox.SkyboxRt = "rbxassetid://48020254"
SkyBox.SkyboxUp = "rbxassetid://48020383"
SkyBox.MoonTextureId = ""
SkyBox.StarCount = 500
local Atmosphere = Instance.new("Atmosphere") :: Atmosphere
Atmosphere.Density = .429
Atmosphere.Offset = 0
Atmosphere.Color = Color3.new(0,0,0)
Atmosphere.Decay = Color3.new(0,0,0)
Atmosphere.Glare = .1
Atmosphere.Haze = 1.5
return SkyBox, Atmosphere
end
return function(): Effects
Lighting:ClearAllChildren()
--VFX Effects for later
local ColorCorrection = Instance.new("ColorCorrectionEffect")
local ColorCorrection = Instance.new("ColorCorrectionEffect") :: ColorCorrectionEffect
ColorCorrection.Parent = Lighting
for Light_Prop, Light_Value in Lighting_PropsTree do
@@ -43,6 +67,10 @@ return function(): Effects
end
end
local Sky, Atmosphere = Skybox()
Sky.Parent = Lighting
Atmosphere.Parent = Lighting
return {
ColorCorrection = ColorCorrection
}

View File

@@ -23,7 +23,7 @@ local EditorEntities = Instance.new("BindableFunction")
EditorEntities.Name = "StudioIndexedEntities"
EditorEntities.Parent = ServerStorage
local StudioEntities = HideEditorEntities.indexAll(not RS:IsStudio())
local StudioEntities = HideEditorEntities.indexAll(not false)
StarterPlayer_Stuff()
Lighting_Stuff()