mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-18 03:21:54 +00:00
Server actions, keybinds TCP, and flashlight UDP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user