Players=game:GetService("\080\108\097\121\101\114\115")Debris=game:GetService("\068\101\098\114\105\115")UserInputService=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")ContextActionService=game:GetService("\067\111\110\116\101\120\116\065\099\116\105\111\110\083\101\114\118\105\099\101")Player=Players.LocalPlayer Character=Player.Character Mouse=Player:GetMouse()Humanoid=nil for i,M in pairs(Character:GetChildren())do if M:IsA("\072\117\109\097\110\111\105\100")then Humanoid=M break end end ServerControl=(script:WaitForChild("\083\101\114\118\101\114\067\111\110\116\114\111\108")).Value function InvokeServer(i,M)pcall(function()local Y=ServerControl:InvokeServer(i,M)return Y end)end function Dismount()if DisableJump then DisableJump:disconnect()end InvokeServer("\068\105\115\109\111\117\110\116")if UserInputService.TouchEnabled then ContextActionService:UnbindAction("\082\105\100\097\098\108\101\072\111\114\115\101\095\068\105\115\109\111\117\110\116")end end if Humanoid then DisableJump=Humanoid.Changed:connect(function(i)if i=="\074\117\109\112"then Humanoid.Jump=false InvokeServer("\074\117\109\112")end end)end UserInputService.InputBegan:connect(function(i)if i.KeyCode==Enum.KeyCode.LeftControl or i.KeyCode==Enum.KeyCode.RightControl then Dismount()end end)
--Made by Luckymaxer

Players = game:GetService("Players")
Debris = game:GetService("Debris")
UserInputService = game:GetService("UserInputService")
ContextActionService = game:GetService("ContextActionService")

Player = Players.LocalPlayer
Character = Player.Character
Mouse = Player:GetMouse()

Humanoid = nil
for i, v in pairs(Character:GetChildren()) do
	if v:IsA("Humanoid") then
		Humanoid = v
		break
	end
end

ServerControl = script:WaitForChild("ServerControl").Value

function InvokeServer(mode, value)
	pcall(function()
		local ServerReturn = ServerControl:InvokeServer(mode, value)
		return ServerReturn
	end)
end

function Dismount()
	if DisableJump then
		DisableJump:disconnect()
	end
	InvokeServer("Dismount")
	if UserInputService.TouchEnabled then
		ContextActionService:UnbindAction("RidableHorse_Dismount")
	end
end

if Humanoid then
	DisableJump = Humanoid.Changed:connect(function(Property)
		if Property == "Jump" then
			Humanoid.Jump = false
			InvokeServer("Jump")
		end
	end)
end

UserInputService.InputBegan:connect(function(InputObject)
	if InputObject.KeyCode == Enum.KeyCode.LeftControl or InputObject.KeyCode == Enum.KeyCode.RightControl then
		Dismount()
	end
end)
