Server actions, keybinds TCP, and flashlight UDP

This commit is contained in:
2024-02-26 23:30:26 -05:00
parent 5a4ac9ca03
commit 4d69e259da
6 changed files with 124 additions and 60 deletions

View File

@@ -11,6 +11,7 @@ Spine.__index = Spine
type Head = BasePart
type UpperTorso = BasePart
type Neck = Motor6D
type Waist = Motor6D
type NeckC0 = CFrame
type WaistC0 = CFrame
@@ -20,6 +21,7 @@ type struct_Spine = {
Head: Head,
UpperTorso: UpperTorso,
Neck: Neck,
Waist: Waist,
NeckC0: NeckC0,
WaistC0: WaistC0
}
@@ -32,9 +34,9 @@ function Spine.constructor(Head: Head, UpperTorso: UpperTorso)
local self = {} :: struct_Spine
self.Head = Head
self.UpperTorso = UpperTorso
self.Neck = Head:WaitForChild("Neck")
self.Waist = UpperTorso:WaitForChild("Waist")
self.Remote = Remote
self.Neck = Head:WaitForChild("Neck") :: Neck
self.Waist = UpperTorso:WaitForChild("Waist") :: Waist
self.Remote = Remote :: UnreliableRemoteEvent
self.NeckC0 = self.Neck.C0
self.WaistC0 = self.Waist.C0