diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx index 0c24259..1fa6dc1 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx @@ -25,11 +25,9 @@ const slot: Hooks.FC = (props, hooks) => { const { world, clientState } = useWorldContext(hooks) const handleActivated = () => { - if (tool.Parent !== clientState.character) { - clientState.character.Humanoid.EquipTool(tool) - } else { - clientState.character.Humanoid.UnequipTools() - } + tool.Parent !== clientState.character + ? clientState.character.Humanoid.EquipTool(tool) + : clientState.character.Humanoid.UnequipTools() } // maybe opt this into our system for inputs? diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx index 71fdd37..150c969 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx @@ -1,7 +1,6 @@ import Roact from "@rbxts/roact" import Hooks from "@rbxts/roact-hooks" import Hotbar from "./hotbar/hotbar" -import { Players } from "@rbxts/services" interface mainProps extends Roact.JsxInstanceEvents { Event?: Roact.JsxInstanceEvents @@ -15,7 +14,7 @@ const main: Hooks.FC = (props, hooks) => { const spreadableProps = { ...props } as Partial return ( - +