types and sound editor entity

This commit is contained in:
2024-03-07 14:04:15 -05:00
parent 6000e80164
commit a6df78e64f
3 changed files with 37 additions and 29 deletions

View File

@@ -2,16 +2,17 @@
--!native
--!strict
type UDP = UnreliableRemoteEvent
type FlashlightUDP = RBXScriptConnection
type LocalPlayer = Player
type HumanoidRootPart = BasePart
type EulerXYZ_struct = {number}
local Flashlight = {}
Flashlight.__index = Flashlight
type UDP = UnreliableRemoteEvent
type FlashlightUDP = RBXScriptConnection
type LocalPlayer = Player
type HumanoidRootPart = BasePart
type EulerXYZ_struct = {number}
Flashlight.Enabled = false
Flashlight.HeadHeight = 1
@@ -45,7 +46,7 @@ local function FlashlightPart(HumanoidRootPart: HumanoidRootPart): (Part, SpotLi
ToggleSound.Name = "Flashlight"
ToggleSound.SoundId = "rbxassetid://16454678462"
ToggleSound.Volume = .5
ToggleSound.Parent = HumanoidRootPart
ToggleSound.Parent = FlashlightPart
FlashlightPart.Parent = HumanoidRootPart