mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-15 22:11:54 +00:00
types and sound editor entity
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user