add character to clientstate and add sprint system
This commit is contained in:
parent
d5b77a9044
commit
d83ddf4e53
3 changed files with 41 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
import { CharacterRigR6 } from "@rbxts/character-promise"
|
||||
import { Players } from "@rbxts/services"
|
||||
import { start } from "ReplicatedStorage/ecs"
|
||||
import { clientState } from "ReplicatedStorage/ecs/state"
|
||||
import { Host } from "ReplicatedStorage/hosts"
|
||||
|
@ -7,5 +9,8 @@ const HOST = Host.Client
|
|||
|
||||
const ClientState = new clientState()
|
||||
|
||||
const player = Players.LocalPlayer
|
||||
ClientState.character = (player.Character || player.CharacterAdded.Wait()[0]) as CharacterRigR6
|
||||
|
||||
setEnvironment(HOST)
|
||||
start(HOST, ClientState)
|
Loading…
Add table
Add a link
Reference in a new issue