local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local character = localPlayer.Character or localPlayer.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local animator = humanoid:WaitForChild("Animator") local samuelStyleEnabled = false local samuelIdleAnim = animator:LoadAnimation(game.AssetService:GetAsset("rbxassetid://SAMUEL_IDLE")) local samuelLightAttackAnim = animator:LoadAnimation(game.AssetService:GetAsset("rbxassetid://SAMUEL_LIGHT")) local currentAttackCombo = {} local comboTimer = nil local comboWindow = 0.5 -- Time to input the next attack in a combo local function switchToSamuelStyle() samuelStyleEnabled = true samuelIdleAnim:Play(0.1) print("Samuel Style Enabled!") -- Potentially change movement speed, etc. end local function switchToDefaultStyle() samuelStyleEnabled = false print("Default Style Enabled!") -- Revert movement speed, etc. end UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then if input.KeyCode == Enum.KeyCode.Z then -- Example key for switching if samuelStyleEnabled then switchToDefaultStyle() else switchToSamuelStyle() end elseif samuelStyleEnabled then if input.UserInputType == Enum.UserInputType.MouseButton1 then -- Left click for light attack playSamuelLightAttack() end end end end) local function playSamuelLightAttack() if not humanoid:GetPlayingAnimation() then -- Check if not already animating samuelLightAttackAnim:Play() -- Send a RemoteEvent to the server to handle hit detection and damage ReplicatedStorage:WaitForChild("SamuelLightAttackEvent"):FireServer() end end