local ps = game:GetService("Players") local rs = game:GetService("RunService") local ds = game:GetService("Debris") local uis = game:GetService("UserInputService") local cp = game:GetService("ContentProvider") local ts = game:GetService("TweenService") local lp = ps.LocalPlayer local mouse = lp:GetMouse() local camera = workspace.CurrentCamera local ins = Instance.new local c3 = Color3.fromRGB local ud2 = UDim2.new local v2 = Vector2.new local v3 = Vector3.new if getgenv().forsakenthingyguys then return end getgenv().forsakenthingyguys = true local P_ID = "rbxassetid://846744780" local B_ID = "rbxassetid://78119527629027" local I_ID = "rbxassetid://103310618653624" local W_ID = "rbxassetid://99289114678263" local R_ID = "rbxassetid://76047511800633" local SL_ID = "rbxassetid://127436401745505" local E1_ID = "rbxassetid://76389296606994" local C_ID = "rbxassetid://126452924444711" local H_ID = "rbxassetid://74100161379681" local BU_ID = "rbxassetid://88570432473654" local MM_ID = "rbxassetid://79481824762169" local S3_ID = "rbxassetid://111993447655346" local CD_ID = "rbxassetid://102908521825429" local UN_ID = "rbxassetid://87033513223989" local DP_ID = "rbxassetid://129385001500617" local FACE_IDLE_ID = "rbxassetid://85031905464128" local FACE_EMOTE_ID = "rbxassetid://110732234823197" local ids = {P_ID, B_ID, I_ID, W_ID, R_ID, E1_ID, C_ID, H_ID, BU_ID, MM_ID, S3_ID, CD_ID, UN_ID, DP_ID, FACE_IDLE_ID, FACE_EMOTE_ID} -- ==================================================================== -- System footsteps (LOOPING WITH EXACT SPEED MAPPING) -- ==================================================================== local footstepId = "rbxassetid://9083849830" local footstepSound = nil local connectionMove = nil local connectionSpeed = nil -- KONFIGURASI KECEPATAN local MIN_WALKSPEED = 6.6 local MAX_WALKSPEED = 25 -- KONFIGURASI AUDIO local MIN_PLAYBACK = 0.785 local MAX_PLAYBACK = 0.767 local function setupFootsteps(char) if not char then return end local hrp = char:WaitForChild("HumanoidRootPart", 10) local hum = char:WaitForChild("Humanoid", 10) if not hrp or not hum then return end if connectionMove then connectionMove:Disconnect() end if connectionSpeed then connectionSpeed:Disconnect() end if footstepSound then footstepSound:Destroy() end footstepSound = Instance.new("Sound") footstepSound.Name = "CustomFootstepSound" footstepSound.SoundId = footstepId footstepSound.Volume = 2.6 footstepSound.Looped = true footstepSound.Parent = hrp local function updatePlaybackSpeed() local currentSpeed = hum.WalkSpeed local t = (currentSpeed - MIN_WALKSPEED) / (MAX_WALKSPEED - MIN_WALKSPEED) local targetPlayback = MIN_PLAYBACK + (MAX_PLAYBACK - MIN_PLAYBACK) * math.clamp(t, 0, 1) footstepSound.PlaybackSpeed = targetPlayback end connectionSpeed = hum:GetPropertyChangedSignal("WalkSpeed"):Connect(updatePlaybackSpeed) connectionMove = hum:GetPropertyChangedSignal("MoveDirection"):Connect(function() if hum.MoveDirection.Magnitude > 0 and hum.FloorMaterial ~= Enum.Material.Air then updatePlaybackSpeed() if not footstepSound.IsPlaying then footstepSound:Play() end else if footstepSound.IsPlaying then footstepSound:Stop() end end end) hum.StateChanged:Connect(function(_, newState) if newState == Enum.HumanoidStateType.Jumping or newState == Enum.HumanoidStateType.Freefall then if footstepSound.IsPlaying then footstepSound:Stop() end end end) end if lp.Character then task.spawn(setupFootsteps, lp.Character) end lp.CharacterAdded:Connect(function(newChar) task.spawn(setupFootsteps, newChar) end) -- ==================================================================== local active = true local isSL = false local ca, st, ir, isConga = nil, {}, false, false local headTrackRef = nil local faceTrackRef = nil local loadGui = ins("ScreenGui") loadGui.Name = "LoadingSystem" loadGui.DisplayOrder = 10 loadGui.Parent = lp:WaitForChild("PlayerGui") local loadBg = ins("Frame") loadBg.Size = ud2(0, 200, 0, 70) loadBg.Position = ud2(0.5, 0, 0.5, 0) loadBg.AnchorPoint = v2(0.5, 0.5) loadBg.BackgroundColor3 = c3(15, 15, 15) loadBg.BorderSizePixel = 0 loadBg.Parent = loadGui local loadLabel = ins("TextLabel") loadLabel.Size = ud2(1, 0, 0, 30) loadLabel.Position = ud2(0, 0, 0, 5) loadLabel.BackgroundTransparency = 1 loadLabel.Text = "LOADING..." loadLabel.TextColor3 = c3(255, 255, 255) loadLabel.Font = Enum.Font.SourceSansBold loadLabel.TextSize = 14 loadLabel.Parent = loadBg local barBack = ins("Frame") barBack.Size = ud2(0.8, 0, 0, 4) barBack.Position = ud2(0.5, 0, 0, 45) barBack.AnchorPoint = v2(0.5, 0.5) barBack.BackgroundColor3 = c3(40, 40, 40) barBack.BorderSizePixel = 0 barBack.Parent = loadBg local barFill = ins("Frame") barFill.Size = ud2(0, 0, 1, 0) barFill.BackgroundColor3 = c3(0, 200, 255) barFill.BorderSizePixel = 0 barFill.Parent = barBack local animObjects = {} for _, id in ipairs(ids) do local a = ins("Animation") a.AnimationId = id table.insert(animObjects, a) end for i, animObj in ipairs(animObjects) do pcall(function() cp:PreloadAsync({animObj}) end) local progress = i / #animObjects barFill:TweenSize(ud2(progress, 0, 1, 0), "Out", "Quad", 0.1, true) loadLabel.Text = "LOADING: " .. math.floor(progress * 100) .. "%" end task.wait(0.2) loadGui:Destroy() local sg = ins("ScreenGui") sg.Name = "ActionGui" sg.ResetOnSpawn = false sg.Parent = lp:WaitForChild("PlayerGui") local function hint(p, t) local h = ins("TextLabel") h.Size = ud2(1, 0, 0, 20) h.Position = ud2(0, 0, 0, -25) h.BackgroundTransparency = 1 h.Text = "[" .. t .. "]" h.TextColor3 = c3(255, 255, 255) h.TextStrokeTransparency = 0.5 h.Font = Enum.Font.SourceSansBold h.TextSize = 20 h.Parent = p end local function btn(n, id, p, s, t) local b = ins("ImageButton") b.Name = n b.Size = s b.Position = p b.Image = (typeof(id) == "string" and id:find("rbxassetid") and id) or "rbxassetid://" .. tostring(id) b.BackgroundTransparency = 1 b.ImageColor3 = c3(255, 255, 255) b.Parent = sg if t then hint(b, t) end return b end local sS = ud2(0, 150, 0, 150) local kS = ud2(0, 75, 0, 75) local rb = btn("Run", 89719285639088, ud2(1, -30, 1, -60), sS, "SHIFT") rb.AnchorPoint = v2(1, 1) local slb = btn("ShiftLock", SL_ID, ud2(1, -190, 1, -20), kS, "CTRL") slb.AnchorPoint = v2(1, 1) local pb = btn("Punch", 97183429269286, ud2(1, -30, 1, -185), kS, "E") pb.AnchorPoint = v2(1, 1) local bb = btn("Block", 86530225037587, ud2(1, -115, 1, -185), kS, "Q") bb.AnchorPoint = v2(1, 1) local eb = ins("TextButton") eb.Name = "EmoteToggle" eb.Size = kS eb.Position = ud2(0, 30, 1, -185) eb.AnchorPoint = v2(0, 1) eb.BackgroundColor3 = c3(30, 30, 30) eb.Text = "EMOTE" eb.TextColor3 = c3(255, 255, 255) eb.Font = Enum.Font.SourceSansBold eb.TextSize = 18 eb.Parent = sg local ef = ins("Frame") ef.Name = "EmoteMenu" ef.Size = ud2(0, 200, 0, 250) ef.Position = ud2(0.5, 0, 0.5, 0) ef.AnchorPoint = v2(0.5, 0.5) ef.BackgroundColor3 = c3(15, 15, 15) ef.BorderSizePixel = 0 ef.Visible = false ef.Parent = sg local sf = ins("ScrollingFrame") sf.Size = ud2(1, -10, 1, -10) sf.Position = ud2(0, 5, 0, 5) sf.BackgroundTransparency = 1 sf.CanvasSize = ud2(0, 0, 0, 0) sf.AutomaticCanvasSize = Enum.AutomaticSize.Y sf.ScrollBarThickness = 4 sf.Parent = ef local stopE = ins("TextButton") stopE.Name = "StopEmote" stopE.Size = ud2(0, 120, 0, 40) stopE.Position = ud2(0.5, 0, 0.8, 0) stopE.AnchorPoint = v2(0.5, 0.5) stopE.BackgroundColor3 = c3(150, 0, 0) stopE.Text = "STOP EMOTE" stopE.TextColor3 = c3(255, 255, 255) stopE.Font = Enum.Font.SourceSansBold stopE.TextSize = 18 stopE.Visible = false stopE.Parent = sg local uiList = ins("UIListLayout") uiList.Padding = UDim.new(0, 5) uiList.Parent = sf local xb = ins("ImageButton") xb.Size = ud2(0, 40, 0, 40) xb.Position = ud2(0.5, 0, 0, 20) xb.AnchorPoint = v2(0.5, 0) xb.Image = "http://www.roblox.com/asset/?id=16201262" xb.BackgroundTransparency = 1 xb.Parent = sg local cf = ins("Frame") cf.Size = ud2(0, 300, 0, 150) cf.Position = ud2(0.5, -150, 0.5, -75) cf.BackgroundColor3 = c3(15, 15, 15) cf.BorderSizePixel = 0 cf.Visible = false cf.Parent = sg local cl = ins("TextLabel") cl.Size = ud2(1, -20, 0, 60) cl.Position = ud2(0, 10, 0, 10) cl.BackgroundTransparency = 1 cl.Text = "KiKi ?..." cl.TextColor3 = c3(255, 255, 255) cl.TextWrapped = true cl.Font = Enum.Font.SourceSans cl.TextSize = 18 cl.Parent = cf local function sub(n, t, p, clr) local b = ins("TextButton") b.Name = n b.Size = ud2(0, 100, 0, 40) b.Position = p b.BackgroundColor3 = clr b.Text = t b.TextColor3 = c3(255, 255, 255) b.Font = Enum.Font.SourceSansBold b.TextSize = 18 b.Parent = cf return b end local bn = sub("No", "No", ud2(0, 40, 0, 85), c3(60, 60, 60)) local by = sub("Yes", "Yes", ud2(0, 160, 0, 85), c3(150, 0, 0)) local function stop_s(a) for _, t in ipairs(a:GetPlayingAnimationTracks()) do if t ~= headTrackRef and t ~= ca and t ~= faceTrackRef then t:Stop(0.25) end end end local function stop_a() if ca then ca:Stop(0.25) ca = nil end end local function load(a, id) local anim = ins("Animation") anim.AnimationId = id return a:LoadAnimation(anim) end local function updateFaceAnimation(isEmoting, a) if not a then return end if isEmoting then if faceTrackRef and faceTrackRef.Animation.AnimationId == FACE_IDLE_ID then faceTrackRef:AdjustWeight(0) faceTrackRef = nil end if not faceTrackRef or faceTrackRef.Animation.AnimationId ~= FACE_EMOTE_ID then local faceAnim = ins("Animation") faceAnim.AnimationId = FACE_EMOTE_ID faceTrackRef = a:LoadAnimation(faceAnim) faceTrackRef.Priority = Enum.AnimationPriority.Action4 faceTrackRef.Looped = true faceTrackRef:Play(0.25) end else if faceTrackRef and faceTrackRef.Animation.AnimationId == FACE_EMOTE_ID then faceTrackRef:AdjustWeight(0) faceTrackRef = nil end if not faceTrackRef or faceTrackRef.Animation.AnimationId ~= FACE_IDLE_ID then local faceAnim = ins("Animation") faceAnim.AnimationId = FACE_IDLE_ID faceTrackRef = a:LoadAnimation(faceAnim) faceTrackRef.Priority = Enum.AnimationPriority.Action4 faceTrackRef.Looped = true faceTrackRef:Play(0.25) end end end local function upd(c, h, a) if not active or not c or not h or not a then return end if ca and ca.IsPlaying then return end local rp = c:FindFirstChild("HumanoidRootPart") if not rp then return end local v = v3(rp.AssemblyLinearVelocity.X, 0, rp.AssemblyLinearVelocity.Z) local m = v.Magnitude > 0.5 local s = "idle" if m then s = ir and "run" or "walk" end for k, t in pairs(st) do if k ~= s and t and t.IsPlaying then t:Stop(0.25) end end if s == "idle" then if not st.idle or not st.idle.IsPlaying then stop_s(a) st.idle = load(a, I_ID) st.idle.Priority = Enum.AnimationPriority.Idle st.idle:Play(0.25) end h.WalkSpeed = 16 elseif s == "walk" then if not st.walk or not st.walk.IsPlaying then stop_s(a) st.walk = load(a, W_ID) st.walk.Priority = Enum.AnimationPriority.Movement st.walk:Play(0.1) end st.walk:AdjustSpeed(1) h.WalkSpeed = 6.6 elseif s == "run" then if not st.run or not st.run.IsPlaying then stop_s(a) st.run = load(a, R_ID) st.run.Priority = Enum.AnimationPriority.Movement st.run:Play(0.25) st.run:AdjustSpeed(1.5) end h.WalkSpeed = 25 end end local function clearCa() stop_a() isConga = false stopE.Visible = false local c = lp.Character local h = c and c:FindFirstChildOfClass("Humanoid") local a = h and h:FindFirstChildOfClass("Animator") if h then h.WalkSpeed = ir and 28 or 16 end if a then updateFaceAnimation(false, a) end end local function playEmote(id) local c = lp.Character local h = c and c:FindFirstChildOfClass("Humanoid") local a = h and h:FindFirstChildOfClass("Animator") if not a then return end ef.Visible = false stop_a() stop_s(a) local t = load(a, id) ca = t t.Looped = true t.Priority = Enum.AnimationPriority.Action3 isConga = (id == C_ID) if isConga then h.WalkSpeed = 8 else h.WalkSpeed = 0 end t:Play(0.25) stopE.Visible = true updateFaceAnimation(true, a) task.spawn(function() while ca == t and t.IsPlaying do stop_s(a) task.wait(0.1) end end) end -- SOUND IDS local LOOP_SOUND_ID = "rbxassetid://118056082854908" -- MUSIC LOOP camera = workspace.CurrentCamera local loopSound = Instance.new("Sound") loopSound.Parent = camera loopSound.SoundId = LOOP_SOUND_ID loopSound.Volume = 0.3 loopSound.Looped = true loopSound:Play() local function punch() local c = lp.Character local h = c and c:FindFirstChildOfClass("Humanoid") local rp = c and c:FindFirstChild("HumanoidRootPart") local a = h and h:FindFirstChildOfClass("Animator") if not a or not rp or not h then return end if stopE.Visible then return end -- CEK COOLDOWN local cooldownObj = h:FindFirstChild("PunchCooldown") if cooldownObj and os.clock() - cooldownObj.Value < 2 then return end if not cooldownObj then cooldownObj = Instance.new("NumberValue") cooldownObj.Name = "PunchCooldown" cooldownObj.Parent = h end cooldownObj.Value = os.clock() -- === PLAY SLASH SOUND (AWAL PUKULAN) === local slash = Instance.new("Sound", rp) slash.SoundId = "rbxassetid://9067237166" slash.Volume = 2 slash:Play() game:GetService("Debris"):AddItem(slash, 2) isConga = false local t = load(a, P_ID) ca = t t.Priority = Enum.AnimationPriority.Action2 if t.Length == 0 then t:GetPropertyChangedSignal("Length"):Wait() end t:Play(0.1, 1, 1) t:AdjustSpeed(1) updateFaceAnimation(true, a) -- ======================================================= -- HITBOX DYNAMIC -- ======================================================= task.spawn(function() local totalSpams = 15 local totalDuration = 0.45 local interval = totalDuration / totalSpams local hitSoundPlayed = false local hitTargets = {} for i = 1, totalSpams do if not rp then break end local box = Instance.new("Part") box.Size = Vector3.new(4.5, 6, 7.5) box.Material = Enum.Material.ForceField box.CanCollide, box.CastShadow, box.Anchored = false, false, true box.CFrame = rp.CFrame * CFrame.new(0, 0, -2) box.Parent = workspace game:GetService("Debris"):AddItem(box, 0.4) local parts = workspace:GetPartBoundsInBox(box.CFrame, box.Size) local isTouching = false for _, p in ipairs(parts) do local m = p.Parent local enemyHum = m and m:FindFirstChildOfClass("Humanoid") if enemyHum and enemyHum.Health > 0 and m ~= c then isTouching = true local isTargetAPlayer = game:GetService("Players"):GetPlayerFromCharacter(m) if not isTargetAPlayer then if not hitTargets[m] then hitTargets[m] = true enemyHum:TakeDamage(5000) end end if not hitSoundPlayed then hitSoundPlayed = true local hitS = Instance.new("Sound", rp) hitS.SoundId = "rbxassetid://935843979" hitS.Volume = 2 hitS:Play() game:GetService("Debris"):AddItem(hitS, 1) end break end end if isTouching then box.Color = Color3.fromRGB(0, 255, 0) else box.Color = Color3.fromRGB(0, 0, 0) end task.wait(interval) end end) -- RESET STATE task.wait(t.Length / 1.7) if ca == t then ca = nil updateFaceAnimation(false, a) end end local function block() if stopE.Visible then return end local c = lp.Character local h = c and c:FindFirstChildOfClass("Humanoid") local rp = c and c:FindFirstChild("HumanoidRootPart") local a = h and h:FindFirstChildOfClass("Animator") if not a then return end isConga = false stop_a() stop_s(a) local t = load(a, B_ID) ca = t t.Priority = Enum.AnimationPriority.Action2 if t.Length == 0 then t:GetPropertyChangedSignal("Length"):Wait() end h.WalkSpeed = 10.5 t:Play(0.1) t:AdjustSpeed(0.8) updateFaceAnimation(true, a) task.wait((t.Length * 0.3) / 3) t:AdjustSpeed(0.5) t.Stopped:Wait() task.wait(0.3) -- dash hit Like slasher if rp and h and h.Health > 0 then task.spawn(function() local startSlash = Instance.new("Sound") startSlash.SoundId = "rbxassetid://9067237166" startSlash.Volume = 2 startSlash.Parent = rp startSlash:Play() game:GetService("Debris"):AddItem(startSlash, 2) end) local dashFinished = false task.spawn(function() local attach = Instance.new("Attachment") attach.Name = "DashAttachment" attach.Parent = rp local lv = Instance.new("LinearVelocity") lv.Name = "DashVelocity" lv.VectorVelocity = rp.CFrame.LookVector * 55 lv.MaxForce = 999999 lv.Attachment0 = attach lv.RelativeTo = Enum.ActuatorRelativeTo.World lv.Parent = rp local totalDashSpams = 15 local dashDuration = 0.22 local interval = dashDuration / totalDashSpams for i = 1, totalDashSpams do if not rp or h.Health <= 0 then break end local box = Instance.new("Part") box.Size = Vector3.new(4.5, 6, 7.5) box.Material = Enum.Material.ForceField box.Color = Color3.fromRGB(0, 0, 0) box.CanCollide = false box.CastShadow = false box.Anchored = true box.CFrame = rp.CFrame * CFrame.new(0, 0, -2) box.Parent = workspace game:GetService("Debris"):AddItem(box, 0.3) task.wait(interval) end if lv then lv:Destroy() end if attach then attach:Destroy() end dashFinished = true end) repeat task.wait() until dashFinished end -- combo after punch if h and h.Health > 0 and a and rp then stop_a() stop_s(a) local punchTrack = load(a, P_ID) ca = punchTrack punchTrack.Priority = Enum.AnimationPriority.Action2 if punchTrack.Length == 0 then punchTrack:GetPropertyChangedSignal("Length"):Wait() end punchTrack:Play(0.25) punchTrack:AdjustSpeed(2.4) updateFaceAnimation(true, a) task.spawn(function() local totalSpams = 11 local totalDuration = 0.45 local interval = totalDuration / totalSpams local hitSoundPlayed = false local hasHitTarget = false for i = 1, totalSpams do if not rp then break end local box = Instance.new("Part") box.Size = Vector3.new(4.5, 6, 7.5) box.Material = Enum.Material.ForceField box.CanCollide = false box.CastShadow = false box.Anchored = true box.CFrame = rp.CFrame * CFrame.new(0, 0, -2) box.Parent = workspace game:GetService("Debris"):AddItem(box, 0.4) local parts = workspace:GetPartBoundsInBox(box.CFrame, box.Size) local currentlyTouching = false for _, p in ipairs(parts) do local m = p.Parent local enemyHum = m and m:FindFirstChildOfClass("Humanoid") if enemyHum and enemyHum.Health > 0 and m ~= c then currentlyTouching = true hasHitTarget = true if not hitSoundPlayed then hitSoundPlayed = true pcall(function() local hitSound = Instance.new("Sound") hitSound.SoundId = "rbxassetid://935843979" hitSound.Volume = 2 hitSound.Parent = rp hitSound:Play() game:GetService("Debris"):AddItem(hitSound, 1.5) end) end break end end if currentlyTouching or hasHitTarget then box.Color = Color3.fromRGB(0, 255, 0) else box.Color = Color3.fromRGB(0, 0, 0) end task.wait(interval) end end) task.wait(punchTrack.Length / 2.4) punchTrack:Stop(0.0) task.wait(0.8) if ca == punchTrack then ca = nil h.WalkSpeed = ir and 28 or 16 updateFaceAnimation(false, a) end else if ca == t then ca = nil h.WalkSpeed = ir and 26 or 16 updateFaceAnimation(false, a) end end end local function run() ir = not ir rb.ImageColor3 = ir and c3(0, 255, 100) or c3(255, 255, 255) local c = lp.Character local h = c and c:FindFirstChildOfClass("Humanoid") if h and not (ca and ca.IsPlaying) then h.WalkSpeed = ir and 26 or 16 end end local function toggleShiftLock() isSL = not isSL slb.ImageColor3 = isSL and c3(0, 200, 255) or c3(255, 255, 255) end local function addEmoteBtn(name, id) local b = ins("TextButton") b.Size = ud2(1, 0, 0, 30) b.BackgroundColor3 = c3(40, 40, 40) b.Text = name b.TextColor3 = c3(255, 255, 255) b.Font = Enum.Font.SourceSans b.TextSize = 16 b.Parent = sf b.MouseButton1Click:Connect(function() playEmote(id) end) end addEmoteBtn("California Girls", E1_ID) addEmoteBtn("Conga!", C_ID) addEmoteBtn("Bag Up", BU_ID) addEmoteBtn("Metro Man", MM_ID) addEmoteBtn("Subject Theee", S3_ID) addEmoteBtn("Caramelldansen", CD_ID) addEmoteBtn("Unemployment", UN_ID) addEmoteBtn("Dance Potion", DP_ID) eb.MouseButton1Click:Connect(function() ef.Visible = not ef.Visible end) stopE.MouseButton1Click:Connect(clearCa) pb.MouseButton1Click:Connect(punch) bb.MouseButton1Click:Connect(block) rb.MouseButton1Click:Connect(run) slb.MouseButton1Click:Connect(toggleShiftLock) uis.InputBegan:Connect(function(i, g) if g or not active then return end if i.KeyCode == Enum.KeyCode.E then punch() elseif i.KeyCode == Enum.KeyCode.Q then block() elseif i.KeyCode == Enum.KeyCode.LeftShift then run() elseif i.KeyCode == Enum.KeyCode.LeftControl then toggleShiftLock() end end) xb.MouseButton1Click:Connect(function() cf.Visible = true end) bn.MouseButton1Click:Connect(function() cf.Visible = false end) local animateConns = {} local charAddedConn by.MouseButton1Click:Connect(function() active = false getgenv().forsakenthingyguys = nil local char = lp.Character if char then local hum = char:FindFirstChildOfClass("Humanoid") local animator = hum and hum:FindFirstChildOfClass("Animator") if animator then for _, track in ipairs(animator:GetPlayingAnimationTracks()) do track:Stop(0) end end if hum then hum.WalkSpeed = 16 hum.JumpPower = 50 hum:SetStateEnabled(Enum.HumanoidStateType.Seated, true) end for _, scriptObj in ipairs(char:GetDescendants()) do if scriptObj:IsA("Script") and scriptObj.Name == "Animate" then scriptObj.Disabled = false scriptObj.Enabled = false scriptObj.Enabled = true break end end end for _, conn in pairs(animateConns) do conn:Disconnect() end animateConns = {} if charAddedConn then charAddedConn:Disconnect() charAddedConn = nil end sg:Destroy() end) local function main(c) local h = c:WaitForChild("Humanoid") local smoothness = 10 if h.RigType == Enum.HumanoidRigType.R6 then sg.Enabled = false local oldWarn = lp.PlayerGui:FindFirstChild("R6Warning") if oldWarn then oldWarn:Destroy() end local wGui = ins("ScreenGui") wGui.Name = "R6Warning" wGui.Parent = lp:WaitForChild("PlayerGui") local wBg = ins("Frame") wBg.Size = ud2(0, 300, 0, 75) wBg.Position = ud2(0.5, 0, 0.15, 0) wBg.AnchorPoint = v2(0.5, 0.5) wBg.BackgroundColor3 = c3(15, 15, 15) wBg.BorderSizePixel = 0 wBg.Parent = wGui local wTxt = ins("TextLabel") wTxt.Size = ud2(1, 0, 1, 0) wTxt.BackgroundTransparency = 1 wTxt.Text = "R15 REQUIRED. R6 IS NOT SUPPORTED." wTxt.TextColor3 = c3(255, 50, 50) wTxt.Font = Enum.Font.SourceSansBold wTxt.TextSize = 18 wTxt.Parent = wBg task.spawn(function() task.wait(3) local tInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local tweenBg = ts:Create(wBg, tInfo, {BackgroundTransparency = 1}) local tweenTxt = ts:Create(wTxt, tInfo, {TextTransparency = 1}) tweenBg:Play() tweenTxt:Play() tweenTxt.Completed:Wait() wGui:Destroy() end) return else sg.Enabled = true local oldWarn = lp.PlayerGui:FindFirstChild("R6Warning") if oldWarn then oldWarn:Destroy() end end local a = h:WaitForChild("Animator") for _, o in ipairs(c:GetDescendants()) do if o:IsA("Script") and o.Name == "Animate" then o.Disabled = true break end end for _, t in ipairs(a:GetPlayingAnimationTracks()) do t:Stop(0) end h.JumpPower = 0 h:SetStateEnabled(Enum.HumanoidStateType.Seated, false) st, ca, isConga = {}, nil, false local it = load(a, I_ID) it.Priority = Enum.AnimationPriority.Idle it:Play(0.25) st.idle = it local headAnim = ins("Animation") headAnim.AnimationId = H_ID local headTrack = a:LoadAnimation(headAnim) headTrackRef = headTrack headTrack.Priority = Enum.AnimationPriority.Action4 headTrack:Play(0, 1, 0) headTrack:AdjustWeight(0.2) updateFaceAnimation(false, a) local currentYaw = 0 local targetYaw = 0 local yawVelocity = 0 local yawAccel = 0 local prevTargetYaw = 0 local cn cn = rs.RenderStepped:Connect(function(dt) if not active or not c or not c.Parent then cn:Disconnect() return end upd(c, h, a) local rp = c:FindFirstChild("HumanoidRootPart") if rp and h then local moveDir = h.MoveDirection local targetFov = 70 if ir and moveDir.Magnitude > 0 then targetFov = 80 end camera.FieldOfView = camera.FieldOfView + (targetFov - camera.FieldOfView) * math.min(dt * 2, 1) if isSL then local camLook = camera.CFrame.LookVector local targetCF = CFrame.lookAt(rp.Position, rp.Position + v3(camLook.X, 0, camLook.Z)) rp.CFrame = rp.CFrame:Lerp(targetCF, 0.5) elseif moveDir.Magnitude > 0 then local targetCF = CFrame.lookAt(rp.Position, rp.Position + moveDir) rp.CFrame = rp.CFrame:Lerp(targetCF, 0.1) end if isConga then h:Move(rp.CFrame.LookVector) end if not (ca and ca.IsPlaying) then local camDirObjSpace = rp.CFrame:VectorToObjectSpace(camera.CFrame.LookVector) targetYaw = -math.atan2(camDirObjSpace.X, -camDirObjSpace.Z) local maxRotation = math.rad(75) targetYaw = math.clamp(targetYaw, -maxRotation, maxRotation) local targetDelta = targetYaw - prevTargetYaw prevTargetYaw = targetYaw local delta = targetYaw - currentYaw local k = 12 local d = 0.92 local pred = targetDelta * 8 yawAccel = yawAccel + (delta + pred) * k * dt yawAccel = yawAccel * d yawVelocity = yawVelocity + yawAccel * dt yawVelocity = yawVelocity * 0.98 currentYaw = currentYaw + yawVelocity * dt currentYaw = currentYaw + (targetYaw - currentYaw) * math.min(dt * 3, 0.15) local yawMapped = currentYaw if yawMapped < 0 then yawMapped = yawMapped + (math.pi * 2) end local percentage = yawMapped / (math.pi * 2) if headTrack.Length > 0 then headTrack.TimePosition = percentage * headTrack.Length end else local delta = 0 - currentYaw local k = 12 local d = 0.92 yawAccel = yawAccel + delta * k * dt yawAccel = yawAccel * d yawVelocity = yawVelocity + yawAccel * dt yawVelocity = yawVelocity * 0.98 currentYaw = currentYaw + yawVelocity * dt currentYaw = currentYaw + (0 - currentYaw) * math.min(dt * 3, 0.15) local yawMapped = currentYaw if yawMapped < 0 then yawMapped = yawMapped + (math.pi * 2) end if headTrack.Length > 0 then headTrack.TimePosition = (yawMapped / (math.pi * 2)) * headTrack.Length end end end end) end local function watchForAnimate(c) local conn = c.DescendantAdded:Connect(function(d) if d:IsA("Script") and d.Name == "Animate" then d.Disabled = true end end) table.insert(animateConns, conn) for _, o in ipairs(c:GetDescendants()) do if o:IsA("Script") and o.Name == "Animate" then o.Disabled = true end end end charAddedConn = lp.CharacterAdded:Connect(function(c) watchForAnimate(c) main(c) end) if lp.Character then watchForAnimate(lp.Character) task.spawn(main, lp.Character) end task.wait(.1) -- ==================================================================== -- TILT -- ==================================================================== getgenv().tilt = true local plr = game:GetService("Players") local me = plr.LocalPlayer local chr, hum, hrp local px, py = 0, 0 local cfg = { ptime = .25, smooth = 6, pred = .4, base = .1, dead = .05, side = 25, sideSmooth = 5 } local function init(newCharacter) chr = newCharacter hum = chr:WaitForChild("Humanoid") hrp = chr:WaitForChild("HumanoidRootPart") px, py = 0, 0 end me.CharacterAdded:Connect(init) if me.Character then task.spawn(init, me.Character) end rs.RenderStepped:Connect(function(dt) if not (chr and hrp and hum and getgenv().tilt) then return end local mv = hum.MoveDirection local sx, sp = 0, 0 if mv.Magnitude > 0 then local rel = hrp.CFrame:VectorToObjectSpace(mv) sx = -rel.X * cfg.side local pos, vel = hrp.Position, hrp.Velocity local fut = pos + vel * cfg.ptime local dy = fut.Y - pos.Y if math.abs(dy) > cfg.dead then local dist = (Vector3.new(fut.X, pos.Y, fut.Z) - pos).Magnitude sp += math.atan2(dy, dist) * cfg.pred end sp += rel.Z * cfg.base end py += (sx - py) * math.min(dt * cfg.sideSmooth, 1) px += (sp - px) * math.clamp(dt * cfg.smooth, 0, 1) local yaw = CFrame.Angles(0, math.rad(hrp.Orientation.Y), 0) hrp.CFrame = CFrame.new(hrp.Position) * yaw * CFrame.Angles(px, 0, math.rad(py)) end)