Skip to content

Commit

Permalink
feat: create CharacterController
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Dec 15, 2023
1 parent a462bc5 commit 2557269
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/client/controllers/character-controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Controller, OnInit } from "@flamework/core";
import { Player } from "shared/utilities/helpers";

@Controller()
export class CharacterController implements OnInit {
public onInit(): void {
const humanoid = Player.CharacterAdded.Wait()[0].FindFirstChildOfClass("Humanoid")!;
humanoid.WalkSpeed = 0;
humanoid.JumpHeight = 0;
}
}

0 comments on commit 2557269

Please sign in to comment.